1. Go to this page and download the library: Download migliori/power-lite-pdo 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/ */
migliori / power-lite-pdo example snippets
use Migliori\PowerLitePdo\Db;
// Build the container and connect to the database
$container =
$from = 'users'; // The table name
$fields = ['id', 'username', 'email']; // The columns you want to select
$where = ['status' => 'active']; // The conditions for the WHERE clause
$db->select($from, $fields, $where);
use Migliori\PowerLitePdo\Pagination;
// Build the container and connect to the database
$container =
$from = 'users'; // The table name
$fields = ['id', 'username', 'email']; // The columns you want to select
$where = ['status' => 'active']; // The conditions for the WHERE clause
$pagination->select($from, $fields, $where);