PHP code example of aryelgois / medools

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

    

aryelgois / medools example snippets




aryelgois\Medools\MedooConnection::loadConfig('path/to/config/medools.php');



const COLUMNS = [
    'id [Int]',
    'name',
    'data [JSON]',
];



const STAMP_COLUMNS = [
    'column_a' => 'datetime',
    'column_b',
    'column_c' => 'date',
];



const FOREIGN_KEYS = [
    'local_column' => [
        'Fully\\Qualified\\ClassName',
        'foreign_column'
    ],
];