PHP code example of jarzon / querybuilder
1. Go to this page and download the library: Download jarzon/querybuilder 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/ */
jarzon / querybuilder example snippets
$query = Jarzon\QueryBuilder::table('users')
->select(['name'])
->where('id', '<', 30)
->where('name', '!=', 'admin');
// $query->getSql() returns:
// SELECT name FROM users WHERE id < 30 AND name != 'admin'