PHP code example of phphleb / spreader

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

    

phphleb / spreader example snippets


// File /config/common.php

/*
 │-----------------------------------------------------------------------------
 │ Selecting the type of configs storage ("File" or "DB")
 │-----------------------------------------------------------------------------
 │ Выбор типа хранения конфигов ("File" или "DB")
 │-----------------------------------------------------------------------------
 */
'spread.config.type' => 'DB',



// File /config/database.php

return [
'spread.db.type' => 'mysql.name',
// ,,, //
];
bash
php console phphleb/spreader add
bash
php console spreader/sync