PHP On Pie takes a fresh new approach.
Hey everyone. I've been creating a "social application framework" called PHP On Pie over the past 2 years, mainly to streamline my own work with social media applications and also to re-use code and help my developers get up to speed quicker. I'm open sourcing it under the BSD license and hopefully others among you find it useful. If you do, feel free to contribute back to it.
I came up with its design after using a lot of other PHP frameworks, including Cake (RoR clone basically), symfony/agavi, CodeIgniter, Kohana and Zend. And drupal. I think PIE really tries to take advantage of the PHP way, and make things simple. If you want, you can drop classes from ZF or PEAR into it and they "just work". Anyway if anyone wants to get involved, drop me a line.
http://phponpie.com
26 comments
[ 4.6 ms ] story [ 75.5 ms ] threadYou can make great applications with PHP.
Is relatively underwhelming. It's like saying 'you can make great cakes with sugar.' - true, but not really saying a lot.
What I wrote here is more of an early notice to the hackers out there who are interested in developing kick-ass applications in PHP. If you ask me -- and I've gone through a lot of frameworks -- this is definitely designed to help you achieve that with a minimum of fuss and a lot of power. I finished the documentation, but the sales job needs a lot more work. If anyone wants to contribute their time and energy to helping me grow this open source project, I'd much appreciate it. You would definitely have a huge role in the framework community if you did that. At the moment, though, I am more focused on my startup, and bringing developers on board to help with it. The documentation is there to help get them up to speed.
What would really get me to try it out is a video link on the first page. Just like the one on the play (Java) website. It should like play, show a jquery/ajax update. I've wanted to learn php (and a framework) for a long time, this could be it, if you give a short 10 minute demo.
You can't download the framework, you can't view the feature list, you can't click the "technology" tab.
None of those things require any particular functionality of javascript and could work as simple anchor tags.
Starting off the 'Technology' tab with supported OSes and servers couldn't be a good idea: those familiar with PHP will understand that incompatible with a system on which PHP is supported is a bug, but compatibility within PHP is obvious.
That said, the event system is interesting, and might be a good rethink of the Drupal hook system.
Personally, when passing a lot of parameters, I condense them into a "Holder" class:
It's worked well for me. It's also very handy for returning multiple values and status codes.Good point.
And it seems to be unclear on how you'd pass array and object members to it? It seems very much to encourage variable creep?
Good point.
array ('foo' => $foo, 'bar' => $bar, ...)
and just write
compact('foo', 'bar')
what's wrong with that? :)
About the event system: Thanks man, I put a lot of effort into it. It's way faster than the drupal system, and also more extensible.
On the other side the code is very well commented (not all but most of it), which is a very huge plus.
I'm just a bit surprised by your comments because they describe the exact opposite of how most of PIE is designed, and the philosophy behind it. Although I take your point with mixed variable naming. There is lots of room for standardizing the internal codebase more than it is.
Methods existing in the file: microtime, exceptionHandler, includeFile, autoload, var_dump, do_dump.
It's the first file I opened, and I see exactly what this guy saw immediately as well.