1. Go to this page and download the library: Download develhopper/qbuilder 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/ */
develhopper / qbuilder example snippets
namespace models;
use QB\QBuilder as Model;
class Customer extends Model{
// table name
protected $table="customers";
// primary key
protected $primary="customerNumber";
// relations
public function payments(){
return $this->hasMany(Payment::class,false);
}
}