PHP-GPIO
Whoops
Our great sponsors
PHP-GPIO | Whoops | |
---|---|---|
1 | 6 | |
270 | 13,124 | |
- | - | |
0.0 | 4.6 | |
over 4 years ago | 5 months 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.
PHP-GPIO
-
Stackoverflow in a nutshell
For PHP I'd use https://github.com/ronanguilloux/php-gpio and if you truly want to make it safer on security use a JSON Web Token https://en.wikipedia.org/wiki/JSON_Web_Token but honestly if it's a DIY solution on your LAN, no DMZ, I wouldn't even bother. At least I wouldn't start with that. If it works and you keep it running after weeks then yes, improve it including with security constraints.
Whoops
-
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?
Nmap - nmap is a PHP wrapper for Nmap.
laravel-ignition - A beautiful error page for Laravel apps
Embera - A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support.
Hprose-PHP - Hprose is a cross-language RPC. This project is Hprose 3.0 for PHP
html2text - A PHP component to convert HTML into a plain text format
Jumper - PHP remote closure executor
Spork - Experimental library for forking PHP
PHPVerbalExpressions - PHP Regular expressions made easy
Essence - Extracts information about web pages, like youtube videos, twitter statuses or blog articles.
git-profile - Utility that helps you switch git configurations with ease.
Pagerfanta - Pagination library for PHP applications with support for several data providers