Phalcon 0.5.0 is finally here!

Read time: 4 minutes

image

The long wait is over, Phalcon 0.5.0 final is here! This version marks a huge step forward in our development roadmap, taking into account mostly features requested by the community and offering a lot of flexibility while still keeping performance high. Phalcon framework is now a very powerful, extensible and fast tool building any number of websites and applications using PHP.

The major changes in this version are:

  • Namespaces: Classes are now organized into namespaces. The components have been placed in their respective namespaces, offering better organization within the framework. API
  • Dependency Injection: The framework is equipped with the first service container and dependency injection component written in C for PHP. All components have been adjusted to make the most of this design pattern. Thus your code becomes more extensible, testable and flexible than ever before. Using Dependency Injection
  • Single and Multi-Module applications: The MVC components are now capable of creating single and multi module applications. This allows for easier resource sharing between modules. MVC Applications
  • Micro Applications: With a minimal amount of code, it is now possible to create small applications such as prototypes, apis, RESTFul applications and more. Micro Applications
  • PhalconQL (PHQL): PHQL is a high level, object oriented SQL dialect that allows to write queries using a standardized SQL-like language. PHQL is implemented as a parser (written in C) that translates syntax in that of the target RDBMS. To achieve the highest performance possible, the parser uses the same technology as SQLite. This technology provides a small in-memory parser with a very low memory footprint that is also thread-safe. Phalcon Query Language (PHQL)
  • Events Manager: With this new component you can add “hook points” and listen for events of the framework’s components as well as your own. Listeners could change the normal behavior of a component or simply obtain real-time information about them. Events Manager
  • CLI Applications: Now you can create command line applications. These are useful to create cron jobs, scripts, command utilities and more. Command Line Applications
  • PDO Database Adapters: All the database adapters have been migrated their PDO equivalents. This improves reuse of the framework’s code as well as offers an easier way to add more adapters in the future. PDO adapters increase the security of applications by reducing the SQL injection attacks. Also, from this version is available an adapter for SQLite. Database Adapters
  • Reflection and Introspection: Despite being written in C, Phalcon runs methods in the PHP userland, providing the debug capability that any other application or framework written in PHP has. Additionally, now, any instance of a Phalcon class offers exactly the same behavior than a PHP normal one. It’s possible to use the Reflection API or simply print any object to show how is its internal state. Debugging Applications

Other changes:

  • URL Generation: Now is possible to create URLs based on routes. Generating URLs and Paths
  • Universal Class Loader: The component to load classes is now PSR-0 compliant. Universal Class Loader
  • HTTP Constraints on Routes: Routes can be set if they match on certain HTTP methods. Routing
  • Session Flash Messenger: Flash messages can be directly printed or be stored in session to be shown in future requests Flashing Messages

Alongside with the above changes, improvements have been introduced within the framework to ensure stability and low memory usage.

Documentation The documentation now provides 3 tutorials:

The sample applications have been updated too:

As always you can download a DLL for Windows from the download page and compile the extension from Github. The complete documentation can be found here

We are happy to say that Phalcon is is turning into the best balance between performance and functionality never before achieved in the PHP world. Phalcon is one of the fastest frameworks on earth, and gradually is being one of the most robust too, providing you the tools you need to create amazing software and websites.

Thanks to all the community and the contributors for their hard work!

Thanks for being part of this amazing tool. Phalcon is made with a lot of love for you and the community. Tell everyone about this and enjoy Phalcon!


Chat - Q&A

Support

Social Media

Videos

<3 Phalcon Team

Projects
We're a nonprofit organization that creates solutions for web developers. Our products are Phalcon, Zephir and others. If you would like to help us stay free and open, please consider supporting us.