Първи стъпки с Zend Framework 3

zend-expressive

Инсталация с composer на Zend Expressive Skeleton
composer create-project zendframework/zend-expressive-skeleton path/to/install/dir

c:\xampp\htdocs>composer create-project zendframework/zend-expressive-skeleton c:\xampp\htdocs\zf
Installing zendframework/zend-expressive-skeleton (1.0.2)
– Installing zendframework/zend-expressive-skeleton (1.0.2)
Downloading: 100%

Created project in c:\xampp\htdocs\zf
> ExpressiveInstaller\OptionalPackages::install
Setup data and cache dir
Setting up optional packages

Minimal skeleton? (no default middleware, templates, or assets; configuration only)
[y] Yes (minimal)
[n] No (full; recommended)
Make your selection (No): n

Which router do you want to use?
[1] Aura.Router
[2] FastRoute
[3] Zend Router
Make your selection or type a composer package name and version (FastRoute): 3
– Adding package zendframework/zend-expressive-zendrouter (^1.0)
– Copying /config/autoload/routes.global.php

Which container do you want to use for dependency injection?
[1] Aura.Di
[2] Pimple
[3] Zend ServiceManager
Make your selection or type a composer package name and version (Zend ServiceManager): 3
– Adding package zendframework/zend-servicemanager (^2.7.3 || ^3.0)
– Adding package ocramius/proxy-manager (^1.0 || ^2.0)
– Copying /config/container.php

Which template engine do you want to use?
[1] Plates
[2] Twig
[3] Zend View installs Zend ServiceManager
[n] None of the above
Make your selection or type a composer package name and version (n): 3
– Adding package zendframework/zend-expressive-zendviewrenderer (^1.0)
– Copying /config/autoload/templates.global.php
– Copying /templates/error/404.phtml
– Copying /templates/error/error.phtml
– Copying /templates/layout/default.phtml
– Copying /templates/app/home-page.phtml

Which error handler do you want to use during development?
[1] Whoops
[n] None of the above
Make your selection or type a composer package name and version (Whoops): 1
– Adding package filp/whoops (^1.1 || ^2.0)
– Copying /config/autoload/errorhandler.local.php
Remove installer
Removing composer.lock from .gitignore
Removing Expressive installer classes, configuration, and tests
Loading composer repositories with package information
Updating dependencies (including require-dev)
– Installing zendframework/zend-escaper (2.5.2)
Downloading: 100%

– Installing psr/http-message (1.0)
Loading from cache

– Installing zendframework/zend-stratigility (1.2.1)
Downloading: 100%

– Installing zendframework/zend-expressive-template (1.0.3)
Downloading: 100%

– Installing zendframework/zend-stdlib (3.0.1)
Loading from cache

– Installing zendframework/zend-expressive-router (1.2.0)
Downloading: 100%

– Installing zendframework/zend-diactoros (1.3.5)
Downloading: 100%

– Installing container-interop/container-interop (1.1.0)
Loading from cache

– Installing zendframework/zend-expressive (1.0.0)
Downloading: 100%

– Installing zendframework/zend-validator (2.8.1)
Loading from cache

– Installing zendframework/zend-uri (2.5.2)
Loading from cache

– Installing zendframework/zend-loader (2.5.1)
Loading from cache

– Installing zendframework/zend-http (2.5.4)
Loading from cache

– Installing zendframework/zend-psr7bridge (0.2.2)
Downloading: 100%

– Installing zendframework/zend-servicemanager (3.1.1)
Downloading: 100%

– Installing zendframework/zend-router (2.7.3)
Downloading: 100%

– Installing zendframework/zend-expressive-zendrouter (1.1.0)
Downloading: 100%

– Installing zendframework/zend-eventmanager (3.0.1)
Loading from cache

– Installing zendframework/zend-view (2.8.1)
Downloading: 100%

– Installing zendframework/zend-i18n (2.7.3)
Downloading: 100%

– Installing zendframework/zend-filter (2.7.1)
Downloading: 100%

– Installing zendframework/zend-expressive-helpers (2.0.0)
Downloading: 100%

– Installing zendframework/zend-expressive-zendviewrenderer (1.1.0)
Downloading: 100%

– Installing zendframework/zend-code (2.6.3)
Downloading: 100%

– Installing ocramius/proxy-manager (1.0.2)
Downloading: 100%

– Installing symfony/yaml (v3.1.3)
Downloading: 100%

– Installing sebastian/version (1.0.6)
Loading from cache

– Installing sebastian/global-state (1.1.1)
Loading from cache

– Installing sebastian/recursion-context (1.0.2)
Loading from cache

– Installing sebastian/exporter (1.2.2)
Downloading: 100%

– Installing sebastian/environment (1.3.7)
Loading from cache

– Installing sebastian/diff (1.4.1)
Loading from cache

