SolarPHP 1.0 Released 125
HvitRavn writes "SolarPHP 1.0 stable was released by Paul M. Jones today. SolarPHP is an application framework and library, and is a serious contender alongside Zend Framework, Symphony, and similar frameworks. SolarPHP has in the recent years been the cause of heated debate in the PHP community due to provocative benchmark results posted on Paul M. Jones' blog."
Re:blog (Score:3, Informative)
It is being Slashdotted right now, so it's not known whether the limitation is the framework speed, the server it's on, available bandwidth, database performance, or something else.
google "cache:..." (Score:2, Informative)
Re:Yet another... (Score:2, Informative)
When you go PHP, you know you're getting quality because it takes a special type of developer to wield the incredible power that raw PHP gives you.
You forgot a /s right? Cause you have to be joking.
PHP is indeed a powerful language, but your average PHP developer has no clue what they are doing if they can't just copy and paste it from somewhere (and then they still have trouble explaining how it's doing it). I'm not saying that there are good PHP people out there (I know a few actually), just that it has been the language of choice for anyone that picks up a book and thinks they are now a programmer for some time.
In my last job I worked extensively with PHP and often rolled my own libraries and objects even when the basic functionality exists simply because I disagree with fundamental decisions that were made (like how they (don't) handle errors being the most common. PHP supports Exceptions for christ sake. Use them!).
Re:Performance? (Score:2, Informative)
Zend Framework For You, then (Score:4, Informative)
Give us just a nice set of libraries. That's it.
Pretty much Zend Framework in a Nutshell. Totally misnamed -- there is no Framework. It's a set of disparate libraries organized into a sort of class hierarchy that happens to have amongst it a Controller class.
Re:No more frameworks please! (Score:1, Informative)
And they don't appear to close half of their .php files with '?>'. Why is that?
Because you avoid errors with trying to send headers after output since someone left whitespace at the end of a ?>
Re:No more frameworks please! (Score:2, Informative)
No closing ?> tag?
Because it's not XML, and it does not need to balance. The closing tag is just there to stop PHP processing and return to normal text mode. If you have no normal text to display it's completely optional. Heck, it might even help keep you from having trailing space/newlines/etc. at the end of your programatic output.
Now I personally prefer to close everything, and would never leave a hanging opening tag, but it's has no benefit toward processing the page.
Re:No more frameworks please! (Score:5, Informative)
As the AC noted below, it's considered a best practice to omit the ?> to avoid accidentally including non-processed whitespace after the closing tag when you include the file. If someone hits space after ?>, and you include that file and then try to print a header, it causes an error.
Clarification (Score:1, Informative)
Pauls blog is indeed running Wordpress, but that's all it is - a personal blog. The framework site itself runs on Solar.
This "performance debate" that people keep mentioning started back in 2006 when Paul benchmarked a select few frameworks (http://paul-m-jones.com/?p=236). Now even the creator of Symfony uses this method to compare performance. And Solar is still faster.
It's not a new framework on the block. It has been in development for years and can behave as a full-stack framework, a collection of libraries, or something in the middle. Even Zend has borrowed ideas from Solar (http://paul-m-jones.com/?p=1113).
I like to think of it as a framework for people who already know PHP. Having worked with CakePHP, CodeIgniter and a few others, there are far too many people in those communities who think that by using a framework they don't need to learn how to program. I'm pretty confident these people won't understand Solar. Hooray!
Things to love about Solar: http://www.solarphp.com/trac/core/browser/trunk/info/description