anthony / Real-time PHP-FPM Status
0 喜欢
0 派生
1 文件
最后活跃于
Taken from https://gist.github.com/shakahl/9dab7d1e49c5d8d6a57a4633a702d23c
Real-time PHP-FPM Status
This gist will explain you how to enable an undocumented feature of PHP-FPM which will give a real-time performance stats.
Everybody knows the famous phpinfo() and the page it generates, right? Then the real-time PHP-FPM status page design is very similar.

Some informations from the top are not displayed to avoid security issues.
Enable PHP-FPM Status
anthony / Simple dotenv loader
0 喜欢
0 派生
1 文件
最后活跃于
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Loads an environment variable |
| 5 | * |
| 6 | * @param string $name |
| 7 | * @param mixed|null $def |
| 8 | * @param bool $local |
| 9 | * @return array|mixed|string|null |
| 10 | */ |
anthony / Simple equivalents of Oracle functions
0 喜欢
0 派生
2 文件
最后活跃于
For those who like perversions
| 1 | <?php |
| 2 | |
| 3 | /** |
| 4 | * Simple php equivalent of Oracle's decode() |
| 5 | * |
| 6 | * It can be used as simple oneline-alternative to switch or if operators in many |
| 7 | * cases without difficult logic. For example, get string mnemocode of some value: |
| 8 | * |
| 9 | * echo 'State: '.decode($state, 0, 'disabled', 1, 'enabled', 'unknown'); |
| 10 | * |
上一页
下一页