Web Development in the Cloud with Zend Framework

Zend Framework 2 is an open source framework for developing web applications and services using PHP 5.3+. Zend Framework 2 uses 100% object-oriented code and utilizes most of the new features of PHP 5.3, namely namespaces, late static binding, lambda functions and closures. It’s a successful PHP framework with over 15 million downloads.

The component structure of Zend Framework 2 is unique; each component is designed with few dependencies on other components. ZF2 follows the solid object oriented design principle. This loosely coupled architecture allows developers to use whichever components they want. Zend guys call this a “use-at-will” design.

head-bottom-picture-(1)

Zend framework helps in creating PHP web applications easily and with minimal hassle:

  • It is a framework that is known for its simplicity. It provides a PHP developer with a lightweight component library that offers as much as 80% functionality and even lets one to customize the remaining 20%.
  • Zend follows industry best practices and helps in generating quality codes. The components of Zend Framework are unit tested using PHP Unit and easily extended.
  • Zend framework is extremely flexible and it supports all the features of the latest version of PHP.
  • It allows web developers to develop and deliver very interactive web applications to their clients in a cost effective way and much more.

Let’s get even more advantages using Zend for web development in the cloud!

Create an environment

1. Go to Jelastic.com and sign up if you haven’t done it yet or log in with your Jelastic credentials by clicking the Sign In link on the page.

2. While in Jelastic dashboard, click the Create environment button.

ftp1

3. In the Environment Topology dialog, pick Apache as your application server, specify your cloudlet limits and type your environment name, for example zendframework.

zend_environment

In a minute your environment will be successfully created.

Deploy application

1. We use simple skeleton application ZendFramework.zip. You can simply download this package for the further testing or get a working copy of this project by cloning the repository and using composer to install dependencies:

cd my/project/dir
git clone git://github.com/zendframework/ZendSkeletonApplication.git
cd ZendSkeletonApplication
php composer.phar install

2. Upload your Zend application zip package to the Deployment manager.

zend_upload

3. Deploy your package to the environment you have just created.

zend_deploy

3. Click Config button for Apache.

zend-cofig

4. Navigate to config -> httpd.conf file and enter the following strings

<VirtualHost *:80>
  ServerAdmin postmaster@dummy-host2.localhost
  DocumentRoot "/var/www/webroot/ROOT/public"
  ServerName website.jelastic.com
  ErrorLog logs/dummy-host.jelastic.com-error_log
  CustomLog logs/dummy-host.jelastic.com-access_log combined
 SetEnv APPLICATION_ENV "development"
<Directory /var/www/webroot/ROOT/public>
  DirectoryIndex index.php
  AllowOverride All
  Order allow,deny
  Allow from all
</Directory> 
</VirtualHost>

instead of:

<VirtualHost *:80>
 ServerAdmin webmaster@domain.com
   DocumentRoot /var/www/webroot/ROOT
   ServerName website.jelastic.com
   ServerAlias *
   ErrorLog logs/dummy-host.jelastic.com-error_log
   CustomLog logs/dummy-host.jelastic.com-access_log common
 </VirtualHost>

zend_configuration

Note: Such a configuration is suitable for ROOT context only. If you use any other context then parameters DocumentRoot and Directory have to be changed to appropriate context name. For example:
/var/www/webroot/MyContextName/public

5. Save the changes and restart the server in order to apply the new configurations.

zend_restart_apache

Now you can open your application in a web browser.

zend_open_in_browser

zend_welcome_page

Zend Framework is one of the frameworks aimed to provide their users with the best practices, and to give repeatable, reusable structures for the applications they built. As well as Jelastic it is based on simplicity. Don’t waste your time developing with complicated frameworks or using proprietary cloud platforms, choose easy solutions!

5 Responses to “Web Development in the Cloud with Zend Framework”

  1. Web Development in the Cloud with Zend Framework | Jelastic — Die nächste Generation Java-Hosting-Plattform

    [...] Marina Sprava hat einen neuen interessanten Artikel in unserem englischen Blog geschrieben, den wir Euch nicht vorenthalten wollen. Web Development in the Cloud with Zend Framework [...]

    Reply
  2. Web Development in the Cloud with Zend Framework | Jelastic … | Internet blog

    [...] The rest is here: Web Development in the Cloud with Zend Framework | Jelastic … [...]

    Reply
  3. Fast, Easy Web Design! » Blog Archive » Web Development in the Cloud with Zend Framework Jelastic …

    [...] Web Development in the Cloud with Zend Framework | Jelastic …By Marina SpravaZend Framework 2 is an open source framework for developing web applications and services using PHP 5.3+. Zend Framework 2 uses 100% object-oriented code and utilizes most of the new features of PHP 5.3, namely namespaces, late …Jelastic — Top Java and PHP… [...]

    Reply
  4. Web Development in the Cloud with Zend Framework | Jelastic ... | Innovation Engineering | Scoop.it

    [...] Zend Framework 2 is an open source framework for developing web applications and services using PHP 5.3+. Zend Framework 2 uses 100% object-oriented code and utilizes most of the new features of PHP 5.3, namely …  [...]

    Reply
  5. Zend Development Services

    Thanks for sharing this information about zend framework installment. I was looking for the same information and finally got here.

    Reply

Leave a Reply