reli-prof
A sampling profiler or a memory profiler for PHP written in PHP, which reads information about running PHP VM from outside the process. You can find performance bottlenecks or memory leaks of your scripts without changing the target script or loading extensions. (by reliforp)
php-ffi
PHP Foreign Function Interface (by dstogov)
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.
reli-prof
Posts with mentions or reviews of reli-prof.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-02-06.
- Reli 0.9.0 is released with a memory profiling tool
- Show HN: Reli – a VM state inspector written in PHP for PHP
- sj-i/php-profiler: a sampling profiler for PHP written in PHP
-
sj-i/php-fuse: PHP FFI bindings for libfuse. You can write your own filesystems in PHP.
There are a few things about FFI that bother me, though not so much the problems. These are things that I found a bit annoying, not only in this project but also in my experience with another project (https://github.com/sj-i/php-profiler). Let me try to share some of them with you.
php-ffi
Posts with mentions or reviews of php-ffi.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2021-03-26.
-
sj-i/php-fuse: PHP FFI bindings for libfuse. You can write your own filesystems in PHP.
So far this has not been a major issue in this project, but as mentioned in the RFC and the original FFI repository, the use of PHP callbacks involves leaks until the end of the process. https://wiki.php.net/rfc/ffi#php_callbacks https://github.com/dstogov/php-ffi#php-callbacks There is no detailed description of the leak, but it is probably the same problem as in LuaJIT. https://luajit.org/ext_ffi_semantics.html#callback_resources If you are using a few callbacks during a process execution, as in the php-fuse example, it seems to be okay. However, for example, if you try to use qsort() in a loop, the leakage caused by callbacks may be problematic. As in the case of LuaJIT, it is probably needed to provide an API to explicitly cast the callable to a function pointer that can be called from the C side, and also to provide a way to manually release it.
What are some alternatives?
When comparing reli-prof and php-ffi you can also consider the following projects:
z-engine - :zap: PHP Engine Direct API
php-fuse - PHP FFI bindings for libfuse
laravel-xhprof - Easy XHProf setup to profile your laravel application!
phpstorm-stubs - PHP runtime & extensions header files for PhpStorm
libfuse - The reference implementation of the Linux FUSE (Filesystem in Userspace) 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.
Aura.Sql - SQL database access through PDO.