定制 izzle/model 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

izzle/model

最新稳定版本:1.0.1

Composer 安装命令:

composer require izzle/model

包简介

Simple model lib

关键字:

README 文档

README

Izzle Model Library

  1. Installing

Use Composer (recommended)

As IO Izzle uses Composer to manage its dependencies, the recommended way to create a new project is to use it.

If you don't have Composer yet, download it following the instructions on http://getcomposer.org/ or just run the following command:

curl -s http://getcomposer.org/installer | php

Then, use the install command to generate a new ICS application:

php composer.phar install

Composer will install Izzle IO and all its dependencies under the specified directory.

Usage

Entity Class extending:

class Book extends Model {}

Adding property informations to your new entity class

/**
 * @return PropertyCollection
 */
protected function loadProperties(): PropertyCollection
{
    return new PropertyCollection([
        new PropertyInfo('id', 'int', 0),
        new PropertyInfo('name', 'string'),
        new PropertyInfo('i18ns', BookI18n::class, [], true, true),
        new PropertyInfo('invisibilities', 'int', [], false, true)
    ]);
}

统计信息

  • 总下载量: 11.57k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 4
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: LGPL-3.0-or-later
  • 更新时间: 2019-01-25