1. Go to this page and download the library: Download movescode/model 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/ */
movescode / model example snippets
use MovesCode\Model\Connection;
$pdo = new PDO(
'mysql:host=localhost;dbname=app;charset=utf8mb4',
'usuario',
'senha'
);
Connection::configure($pdo);
use MovesCode\Model\Model;
final class User extends Model
{
public function __construct()
{
parent::__construct(
entity: 'users',
protected: ['id'],