PHP code example of victordzmr / conf2json

1. Go to this page and download the library: Download victordzmr/conf2json 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/ */

    

victordzmr / conf2json example snippets




return [
    'database' => [
        'driver' => 'mysql',
        'host' => 'localhost',
        'port' => 3306,
        'database' => 'hogwarts',
        'username' => 'severus',
        'password' => '4lw4y5',
        'charset' => 'utf8mb4',
        'collation' => 'utf8mb4_unicode_ci'
    ]
];

use victordzmr\conf2json;

$conf2json = new conf2json([, input [, output [, pretty [, recursive [, verbose]]]]]);
$conf2json->run();