PHP code example of tamedevelopers / database

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

    

tamedevelopers / database example snippets




config_pagination([
    'allow' => true,
]);

$users = $db->table('users')->paginate(20);

foreach($users as $user){
    echo $user->numbers();
}