– Installing sebastian/comparator (1.2.0)
Loading from cache

– Installing doctrine/instantiator (1.0.5)
Loading from cache

– Installing phpunit/php-text-template (1.2.1)
Loading from cache

– Installing phpunit/phpunit-mock-objects (2.3.8)
Loading from cache

– Installing phpunit/php-timer (1.0.8)
Loading from cache

– Installing phpunit/php-file-iterator (1.4.1)
Loading from cache

– Installing phpunit/php-token-stream (1.4.8)
Loading from cache

– Installing phpunit/php-code-coverage (2.2.4)
Loading from cache

– Installing webmozart/assert (1.0.2)
Downloading: 100%

– Installing phpdocumentor/reflection-common (1.0)
Downloading: 100%

– Installing phpdocumentor/type-resolver (0.2)
Downloading: 100%

– Installing phpdocumentor/reflection-docblock (3.1.0)
Downloading: 100%

– Installing phpspec/prophecy (v1.6.1)
Downloading: 100%

– Installing phpunit/phpunit (4.8.27)
Downloading: 100%

– Installing squizlabs/php_codesniffer (2.6.2)
Downloading: 100%

– Installing filp/whoops (2.1.3)
Downloading: 100%

zendframework/zend-expressive-template suggests installing zendframework/zend-expressive-platesrenderer (^0.1 to use the Plates template renderer)
zendframework/zend-expressive-template suggests installing zendframework/zend-expressive-twigrenderer (^0.1 to use the Twig template renderer)
zendframework/zend-expressive-router suggests installing zendframework/zend-expressive-aurarouter (^0.1 to use the Aura.Router routing adapter)
zendframework/zend-expressive-router suggests installing zendframework/zend-expressive-fastroute (^0.1 to use the FastRoute routing adapter)
zendframework/zend-expressive suggests installing aura/di (3.0.*@beta to make use of Aura.Di dependency injection container)
zendframework/zend-expressive suggests installing xtreamwayz/pimple-container-interop (^1.0 to use Pimple for dependency injection)
zendframework/zend-expressive suggests installing zendframework/zend-expressive-aurarouter (^1.0 to use the Aura.Router routing adapter)
zendframework/zend-expressive suggests installing zendframework/zend-expressive-fastroute (^1.0 to use the FastRoute routing adapter)
zendframework/zend-expressive suggests installing zendframework/zend-expressive-platesrenderer (^1.0 to use the Plates template renderer)
zendframework/zend-expressive suggests installing zendframework/zend-expressive-twigrenderer (^1.0 to use the Twig template renderer)
zendframework/zend-validator suggests installing zendframework/zend-db (Zend\Db component)
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-console (Zend\Console component)
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-json (Zend\Json component)
zendframework/zend-view suggests installing zendframework/zend-mvc (Zend\Mvc 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-i18n suggests installing ext-intl (Required for most features of Zend\I18n; included in default builds of PHP)
zendframework/zend-i18n suggests installing zendframework/zend-cache (Zend\Cache component)
zendframework/zend-i18n suggests installing zendframework/zend-config (Zend\Config component)
zendframework/zend-i18n suggests installing zendframework/zend-i18n-resources (Translation resources)
zendframework/zend-filter suggests installing zendframework/zend-crypt (Zend\Crypt component, for encryption filters)
zendframework/zend-expressive-helpers suggests installing mouf/pimple-interop (^1.0 to use Pimple for dependency injection)
zendframework/zend-expressive-helpers suggests installing aura/di (3.0.*@beta to make use of Aura.Di dependency injection container)
zendframework/zend-code suggests installing doctrine/annotations (Doctrine\Common\Annotations >=1.0 for annotation features)
ocramius/proxy-manager suggests installing ocramius/generated-hydrator (To have very fast object to array to object conversion for ghost objects)
ocramius/proxy-manager suggests installing zendframework/zend-xmlrpc (To have the XmlRpc adapter (Remote Object feature))
ocramius/proxy-manager suggests installing zendframework/zend-json (To have the JsonRpc adapter (Remote Object feature))
ocramius/proxy-manager suggests installing zendframework/zend-soap (To have the Soap adapter (Remote Object feature))
sebastian/global-state suggests installing ext-uopz (*)
phpunit/php-code-coverage suggests installing ext-xdebug (>=2.2.1)
phpunit/phpunit suggests installing phpunit/php-invoker (~1.1)
filp/whoops suggests installing symfony/var-dumper (Pretty print complex values better with var-dumper available)
filp/whoops suggests installing whoops/soap (Formats errors as SOAP responses)
Writing lock file
Generating autoload files

След като прегледахме новите неща във версия 3, най-накрая можем да кажем, че Zend Framework се завърна в пълния си блясък.

This entry was posted in Новини, Услуги and tagged . Bookmark the permalink.