ixnode / php-array-to-object
PHP数组到对象转换器
0.1.1
2022-12-31 15:13 UTC
Requires
- php: ^8.0
- ixnode/php-naming-conventions: ^0.1.1
Requires (Dev)
- friendsofphp/php-cs-fixer: ^3.13
- ixnode/bash-version-manager: ^0.1.3
- phpmd/phpmd: ^2.13
- phpstan/phpstan: ^1.9
- phpunit/phpunit: ^9.5
- povils/phpmnd: ^3.0
- rector/rector: ^0.15.1
README
这是一个PHP数组到对象的转换工具。
安装
composer require ixnode/php-array-to-object
vendor/bin/php-array-to-object -V
php-array-to-object 0.1.0 (12-31-2022 15:51:08) - Björn Hempel <bjoern@hempel.li>
使用方法
use Ixnode\PhpArrayToObject\ArrayToObject;
$array = [ 'backgroundColor' => '255,255,255,100', 'printCalendarWeek' => true, 'printWeekNumber' => true, 'printQrCodeMonth' => true, 'printQrCodeTitle' => true, 'aspectRatio' => 1.414, 'height' => 4000, ]; $backgroundColor = (new ArrayToObject($array))->getBackgroundColor();
开发
git clone git@github.com:ixnode/php-array-to-object.git && cd php-array-to-object
composer install
composer test
许可证
本工具采用MIT许可证 - 有关详细信息,请参阅LICENSE文件。