I shared this project for the first time in this very subreddit, some 2 years ago, while it was still called "damnit". Some 5 million packagist downloads later it's still going strong, in great part thanks to the help of one the project's early contributors, denis-sokolov, who I can't praise enough.
I've been working on a redesign of the error page for quite a while, and it's been recently released, along with some other goodies and bug fixes.
Use a template system, or some type of XML Builder. If you're using PHP, even something like building your XML out of Twig templates is better/easier to maintain/less error-prone than having it all jumbled up with the rest of your code.
I've never heard of twitter using any PHP. IIRC it's mostly a mix between Ruby (on Rails) and Scala, with some other stuff sprinkled around for back-end systems.
If they do indeed use PHP anywhere, could you let me know where? I'm not saying they don't, just that I've never heard about it, and am curious to know if I'm mistaken.
For stats keeping, user management, etc, PHP is more than enough. If you're looking for realtime number-crunching or game-world management, something like Python, Node (Javascript) or Scala may be a better fit.
1 - PHP has several problems with language design, core implementations, etc (many of these are legacy-related). It's also easy to get started with, which leads to a community with a large percentage of newbies making silly mistakes.
2 - (a lot of) programmers are elitists, bandwagon-lovers, or just trying to fit in; PHP is an easy target for the things I mentioned in the first point.
You can indeed do it with something Laravel, and it is a great idea for a small project to help you get your bearings on PHP. If you'd like, you could also either:
a) Try to do this sans-framework, as a way to get better acquainted with the standard library
b) Try to do this with a micro-framework, like Silex or Slim, integrating existing libraries (maybe using Imagine to handle image resizing? Paris, Doctrine, Propel as a database abstraction? etc, you get the idea), as a way to get to know what's out there, using composer, etc
I wouldn't put it that way, there were some people with concerns about the name in a more...no-fun-allowed environment. Rather than risk losing adoption, I chose (after also taking it up with some more active contributors) to steer clear of any possible complications by renaming the library early on, while I still had a chance to.
I'll merge it in after I clean-up the code a bit, and add some more default editors to the list (only textmate, sublime and emacs thus far; with support for adding more through the handler).
I've addressed your concern with empty tables in a recent commit.
The passed parameters being shown is a planned feature, that was only held back due to some concerns as to the best way to show said data. Using Kint for that is actually one of the options in my head right now!
Not currently, although it should be pretty straight-forward to integrate. Contributions are very much welcome, and if nothing happens on that end, I'll make it myself soon-ish!
A lot of info is available but not displayed if empty, such as $_POST and $_SESSION data. Other useful information can be added for individual projects through the available methods (esp. PrettyPageHandler::addDataTable).
Some other contextually-sensitive information could indeed be made available, I'll work it into future updates.
As for the suggestion to make clickable IDE links - good idea! I'll put that into an update in the near future, thanks!
It's a planned feature, there's an open enhancement issue for it - the delay is an effect of some doubts about the best way to display arguments in a meaningful and useful way, without bloating the page with too much data.
Here's a comparison:
- Before
+ After
And thanks! Glad you like it!
I shared this project for the first time in this very subreddit, some 2 years ago, while it was still called "damnit". Some 5 million packagist downloads later it's still going strong, in great part thanks to the help of one the project's early contributors, denis-sokolov, who I can't praise enough.
I've been working on a redesign of the error page for quite a while, and it's been recently released, along with some other goodies and bug fixes.
Use a template system, or some type of XML Builder. If you're using PHP, even something like building your XML out of Twig templates is better/easier to maintain/less error-prone than having it all jumbled up with the rest of your code.
I've never heard of twitter using any PHP. IIRC it's mostly a mix between Ruby (on Rails) and Scala, with some other stuff sprinkled around for back-end systems.
If they do indeed use PHP anywhere, could you let me know where? I'm not saying they don't, just that I've never heard about it, and am curious to know if I'm mistaken.
I've abandoned entire PHP websites, and PHP in general (as far as my job allows it) for ruby.
PHPStorm and Sublime Text 2
That's fine, you don't have to follow the PSRs if you don't want to.
Halting (possible) progress on one side because of things on another unrelated side is an awful way to manage things.
That's already possible, isn't it?
While some things are always useful, those books were published as far back as 2001.
For stats keeping, user management, etc, PHP is more than enough. If you're looking for realtime number-crunching or game-world management, something like Python, Node (Javascript) or Scala may be a better fit.
I really like that idea, thank you!
1 - PHP has several problems with language design, core implementations, etc (many of these are legacy-related). It's also easy to get started with, which leads to a community with a large percentage of newbies making silly mistakes.
2 - (a lot of) programmers are elitists, bandwagon-lovers, or just trying to fit in; PHP is an easy target for the things I mentioned in the first point.
I've used Sami for a couple of projects. It doesn't seem to be very popular, but works well enough, and I like it's incremental update feature.
You can indeed do it with something Laravel, and it is a great idea for a small project to help you get your bearings on PHP. If you'd like, you could also either:
a) Try to do this sans-framework, as a way to get better acquainted with the standard library
b) Try to do this with a micro-framework, like Silex or Slim, integrating existing libraries (maybe using Imagine to handle image resizing? Paris, Doctrine, Propel as a database abstraction? etc, you get the idea), as a way to get to know what's out there, using composer, etc
Good luck!
<?php echo file_get_contents("file.txt") ?>It can! Scroll down on the project's page, it has an example for setting it up without any other framework. Let me know if you need a hand.
I wouldn't put it that way, there were some people with concerns about the name in a more...no-fun-allowed environment. Rather than risk losing adoption, I chose (after also taking it up with some more active contributors) to steer clear of any possible complications by renaming the library early on, while I still had a chance to.
Thanks Phil, I really appreciate all your support!
Not yet! If you're up for it, I'd really appreciate it!
You think correctly! I'll fix that right away, good catch!
I've pushed support for clickable editor links to its own feature branch, available here:
https://github.com/filp/whoops/tree/feature/open-in-editor
I'll merge it in after I clean-up the code a bit, and add some more default editors to the list (only textmate, sublime and emacs thus far; with support for adding more through the handler).
Again, thanks for the suggestions!
I've addressed your concern with empty tables in a recent commit.
The passed parameters being shown is a planned feature, that was only held back due to some concerns as to the best way to show said data. Using Kint for that is actually one of the options in my head right now!
Thanks!
Not currently, although it should be pretty straight-forward to integrate. Contributions are very much welcome, and if nothing happens on that end, I'll make it myself soon-ish!
A lot of info is available but not displayed if empty, such as
$_POSTand$_SESSIONdata. Other useful information can be added for individual projects through the available methods (esp.PrettyPageHandler::addDataTable).Some other contextually-sensitive information could indeed be made available, I'll work it into future updates.
As for the suggestion to make clickable IDE links - good idea! I'll put that into an update in the near future, thanks!
It's a planned feature, there's an open enhancement issue for it - the delay is an effect of some doubts about the best way to display arguments in a meaningful and useful way, without bloating the page with too much data.
Any suggestions are appreciated, ideally in the following issue: #15: Display arguments of failed function calls