Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/halleck45/designpatterndetector

detection of design patterns in PHP code
https://github.com/halleck45/designpatterndetector

Last synced: about 2 months ago
JSON representation

detection of design patterns in PHP code

Awesome Lists containing this project

README

        

# Pattern Detector for PHP

Detects design pattern in your code

[![License](https://poser.pugx.org/halleck45/php-metrics/license.svg)](https://packagist.org/packages/halleck45/design-pattern-detector)
[![Build Status](https://secure.travis-ci.org/Halleck45/DesignPatternDetector.svg)](http://travis-ci.org/Halleck45/DesignPatternDetector)

## Installation

git clone https://github.com/Halleck45/DesignPatternDetector.git
cd DesignPatternDetector
composer install

## Usage

./bin/design-pattern

You'll get something like:

![screenshot](./doc/capture1.png)


## 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