drwrf / mismatch-model
A simple library for complex types.
Installs: 62
Dependents: 1
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 2
pkg:composer/drwrf/mismatch-model
Requires
- php: >=5.4
- pimple/pimple: ~3.0
Requires (Dev)
- d11wtq/boris: dev-master
- mockery/mockery: 0.9
- phpunit/php-code-coverage: 2.0.*@dev
- phpunit/phpunit: 4.0.*@dev
- phpunit/phpunit-mock-objects: 2.0.*@dev
README
███╗ ███╗██╗███████╗███╗ ███╗ █████╗ ████████╗ ██████╗██╗ ██╗
████╗ ████║██║██╔═══ █╔══╝██╔════╝██║ ██║╗
██╔████╔██║██║██████ Mismatch\Model █║ ██║ ███████║╝
██║╚██╔╝██║██║╚════█_________________________█║ ██║ ██╔══██║╗
██║ ╚═╝ ██║██║███████║██║ ╚═╝ ██║██║ ██║ ██║ ╚██████╗██║ ██║╝
╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝
A S I M P L E L I B R A R Y F O R C O M P L E X T Y P E S
╚═════════════════════════════════════════════════════════════╝
The goal of Mismatch\Model is to make building and modelling
your domain dead simple. While you can quickly create models
with it, it remains backend agnostic—allowing you to manage
your datasource.
Let's take a look.
~
<?php
namespace Model;
use Mismatch;
class User
{
use Mismatch\Model;
public function init($m)
{
$m->id = 'Primary';
$m->name = 'String';
$m->email = 'Email';
}
}