Expressive Skeleton and Installer
Begin developing PSR-7 middleware applications in seconds!
zend-expressive builds on zend-stratigility to provide a minimalist PSR-7 middleware framework for PHP with routing, DI container, optional templating, and optional error handling capabilities.
This installer will setup a skeleton application based on zend-expressive by choosing optional packages based on user input as demonstrated in the following screenshot:
The user selected packages are saved into composer.json
so that everyone else
working on the project have the same packages installed. Configuration files and
templates are prepared for first use. The installer command is removed from
composer.json
after setup succeeded, and all installer related files are
removed.
Getting Started
Start your new Expressive project with composer:
$ composer create-project zendframework/zend-expressive-skeleton <project-path>
Release Candidates
At this time, we are currently issuing release candidates. By default, Composer only installs stable versions if no stability flag is provided, which means that the above statement will pick up a 0.X version of the skeleton and Expressive.
To install a release candidate, use the following:
$ composer create-project zendframework/zend-expressive-skeleton:^1.0@rc <project-path>
After choosing and installing the packages you want, go to the
<project-path>
and start PHP's built-in web server to verify installation:
$ composer serve
You can then browse to http://localhost:8080.