lukasruzicka / decal
Turns PHP array to its PHP code interpretation.
Installs: 36
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/lukasruzicka/decal
Requires
- phpunit/phpunit: >=4.7
This package is auto-updated.
Last update: 2025-12-24 12:48:40 UTC
README
A simple script that allows you to turn the existing PHP array to its PHP code interpretation, which might be useful when creating mock data and so on.
# CODE $array = ['a' => ['b' => 1, 'c' => ['d']], 'b' => [0, '0', null]]; Decal::print($array);
# OUTPUT
$decal = [
'a' => [
'b' => 1,
'c' => [
'd'
]
],
'b' => [
0,
'0',
null
]
];