1. Go to this page and download the library: Download dcmunhoz/data-access 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/ */
/**
* User controller example
*/
class UserController extends DataAccess{
/**
* User Constructor
*/
function __construct(){
/** \DataAccess::_construct(ENTITY_NAME, PRIMARY_KEY) */
parent::__construct("TB_USERS", "ID_USER");
}
}