drwrf / mismatch
a simple library for complex types
dev-master
2014-09-30 03:16 UTC
Requires
- php: >=5.4
- doctrine/dbal: 2.5.*@dev
- doctrine/inflector: 1.0.*@dev
- drwrf/mismatch-db: 0.2.*@dev
- pimple/pimple: 3.0.*@dev
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
This package is not auto-updated.
Last update: 2024-12-31 02:47:09 UTC
README
╔██╗ ███╗ ███╗██╗███████╗███╗ ███╗ █████╗ ████████╗ ██████╗██╗ ██╗ ██╗ ██╔╝ ████╗ ████║██║██╔════╝████╗ ████║██╔══██╗╚══██╔══╝██╔════╝██║ ██║ ╚██╗ ██║ ██╔████╔██║██║███████╗██╔████╔██║███████║ ██║ ██║ ███████║ ██║ ██║ ██║╚██╔╝██║██║╚════██║██║╚██╔╝██║██╔══██║ ██║ ██║ ██╔══██║ ██║ ╚██╗ ██║ ╚═╝ ██║██║███████║██║ ╚═╝ ██║██║ ██║ ██║ ╚██████╗██║ ██║ ██╔╝ ╚═╝ ╚═╝ ╚═╝╚═╝╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝ ╚═╝ ╚═════╝╚═╝ ╚═╝ ╚═╝ ╚ 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 ╝ ╚================================================================╝ Mismatch is a PHP 5.4 library designed to help you quickly model your domain. Take a look, you might like it. <?php namespace Model; use Mismatch; class User { use Mismatch\Model; public function init($m) { $m->id = 'Integer'; $m->name = 'String'; $m->email = 'Email'; $m->role = 'BelongsTo[Model\Role]'; $m->addresses = 'HasMany[Model\Address]'; } }