https://github.com/biohzrdmx/phpstan-view
Simple viewer for PHPStan-generated JSON result files
https://github.com/biohzrdmx/phpstan-view
json php phpstan viewer
Last synced: about 2 months ago
JSON representation
Simple viewer for PHPStan-generated JSON result files
- Host: GitHub
- URL: https://github.com/biohzrdmx/phpstan-view
- Owner: biohzrdmx
- License: mit
- Created: 2021-03-09T22:16:54.000Z (over 5 years ago)
- Default Branch: main
- Last Pushed: 2021-03-10T00:46:44.000Z (over 5 years ago)
- Last Synced: 2025-10-09T13:37:06.958Z (9 months ago)
- Topics: json, php, phpstan, viewer
- Language: PHP
- Homepage:
- Size: 4.88 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# phpstan-view
Simple viewer for PHPStan-generated JSON result files
## Usage
This was created for local usage, so it is assumed that you have a functional LAMP stack working.
Just place `phpstan-view.php` on your development root (that is, the folder where your repositories reside) and fire it in your browser.
By default the script lists all the folders as projects, when you click one it will search for a PHPStan JSON file using a preset folder structure. It may not fit your particular folder hierarchy, but you may modify it; just open `phpstan-view.php` on your favorite code editor and change the structure defined in `line 10`:
```php
$json_location = 'tests/output/phpstan.json';
```
Use the correct folder structure that you use in your projects and save.
## License
This is provided under the MIT License.
Also, this is by no means related to PHPStan nor its authors.
Created by biohzrdmx.