In this recipe, we will learn how to use Phalcon classes and components in your PHP extension written in Zephir. We will create additional functionality custom to our extension with the use of Zephir and Phalcon, thus extending the Phalcon framework! Using Phalcon classes in Zephir has been a difficult task with minimal success for a long time, but recently the Phalcon team and the community found a solution and implemented it in the language.
To successfully implement this recipe, you will need the latest version of Zephir installed on your computer. You can get the latest version from GitHub using Git. Using Git is not in the scope of this recipe so we will not extend on that. You will also need a basic understanding of the Linux operating system as well as being confident in working with the command line. Finally, you will need to have sudo
or root
access. If you do not have that, you will need to contact your system administrator.
To build an...