https://github.com/mre/docker-php-phan
A Docker image for etsy's phan, the static analyzer for PHP
https://github.com/mre/docker-php-phan
analyzer phan php static-analysis
Last synced: 10 months ago
JSON representation
A Docker image for etsy's phan, the static analyzer for PHP
- Host: GitHub
- URL: https://github.com/mre/docker-php-phan
- Owner: mre
- Created: 2015-12-08T21:54:00.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2015-12-10T11:08:33.000Z (over 10 years ago)
- Last Synced: 2025-05-12T15:36:45.281Z (about 1 year ago)
- Topics: analyzer, phan, php, static-analysis
- Language: Shell
- Size: 1.95 KB
- Stars: 6
- Watchers: 2
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
### phan
This is a Docker container for etsy's static code analyzer phan.
With that, you can check your PHP code on the fly.
### Usage
Mount your code into the container to analyze it with phan.
Results will be printed to stdout.
docker run -it --rm -v `pwd`:/code mre0/php-phan
*Note*: Only the code in the src folder will be analyzed for errors.
This way you can have a vendor directory next to your src folder which will be used for
namespace resolution. If you only want to analyze all files in the local folder,
change the mount command a little:
docker run -it --rm -v `pwd`:/code/src mre0/php-phan