PHPBench
php-generics
Our great sponsors
PHPBench | php-generics | |
---|---|---|
3 | 7 | |
1,839 | 205 | |
0.5% | - | |
8.0 | 3.9 | |
8 days ago | 11 days ago | |
PHP | PHP | |
MIT License | MIT License |
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.
PHPBench
-
Comparing PHP Collections
I used phpbench to measure performance. I think one of the big differences between all the solutions is the type checking. So I decided to try measure it. How much faster will code with/without type checking?
-
Benchmark: Mezon Router is up to 196 tomes faster then Hoa Router
use phpbench
php-generics
-
How come there is no such thing as an equivalent to TypeScript in PHP?
Hi. I'm the author of the library which brings generics into PHP like TypeScript https://github.com/mrsuh/php-generics. Libraries like this have a few big problems to start using them freely:
-
Parsing with PHP, Bison and re2c
I used this knowledge to create the PHP generics library.
-
Comparing PHP Collections
Hi! I don't think so. Is used this library to translate generics syntax into regular PHP syntax. It's not equal to real PHP generics (like Hack did). IDE doesn't support PHP generic syntax yet. You can read about it here.
If you are only using simple collections you can use array - it is very fast and requires little memory. PHP doesn't support generic syntax and IDE can't make hints about the type of objects in a collection (yet), but if you want PHP to do type checks at runtime you can test the php-generics library.
-
Generics implementation approaches
This approach has a big memory effect. PHP doesn't support native generics, but you can test monomorphized generics with my library.
-
PHP Generics. Right here. Right now
} ``` Library: https://github.com/mrsuh/php-generics Example repo: https://github.com/mrsuh/php-generics-example Have a nice day!
What are some alternatives?
xDebug - Xdebug — Step Debugger and Debugging Aid for PHP
XHProf - XHProf is a function-level hierarchical profiler for PHP and has a simple HTML based user interface.
Tracy - 😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, logging, profiler, advanced features like debugging AJAX calls or CLI support. You will love it.
PHP Debug Bar - Debug bar for PHP
Dontbug Debugger
Barbushin PHP Console - Handle PHP errors, dump variables, execute PHP code remotely in Google Chrome
APM - PHP APM (Alternative PHP Monitor)
Kint - Kint - a powerful and modern PHP debugging tool.
PHPDBG
php-generics-rfc - Mirror of https://wiki.php.net/rfc/generics for easier collaboration
Dephpugger - Php Debugger to run in terminal to debug your code easily.
tasty-bench - Featherlight benchmark framework, drop-in replacement for criterion and gauge.