intofilm / property-builder
Flattens and roughens arrays for serialisation
1.0.2
2018-12-06 14:35 UTC
Requires
- php: >=5.5.9
- dflydev/dot-access-data: ^1.1
- swaggest/json-schema: ^0.12.2
Requires (Dev)
- phpunit/phpunit: ~4.4
This package is not auto-updated.
Last update: 2024-12-19 02:59:22 UTC
README
Encode and decode arrays of string to arrays of arrays and vice versa.
<?php
$builder = new \IntoFilm\Sdk\Common\Property\PropertyBuilder();
$builder->encode(['foo' => ['bar', 'baz']]);
// [
// 'foo.0' => 'bar',
// 'foo.1' => 'baz'
// ]