https://github.com/Halleck45/DesignPatternDetector
detection of design patterns in PHP code
https://github.com/Halleck45/DesignPatternDetector
Last synced: 10 months ago
JSON representation
detection of design patterns in PHP code
- Host: GitHub
- URL: https://github.com/Halleck45/DesignPatternDetector
- Owner: Halleck45
- License: mit
- Created: 2015-12-08T12:15:49.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2024-04-18T15:12:34.000Z (almost 2 years ago)
- Last Synced: 2025-03-26T20:21:17.660Z (11 months ago)
- Language: PHP
- Size: 61.5 KB
- Stars: 116
- Watchers: 6
- Forks: 14
- Open Issues: 6
-
Metadata Files:
- Readme: README.md
- Contributing: .github/CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE
Awesome Lists containing this project
- fucking-static-analysis - DesignPatternDetector
- static-analysis - DesignPatternDetector
README
# Pattern Detector for PHP
Detects design pattern in your code
[](https://packagist.org/packages/halleck45/design-pattern-detector)
[](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:

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