7

I have been a PHP developer working with Magento for years. I'm now wanting to work on a project that has no ecommerce component, and as such Magento is not a good choice. After browsing online at the other PHP frameworks, Phalcon is touted as the best choice in terms of performance and resource use.

The main drawback I've heard is that because it's programmed C, it's hard to debug any issues that may reside in the framework. Have any PHP developers found this to be a major issue? If so, what debugging tools would you suggest to address such issues?

Thanks for your time in advance.

Sean
  • 1,110
  • 1
  • 14
  • 24

1 Answers1

5

In short: No.

If you want more info about Phalcon, read on.

I've done http://oisie.com/en with Phalcon+mysql. Now I'm building new software with Phalcon+MongoDB and one Phalcon+Mysql. I'm with Phalcon for more then a year now developing almost every day and I can tell you, there is no such debug issues. At least I haven't had any. Phalcon is very solid framework and works blazing fast. It has all it needs to have. Developing is also very active, they are building new version already and the best part is that there shouldn't be any pain-points with Phalcon while updating it on your machine.

If you like pre-generate folders and files, you should check out this repository on github:

https://github.com/phalcon/phalcon-devtools

I've updated IDE stubs to newest version to get auto-completion working. You can find those here:

https://github.com/phalcon/phalcon-devtools/tree/master/ide

My experience with Phalcon:

  1. Easy updates of framework. Just update your apache's or nginx's module and that's it.
  2. I haven't had any issues after update of framework. Try develop anything with Zend v1.x and update it to 2.x You will have to update a ton of your code.. With Phalcon there is no such problem. I think it's very important in long-term projects.
  3. My IDE is not filled up with 5000+ files of framework, so it works faster while developing.
  4. Phalcon is precompiled, so it's fast because of low I/O and compiling. I saw guys who made server response ±40ms with Symfony, but it was such a challenge for them.. With Phalcon it's just daily stuff. You have 20-60ms response from server without any extra caching layers.
  5. It saves money. Less CPU + less RAM = less $ for servers.
  6. I've tried Zend and Symfony. Also years ago was working with Joomla, Drupal and WordPress. Phalcon is my main framework now and after it and don't want to look back :)

If you are starting up with Phalcon, should find useful things on my github acc: https://github.com/stars/liesislukas

Have fun ;)

P.S.

Phalcon 2 progress: https://github.com/phalcon/cphalcon/wiki/Progress-2.0 Phalcon 2 is written with Zephir (language to build apache/nginx extensions): https://github.com/phalcon/zephir

I've tried writing my won extension with Zephir and it's really easy to do :) I never liked C family languages because of it's strict stuff compared to PHP. And Zephir is language, which is familiar to PHP, but you write apache/nginx extension with it. So if you even not using Phalcon framework, but you have some heavy tasks, you can easily write precompiled extension for it. Play with it ;)

Lukas Liesis
  • 24,652
  • 10
  • 111
  • 109
  • 1
    Lukas, This is a wealth of information, thank you very much for the help! Good to hear that the debugging isn't an issue. Also like you said, I've heard other developers say "well if you tweak Laravel like this this and that it'll be faster" but that defeats the purpose of using a framework, which is to get projects up and running quickly. I'm excited to start working with it, it looks to be very powerful. – Sean Oct 24 '14 at 15:23
  • 1
    I think Phalcon is bringing a new era to PHP programming. It's the exact way how the framework should work. No reason not to precompile those files. Symonfy, Zend, Laravel. All great frameworks, tons of great websites are running with them, but well Phalcon has fundamental speed. No other framework could beat it beeing in plain PHP files. When you work with Phalcon it seems like it should be part of core PHP. – Lukas Liesis Oct 24 '14 at 20:32
  • I respectfully disagree with "there is no such debug issues". Try using Phalcon+Oracle or configurations which are not exactly mainstream in OS community. Many methods in the Oracle dialect are not implemented (Phalcon 2.0.8) + those implemented are buggy. This is not a complaint, just a heads up for those coming to Phalcon. Be ready to dive into Phalcon's core (zephir) and do some trial and error patching. I had to resort to throwing Exceptions here and there just to see what was going on within Phalcon (not ideal, I know). – Richard Laffers Dec 16 '15 at 09:44
  • I agree there could be issues and i bet someone has those, but to my experience, it was fluent. Nothing special, nothing hard to debug. Though I've moved out of PHP world, so can't comment on newest Phalcon release. – Lukas Liesis Dec 16 '15 at 11:13
  • This does not answer the question at all, the OP asked about debugging of Phalcon and you never addressed how to do it. The truth is that you cannot debug with phalcon which is a terrible framework because of it. – Rich Bianco Sep 03 '16 at 20:53