PHP code example of gap-db / orm

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

    

gap-db / orm example snippets



return [
    // Safan Framework default modules route
    'Safan'         => 'vendor/safan-lab/safan/Safan',
    'SafanResponse' => 'vendor/safan-lab/safan/SafanResponse',
    // Write created or installed modules route here ... e.g. 'FirstModule' => 'application/Modules/FirstModule'
    'GapOrm' => 'vendor/gap-db/orm/GapOrm'
];


'init' => [
    'gap' => [
        'class'  => 'GapOrm\GapOrm',
        'method' => 'init',
        'params' => [
            'driver'   => 'pdo',
            'host'     => 'localhost',
            'user'     => '',
            'password' => '',
            'db'       => '',
            'charset'  => 'utf-8',
            'debug'    => false,
        ]
    ]
]