定制 arete/specification 二次开发

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

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

arete/specification

Composer 安装命令:

composer require arete/specification

包简介

PHP Specification library.

README 文档

README

Build Status HHVM Status Author Latest Unstable Version License Codacy Badge

Specification library in PHP.

Eric Evans & Martin Fowlers paper on Specifications

Example

See my post on refactoring

A post detailing the usage in more detail will be available soon.

Installation

It can be installed from Packagist using Composer.

In your project root just run:

$ composer require arete/specification

Make sure that you’ve set up your project to autoload Composer-installed packages.

Running tests

Run via the command line by going to arete/specification directory and running phpunit

@TODO

  • ::remainderUnsatisfiedBy()
  • ::isGeneralizationOf()
  • ::isSpecializationOf()
  • ::asQuery() for use with db, whether it uses argument, or sep methods
  • abstract part of the Collection Pipeline matching into default/premades

P.S.

(I have had this written since I read the DDD books, I updated it a little and just found an old one by @mathiasverraes which was interesting!)

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2015-10-18