https://github.com/mfn/php-reflection-gen
Generates PHP source code shells from the current runtime via Reflections
https://github.com/mfn/php-reflection-gen
Last synced: 2 months ago
JSON representation
Generates PHP source code shells from the current runtime via Reflections
- Host: GitHub
- URL: https://github.com/mfn/php-reflection-gen
- Owner: mfn
- License: mit
- Created: 2014-10-12T17:51:43.000Z (over 10 years ago)
- Default Branch: master
- Last Pushed: 2018-11-25T18:27:12.000Z (over 6 years ago)
- Last Synced: 2025-01-23T21:31:20.050Z (4 months ago)
- Language: PHP
- Size: 17.6 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.txt
Awesome Lists containing this project
README
# Reflection based PHP stub generator
Homepage: https://github.com/mfn/php-reflection-gen
# Blurb
Uses the reflection capabilities of the current PHP runtime and emits all
classes, interfaces, traits and functions in parsable (but probably not runnable)
PHP code.# Install / Usage
```
composer require mfn/php-reflection-gen 0.0.5
````php_reflection_gen.php`
Will output all reflected data to stdout. Optionally you can write it to a file
or to a directory.In case using `--directory`, for each PHP extension a separate file is created.
# TODOs / Ideas
- Properly handle namespaces
(currently not a concern because of no PHP internals use Namespaces)
- Handle non-internal PHP reflections
- Support older (<5.4) PHP versions© Markus Fischer