tigo/units-conversion 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

tigo/units-conversion

Composer 安装命令:

composer require tigo/units-conversion

包简介

units conversion table

README 文档

README

CONVERSION TABLE OF UNITS OF LENGTH

  • This package can be used with any PHP application or Frameworks/PHP.
  • Download package: composer require tigo/units-conversion
  • Recommended version: PHP >= 7.2
  • MIT license. Feel free to use this project. Leave a star ⭐ or make a fork !

If you found this project useful, consider making a donation to support the developer.

paypal paypal

Identification code (Unit of length)

Directory: ..\src\Length\StandardUnit.php
  • Hectometer = 1
  • Decameter = 2
  • Meters = 3
  • Decimeter = 4
  • Centimeter = 5
  • Millimeter = 6
  • Yards = 7
  • Feet = 8
  • Inch = 9
  • Kilometer = 10
  • Nanometers = 11
  • Micrometers = 12

Introduction

Somewhere in your project, you may need to use autoload

include __DIR__ ."/vendor/autoload.php";

Example: CONVERSION TABLE OF UNITS OF LENGTH

   use Tigo\UnitsConversion\ClientLength; //import class 
   $client = new ClientLength();
   /**
     Example: Converting kilometer to meter
     $client->convert(kilometer, meter, value)
   **/
   print_r($client->convert(10, 3, 23)); // result: 23000 (meter)
   
   /**
     Example: Converting Yard to Inch
     $client->convert(yard, inch, value)
   **/
   print_r($client->convert(7, 9, 23)); // result: 828 (inch)

Supporting this project

If you are interested in supporting this project, you can help in many ways. Leave a star ⭐ or make a donation of any value.

Sponsor supporting this project

  • []

Contributors

License

MIT license. See the archive License

统计信息

  • 总下载量: 5
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2021-05-13

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固