Installing Apigility on Debian 7.5

Apigility is an API Builder designed to easily create and maintain useful, easy to consume and well structured APIs in PHP. To run Apigility, we need PHP 5.3.23+, with the recommendation being PHP 5.4.8+ to enable the serving of the admin user interface.

Downloading Apigility

To download the latest release of the Framework, we access it at https://www.apigility.org/download.

Installing Apigility

Once downloaded, we can extract the archive and setup the virtual host to publish the public folder.

Installing Zend Framework on Debian 7.5

Zend Framework 2 is an open source framework for developing web applications and services using PHP 5.3+ using 100% object-oriented code and utilises most of the new features of PHP 5.3, namely namespaces, late static binding, lambda functions and closures. The components form a powerful and extensible web application framework and also offers a robust, high performance MVC implementation, a database abstraction that is easy to use, a forms component that implements HTML5 form rendering, validation and filtering as well as other components that provides authentication and authorization against common credential stores.

Downloading Zend Framework

To download the latest release of the Framework, we access it at http://framework.zend.com/downloads/.

Installing Zend Framework

Once downloaded, we can extract the archive to /usr/share/zend and re-use it in multiple applications.

Setting up Zend Framework

To use the shared Zend Framework library in our application, we set an environment variable in our virtual server to point to the installation directory of our library.

    SetEnv ZF2_PATH /usr/share/zend/ZendFramework-2.3.1/library

An alternative is to have the library on a per-application basis as per the skeleton application.