PHP code example of sing / zphp

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

    

sing / zphp example snippets


'mysql' => array(
        'default' => [
            'host' => '127.0.0.1',
            'port' => 3306,
            'user' => 'root',
            'password' => '******',
            'database' => 'zhttp',
            'asyn_max_count' => 2,
            'start_count' => 2,
        ],
        'read' => [
            'host' => '127.0.0.1',
            'port' => 3306,
            'user' => 'root',
            'password' => '******',
            'database' => 'zhttp',
            'asyn_max_count' => 5,
            'start_count' => 5,
        ]
    )