Skip to content
detection of design patterns in PHP code
PHP Makefile
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Type Name Latest commit message Commit time
Failed to load latest commit information.
bin initial import Dec 8, 2015
src/Hal new pattern: abstract factory Dec 14, 2015
.gitignore initial import Dec 8, 2015
.travis.yml initial import Dec 8, 2015
Makefile added some tools Dec 14, 2015 updated documentation: new patterns Dec 14, 2015
composer.json fixed dependencies Dec 14, 2015

Pattern Detector for PHP

Detects design pattern in your code

License Build Status

## Installation

git clone
cd DesignPatternDetector
composer install

## Usage

./bin/design-pattern <source-directory>

You'll get something like:


## Why ?

Just for fun. This tool is only a proof of concept. But contributions are welcome :)

## Detected patterns

Today this tool is able to detect following patterns :

  • Micro
    • Structure
  • Structural
    • Bridge
    • Decorator
    • Proxy
  • Creational
    • Singleton
    • Abstract Factory
  • Behavior
  • Anti-patterns
    • GodObject / Blob

## License

See LICENSE file

You can’t perform that action at this time.