Comments (6)
Sounds like a plan!
from reflection.
I know a bit about https://github.com/nikic/PHP-Parser that is being used here and I get the idea that a reflection classes will be instantiated during PHP code parsing. But I have no clue how to give in a filename and get parsed reflections back from it.
from reflection.
Technically speaking it is simple, you can instantiate a FileReflector object with the filename of the file that you want to process and it created an AST for you that you can consume
from reflection.
I am using this lib in the API generator for the Yii Framework 2.0. You may check out the implementation here: https://github.com/yiisoft/yii2-apidoc/blob/master/models/Context.php#L57
from reflection.
Thanks. Besides for my needs I'm using Sami (https://github.com/fabpot/Sami) right now.
What I plan to use this library for is https://github.com/php-annotations/php-annotations
from reflection.
For version 2.0 (currently on the develop branch) there is a basic usage guide. I intend to add more documentation in the future but this solves the current issue
from reflection.
Related Issues (20)
- Check support of abstract methods in Traits
- Check support of Static return type.
- Check support of new Mixed type
- Invalid service in DefinitionErrorExceptionPass.php HOT 6
- Inline Example Loses Opening Curly Brace HOT 3
- phpDocumentor\Reflection\Php\File not extendable HOT 3
- Class used traits not working in 5.0.0 HOT 2
- Add support for `enums` in reflection HOT 1
- Resolve default value expression
- Add support for readonly properties
- Access PHP Parser nodes HOT 6
- Add support for `new` in constructor promoted properties
- Improve pretty print
- Define in function or method failed to parse HOT 1
- Can't properly determine Object_'s name without context HOT 2
- Error with define if it uses variable in name. HOT 4
- Make full line and column location of methods available in templates HOT 1
- Content in `example.php` is outdate
- Return tag with constant wildcard list parsed into InvalidTag instead of Return_ HOT 2
- Description of method-argument (@param)
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from reflection.