makinacorpus/specification

Simple specification pattern implementation.

Installs: 5

Dependents: 0

Suggesters: 0

Security: 0

Stars: 1

Watchers: 2

Forks: 0

Open Issues: 0

pkg:composer/makinacorpus/specification

0.1.0 2022-03-23 15:08 UTC

This package is auto-updated.

Last update: 2025-10-08 18:17:33 UTC


README

This is a very simple and extensible specification pattern implementation.

For its core API, it is basically a copy-paste of code found in https://en.wikipedia.org/wiki/Specification_pattern and contains only the bare minimum code to make it functionnal.

It is intended to be used as a contract, for a DSL in a domain driven designed application. In business code, one should never use this library classes directly, but extend it for implementing its own specification.

You can also copy-paste this library content as well in the shared kernel of your application if you wish have no dependencies on the oustide world, code is voluntarily kept naive and small.