Set up Zend Framework Skeleton Application on Mac Step by Step

1.Install Composer

Follow Composer official guide and install it locally:

Run the following commands:

$ php -r “copy(‘’, ‘composer-setup.php’);”

$ php -r “if (hash_file(‘SHA384’, ‘composer-setup.php’) === ‘070854512ef404f16bac87071a6db9fd9721da1684cd4589b1196c3faf71b9a2682e2311b36a5079825e155ac7ce150d’) { echo ‘Installer verified’; } else { echo ‘Installer corrupt’; unlink(‘composer-setup.php’); } echo PHP_EOL;”

$ php composer-setup.php

$ php -r “unlink(‘composer-setup.php’);”

Here is the screenshot of what I did:


I got a warning about OpenSSL version, we can just ignore it for now.

Now I can see that composer.phar has been created in my file system:




2.Verify that Composer is installed successfully:

Since I installed Composer locally, so when I need to run Composer, I need to cd into the installation path, and run

$ php composer.phar



If you want to install Composer globally, you can follow this guide:



3. Install ZendSkeletonApplication

Follow the instruction on the Github repository:

Here I want to clone the application in “zend” folder, so I run this command:

$ php composer.phar create-project -n -sdev zendframework/skeleton-application zend

The screenshot:





4. Verify that ZendSkeletonApplication has been installed successfully

We can see that a “zend” folder is created and the application files are placed inside:


Start apache server(my apache root directory is parent folder of “mysites”), go to http://localhost/mysites/zend/public/

We can see the skeleton application running:






Leave a Reply

Fill in your details below or click an icon to log in: Logo

You are commenting using your account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s