Skip to content

Repository files navigation

PHP Array To Object

ReleasePHPPHPStanPHPCSLICENSE

A PHP array to object converter.

Installation

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>

Usage

useIxnode\PhpArrayToObject\ArrayToObject;
$array = [
'backgroundColor' => '255,255,255,100',
'printCalendarWeek' => true,
'printWeekNumber' => true,
'printQrCodeMonth' => true,
'printQrCodeTitle' => true,
'aspectRatio' => 1.414,
'height' => 4000,
];
$backgroundColor = (newArrayToObject($array))->getBackgroundColor();

Development

git clone git@github.com:ixnode/php-array-to-object.git &&cd php-array-to-object
composer install
composer test

License

This tool is licensed under the MIT License - see the LICENSE file for details

About

A PHP array to object converter

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages