Git Product home page Git Product logo

simple-pbc's Introduction

What is simple-pbc?

simple-pbc is a very basic trait based design by contract solution for PHP (pbc => php by contract). Which is intended for simple testing and to get a hang of the concepts.

Why another implementation?

I already have another design by contract solution for PHP, which you can find within my GitHub as php-by-contract. So why another solution? Reason is this two solutions are hardly comparable. simple-pbc is, as the name suggests, very simple in what it can do (no contract inheritance, etc.) and is also harder to use (no annotation support yet) and requires PHP 5.4 which is by no means widely used by now. php-by-contract otherwise is very easy to use and provides advanced design by contract features, but it is a full blown solution with several composer dependencies and a not as transparent implementation. So to simply put it: php-by-contract for serious projects, simple-pbc to test the concept and toy around with it.

Mostly simple-pbc was developed as a sideproduct of php-by-contract, as I was trying to find the best way to implement such a solution. I found a AOP-like approach to work the best but still wanted to let you guys see what else is possible.

I hope you have fun with both, but php-by-contract will be the main project.

simple-pbc's People

Contributors

wick-ed avatar

Stargazers

Dmitry Danilson avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.