PHP Design by Contract provides a basic implementation of contract programming in PHP 5.3+. The base Contract class allows new or existing classes to define properties as protected Attributes and methods as Routines, which require argument type/class validation, aswell as PreCondition and PostCondition checks. Instances can also check for state consistency with an invariant check.

Project Activity

See All Activity >

License

GNU General Public License version 3.0 (GPLv3)

Follow PHP Design by Contract

PHP Design by Contract Web Site

Other Useful Business Software
$300 in Free Credit Towards Top Cloud Services Icon
$300 in Free Credit Towards Top Cloud Services

Build VMs, containers, AI, databases, storage—all in one place.

Start your project in minutes. After credits run out, 20+ products include free monthly usage. Only pay when you're ready to scale.
Get Started

Additional Project Details

Intended Audience

Developers

Programming Language

PHP

Related Categories

PHP Software Development Software, PHP Object Oriented Software, PHP Libraries

Registered

2012-03-24