{"id":19443762,"url":"https://github.com/aretecode/specification","last_synced_at":"2025-04-25T00:32:41.972Z","repository":{"id":62486761,"uuid":"44464312","full_name":"aretecode/specification","owner":"aretecode","description":"PHP Specification library.","archived":false,"fork":false,"pushed_at":"2015-10-21T19:28:02.000Z","size":152,"stargazers_count":8,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-03T13:44:00.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/aretecode.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-10-18T03:31:19.000Z","updated_at":"2020-09-30T07:37:25.000Z","dependencies_parsed_at":"2022-11-02T10:46:36.332Z","dependency_job_id":null,"html_url":"https://github.com/aretecode/specification","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aretecode%2Fspecification","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aretecode%2Fspecification/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aretecode%2Fspecification/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aretecode%2Fspecification/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aretecode","download_url":"https://codeload.github.com/aretecode/specification/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250733529,"owners_count":21478385,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T15:44:05.951Z","updated_at":"2025-04-25T00:32:41.730Z","avatar_url":"https://github.com/aretecode.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Arete\\Specification\n[![Build Status](https://secure.travis-ci.org/aretecode/specification.svg)](https://travis-ci.org/aretecode/specification)\n[![HHVM Status](http://hhvm.h4cc.de/badge/arete/specification.svg)](http://hhvm.h4cc.de/package/arete/specification)\n[![Author](http://img.shields.io/badge/author-@aretecode-blue.svg)](https://twitter.com/aretecode)\n[![Latest Unstable Version](https://poser.pugx.org/arete/specification/v/unstable)](https://packagist.org/packages/arete/specification)\n[![License](https://poser.pugx.org/arete/specification/license)](http://packagist.org/packages/arete/specification)\n[![Codacy Badge](https://api.codacy.com/project/badge/2a00e5db8e1444fa84a815e825056049)](https://www.codacy.com/app/aretecode/specification)\n\nSpecification library in PHP.\n\n[Eric Evans \u0026 Martin Fowlers paper on Specifications](http://martinfowler.com/apsupp/spec.pdf)\n\n# [Example](https://github.com/aretecode/specification/blob/master/examples)\n[See my post on refactoring]()\n\nA post detailing the usage in more detail will be available soon.\n\n## Installation\nIt can be installed from [Packagist](https://packagist.org/arete/specification) using [Composer](https://getcomposer.org/). \n\nIn your project root just run:\n\n`$ composer require arete/specification`\n\nMake sure that you’ve set up your project to [autoload Composer-installed packages](https://getcomposer.org/doc/00-intro.md#autoloading).\n\n\n## Running tests\nRun via the command line by going to `arete/specification` directory and running `phpunit`\n\n\n## @TODO\n* [x] ::remainderUnsatisfiedBy()\n* [ ] ::isGeneralizationOf()\n* [ ] ::isSpecializationOf()\n* [ ] ::asQuery() for use with db, whether it uses argument, or sep methods\n* [ ] abstract part of the Collection Pipeline matching into default/premades\n\n### P.S.\n(I have had this written since I read the DDD books, I updated it a little and just found an old one by [@mathiasverraes](https://github.com/mathiasverraes/DomainTools) which was interesting!)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faretecode%2Fspecification","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faretecode%2Fspecification","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faretecode%2Fspecification/lists"}