Skip to content

drwrf/mismatch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

    ╔██╗    ███╗   ███╗██╗███████╗███╗   ███╗ █████╗ ████████╗ ██████╗██╗  ██╗    ██╗
    ██╔╝    ████╗ ████║██║██╔════╝████╗ ████║██╔══██╗╚══██╔══╝██╔════╝██║  ██║    ╚██╗
    ██║     ██╔████╔██║██║███████╗██╔████╔██║███████║   ██║   ██║     ███████║     ██║
    ██║     ██║╚██╔╝██║██║╚════██║██║╚██╔╝██║██╔══██║   ██║   ██║     ██╔══██║     ██║
    ╚██╗    ██║ ╚═╝ ██║██║███████║██║ ╚═╝ ██║██║  ██║   ██║   ╚██████╗██║  ██║    ██╔╝
     ╚═╝    ╚═╝     ╚═╝╚═╝╚══════╝╚═╝     ╚═╝╚═╝  ╚═╝   ╚═╝    ╚═════╝╚═╝  ╚═╝    ╚═╝

     ╚      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]';
                }
            }

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages