In this repository, I've decided to implement various design patterns in PHP7 and Java in order to identify similarities between the two, but also to help out developers that may be transitioning from one to the other.
I try to find creative use cases for the patterns presented, and the I try to use the same naming/package conventions between the languages.
Design patterns implemented so far:
- Chain of Responsibility
At the time of this writing, PHP7 is still way ahead of its release date, so there will probably be better installation tutorials in the future. For the time being, I've set up my development environment using the deps from php7.zend.com.
All PHP dependencies can be retrieved using Composer. The Composer version used when building the code was 1.0-dev.
All Java dependencies can be retrieved using Maven. The Maven version used when building the code was 3.0.5.
If you feel that this is interesting, want to do a code review or implement a new pattern yourself, you're more than welcome to submit an issue or pull request.