Token Bucket
Implementation of the Token Bucket algorithm in PHP. (by bandwidth-throttle)
Whoops
PHP errors for cool kids (by filp)
Our great sponsors
Token Bucket | Whoops | |
---|---|---|
2 | 6 | |
499 | 13,124 | |
1.0% | - | |
0.0 | 4.6 | |
about 1 year ago | 5 months ago | |
PHP | PHP | |
Do What The F*ck You Want To Public License | MIT License |
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.
Token Bucket
Posts with mentions or reviews of Token Bucket.
We have used some of these posts to build our list of alternatives
and similar projects.
-
unsecured api
Well, there isn't a way to fully prevent reverse engineering/web scraping of an api. You can make it so a user can only access/delete their own data by using a PHP session and validating the token sent to the server before sending any data back or performing an operation. You can protect yourself from dos requests by rate limiting access for each session to the api. Also, sanitize and validate all user input.
-
Need assistance in streaming json with only single xhr/ajax request
Does this help? bandwidth-throttle/token-bucket: Implementation of the Token Bucket algorithm in PHP. (github.com)
Whoops
Posts with mentions or reviews of Whoops.
We have used some of these posts to build our list of alternatives
and similar projects. The last one was on 2022-08-17.
-
Weekly help thread
To get the full control of the error output (or, rather, of the error message handling) I would suggest to use an exception handling function, set_exception_handler() I've got an example in my article on PHP error reporting. There, instead of just spitting out the raw exception, you can use the Exception class methods to get the relevant parts and either log or echo them out, depends on the server role. Or you can even include a library like Whoops that dramatically improves the output.
- error: there's a bug in your code
-
I hate PHP development
Check out spatie/laravel-ignition (if using Laravel) or filp/whoops
-
spatie/ignition is now framework agnostic and can be used as your local error handler in any PHP project
I've been using whoops but it's a bit stale (not even 7.x or 8.x native, just compatible with those but still very much 5.x code). Might have to explore ignition.
-
Does anyone know of a Go library that provides "helpful" error pages for web apps?
To give an example of what I am looking for, there is this library for PHPT: http://filp.github.io/whoops/
-
Computer crash with a debug console in a Danish public bus.
You're correct about it being a faulty webpage, but that's now what any browsers devtools look like. What you're seeing here is a whoops error page from an older version of Laravel.
What are some alternatives?
When comparing Token Bucket and Whoops you can also consider the following projects:
PHP PassBook - iOS passbook library for PHP
laravel-ignition - A beautiful error page for Laravel apps
Hprose-PHP - Hprose is a cross-language RPC. This project is Hprose 3.0 for PHP
PHP-GPIO - A PHP library to play with the Raspberry PI's GPIO pins
print_o - An object graph visualizer
JSONPCallbackValidator - JSONP callback validator.
Jumper - PHP remote closure executor
PHPCR - Port of the Java Content Repository (JCR) to PHP.
PHPVerbalExpressions - PHP Regular expressions made easy
JSON Lint - JSON Lint for PHP
html2text - A PHP component to convert HTML into a plain text format
Token Bucket vs PHP PassBook
Whoops vs laravel-ignition
Token Bucket vs Hprose-PHP
Whoops vs PHP-GPIO
Token Bucket vs print_o
Whoops vs Hprose-PHP
Token Bucket vs JSONPCallbackValidator
Whoops vs Jumper
Token Bucket vs PHPCR
Whoops vs PHPVerbalExpressions
Token Bucket vs JSON Lint
Whoops vs html2text