Skip to content

"Ready-to-eat" and framework-agnostic CRUD controllers.

License

Notifications You must be signed in to change notification settings

rougin/dexterity

Repository files navigation

Dexterity

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

"Ready-to-eat" and framework-agnostic CRUD controllers.

Installation

Install Dexterity via Composer:

$ composer require rougin/dexterity

Basic Usage

use Acme\Common\Models\PatientModel;
use Acme\Repositories\OrmRepository;
use Acme\Http\Message\ServerRequest;
use Rougin\Dexterity\Controller\CrudController;

$repository = new OrmRepository;

$request = new ServerRequest;

$controller = new CrudController($repository, $request);

$controller->model(PatientModel::class);

// Returns an array of PatientModel objects
$patients = $controller->index();

// Returns a specific PatientModel object
$patient = $controller->find(10);

Changelog

Please see CHANGELOG for more information what has changed recently.

Testing

$ vendor/bin/phpunit

License

The MIT License (MIT). Please see LICENSE for more information.

About

"Ready-to-eat" and framework-agnostic CRUD controllers.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages