seffeng / format-helper
PHP extension format helper
Installs: 1 381
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Requires
- php: >=7.1
Requires (Dev)
- phpunit/phpunit: >=6.0
README
安装
# 安装
$ composer require seffeng/format-helper
目录说明
|---src
| | Format.php
| |---Traits
| FormatTrait.php
|---tests
| FormatTest.php
示例
/** * TestController.php * 示例 */ namespace App\Http\Controllers; use Seffeng\FormatHelper\Format; class TestController extends Controller { public function index() { var_dump(Format::sizeFormat(1024 * 1024 * 1024 * 1023)); } }
备注
1、更多示例请参考 tests 目录下测试文件。