PHP code example of thonyx / phppods
1. Go to this page and download the library: Download thonyx/phppods library . Choose the download type require .
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
thonyx / phppods example snippets
composer install && php UndotterTest.php
\Axonbits\Arrays::undot[
'name'=>'Yale',
'timeseries.2014.enrollment'=>'1',
'timeseries.2014.cost'=>'100',
'timeseries.2015.enrollment'=>'200',
'timeseries.2015.cost'=>'200',
'groups.colors.default'=>'#white',
'groups.colors.blue'=>'#lalala'
]);
[
'name' => 'Yale',
'timeseries' =>
[
2014 =>
[
'enrollment' => '1',
'cost' => '100',
],
2015 =>
[
'enrollment' => '200',
'cost' => '200',
],
],
'groups' =>
[
'colors' =>
[
'default' => '#white',
'blue' => '#lalala',
],
],
]
\Axonbits\Arrays::toJson()->undot[
'name'=>'Yale',
'timeseries.2014.enrollment'=>'1',
'timeseries.2014.cost'=>'100',
'timeseries.2015.enrollment'=>'200',
'timeseries.2015.cost'=>'200',
'groups.colors.default'=>'#white',
'groups.colors.blue'=>'#lalala'
]);
\Axonbits\Filesystem::
newFile(__DIR__ . '/tmp/SessionClass.php')
->withStub($stubPath = __DIR__ . '/tmp/DummyClass.php', [
'DummyClass' => 'SessionClass',
'DummyTimestamp' => '"2018-01-01"',
'DummyNamespace' => 'App\\Sessions',
])
->write();