drwrf/mismatch-model
Composer 安装命令:
composer require drwrf/mismatch-model
包简介
A simple library for complex types.
README 文档
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';
}
}
统计信息
- 总下载量: 62
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-10-03