php-parser-nodes-docs
Visual documentation of PHP Parser nodes, to help you learn AST, how to create nodes and analyse them (by rectorphp)
php-ast-tracer-poc
By beberlei
php-parser-nodes-docs | php-ast-tracer-poc | |
---|---|---|
1 | 2 | |
26 | 13 | |
- | - | |
4.8 | 0.0 | |
7 months ago | about 5 years ago | |
PHP | C | |
- | - |
The number of mentions indicates the total number of mentions that we've tracked plus the number of user suggested alternatives.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
php-parser-nodes-docs
Posts with mentions or reviews of php-parser-nodes-docs.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-02-20.
-
Inferring strict types via production data profiling - is it possible?
You can easily modify rule to handle it, just check for $classMethod->params(), then $param->type, see: https://github.com/rectorphp/php-parser-nodes-docs#phpparsernodeparam
php-ast-tracer-poc
Posts with mentions or reviews of php-ast-tracer-poc.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-02-20.
-
PHP: nameof
If you are going to go the extension route, the zend_ast_process hook might be a good method, see https://github.com/beberlei/php-ast-tracer-poc
-
Inferring strict types via production data profiling - is it possible?
PHP extensions in general *could* do what you are asking for, because as said before they have access to this information. I see this as a combination of parsing PHP docblocks and automatically generating assert() calls right at the beginning of the function. Changing the AST is possible with a hook in an extensoin, here is a prototype of mine doing it: https://github.com/beberlei/php-ast-tracer-poc
What are some alternatives?
When comparing php-parser-nodes-docs and php-ast-tracer-poc you can also consider the following projects:
composer-unused - Show unused composer dependencies by scanning your code
Rector - Instant Upgrades and Automated Refactoring of any PHP 5.3+ code