PHP code example of phpfit / source-generator
1. Go to this page and download the library: Download phpfit/source-generator 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/ */
phpfit / source-generator example snippets
use PhpFit\SourceGenerator\Generator;
$array = [
'string' => 'string',
'escape' => 'do\'a',
'integer' => 12,
'float' => 12.33
];
$source = Generator::array($array);