PHP code example of jhorlima / mb-repository

1. Go to this page and download the library: Download jhorlima/mb-repository 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/ */

    

jhorlima / mb-repository example snippets




namespace Projeto\Repository;

use Projeto\Model\Usuarios;
use MbRepository\BaseRepository;

class UsuariosRepository extends BaseRepository
{
    public function model()
    {
        return Usuarios::class;
    }
}



use Projeto\Repository\UsuariosRepository;


$repository = new UsuariosRepository();

var_dump($repository->all());