Instalasi Zend Framework


20/09/2017 12:32:06 144 Web

Zend Framework merupakan salah satu dari framework pada bahasa Pemrograman PHP. Framework ini lebih menyasar pada aplikasi sekala besar dibanding projek sederhana. Zend Frameword pada saat ini telah mencapai versi 3.

Instalasi

Untuk instalasi Yii Framework ialah dengan menggunakan perintah berikut

$ composer require zendframework/zendframework
$ composer create-project zendframework/skeleton-application zend-skeleton
Installing zendframework/skeleton-application (3.0.2)
  - Installing zendframework/skeleton-application (3.0.2): Downloading (100%)
Created project in zend-skeleton
Loading composer repositories with package information
Installing dependencies (including require-dev) from lock file
Package operations: 18 installs, 0 updates, 0 removals
  - Installing zendframework/zend-component-installer (0.7.0): Downloading (100%)
  - Installing zendframework/zend-skeleton-installer (0.1.4): Downloading (100%)
  - Installing zendframework/zend-stdlib (3.1.0): Loading from cache
  - Installing zendframework/zend-config (2.6.0): Loading from cache
  - Installing zendframework/zend-loader (2.5.1): Loading from cache
  - Installing zendframework/zend-eventmanager (3.1.0): Downloading (100%)
  - Installing zendframework/zend-view (2.8.1): Downloading (100%)
  - Installing psr/container (1.0.0): Loading from cache
  - Installing container-interop/container-interop (1.2.0): Loading from cache
  - Installing zendframework/zend-servicemanager (3.3.0): Loading from cache
  - Installing zendframework/zend-validator (2.8.2): Downloading (100%)
  - Installing zendframework/zend-escaper (2.5.2): Loading from cache
  - Installing zendframework/zend-uri (2.5.2): Loading from cache
  - Installing zendframework/zend-http (2.6.0): Loading from cache
  - Installing zendframework/zend-router (3.0.2): Loading from cache
  - Installing zendframework/zend-modulemanager (2.7.2): Downloading (100%)
  - Installing zendframework/zend-mvc (3.0.4): Downloading (100%)
  - Installing zfcampus/zf-development-mode (3.1.0): Downloading (100%)
zendframework/zend-config suggests installing zendframework/zend-filter (Zend\Filter component)
zendframework/zend-config suggests installing zendframework/zend-i18n (Zend\I18n component)
zendframework/zend-config suggests installing zendframework/zend-json (Zend\Json to use the Json reader or writer classes)
zendframework/zend-view suggests installing zendframework/zend-authentication (Zend\Authentication component)
zendframework/zend-view suggests installing zendframework/zend-feed (Zend\Feed component)
zendframework/zend-view suggests installing zendframework/zend-filter (Zend\Filter component)
zendframework/zend-view suggests installing zendframework/zend-i18n (Zend\I18n component)
zendframework/zend-view suggests installing zendframework/zend-json (Zend\Json component)
zendframework/zend-view suggests installing zendframework/zend-navigation (Zend\Navigation component)
zendframework/zend-view suggests installing zendframework/zend-paginator (Zend\Paginator component)
zendframework/zend-view suggests installing zendframework/zend-permissions-acl (Zend\Permissions\Acl component)
zendframework/zend-servicemanager suggests installing ocramius/proxy-manager (ProxyManager 1.* to handle lazy initialization of services)
zendframework/zend-validator suggests installing zendframework/zend-db (Zend\Db component)
zendframework/zend-validator suggests installing zendframework/zend-filter (Zend\Filter component, required by the Digits validator)
zendframework/zend-validator suggests installing zendframework/zend-i18n (Zend\I18n component to allow translation of validation error messages as well as to use the various Date validators)
zendframework/zend-validator suggests installing zendframework/zend-i18n-resources (Translations of validator messages)
zendframework/zend-validator suggests installing zendframework/zend-math (Zend\Math component)
zendframework/zend-validator suggests installing zendframework/zend-session (Zend\Session component)
zendframework/zend-router suggests installing zendframework/zend-i18n (^2.6, if defining translatable HTTP path segments)
zendframework/zend-modulemanager suggests installing zendframework/zend-console (Zend\Console component)
zendframework/zend-mvc suggests installing zendframework/zend-json ((^2.6.1 || ^3.0) To auto-deserialize JSON body content in AbstractRestfulController extensions, when json_decode is unavailable)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-console (zend-mvc-console provides the ability to expose zend-mvc as a console application)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-i18n (zend-mvc-i18n provides integration with zend-i18n, including a translation bridge and translatable route segments)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-plugin-fileprg (To provide Post/Redirect/Get functionality around forms that container file uploads)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-plugin-flashmessenger (To provide flash messaging capabilities between requests)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-plugin-identity (To access the authenticated identity (per zend-authentication) in controllers)
zendframework/zend-mvc suggests installing zendframework/zend-mvc-plugin-prg (To provide Post/Redirect/Get functionality within controllers)
zendframework/zend-mvc suggests installing zendframework/zend-psr7bridge ((^0.2) To consume PSR-7 middleware within the MVC workflow)
zendframework/zend-mvc suggests installing zendframework/zend-servicemanager-di (zend-servicemanager-di provides utilities for integrating zend-di and zend-servicemanager in your zend-mvc application)
Generating autoload files

    Do you want a minimal install (no optional packages)? Y/n

    Removing optional packages from composer.json
    Updating composer.json
Removing zendframework/zend-skeleton-installer...
  - Removing zendframework/zend-skeleton-installer (0.1.4)
    Removed plugin zendframework/zend-skeleton-installer.
    Removing from composer.json
    Complete!
> zf-development-mode enable
You are now in development mode.

Setelah itu masuk kedalam directory dengan menggunakan perintah :

cd zend-skeleton

untuk menjalankan Zend framework dengan menggunakan Web Server build in PHP, jalankan perintah berikut:

$ php -S 0.0.0.0:8080 -t public public/index.php