Skip to content
This repository was archived by the owner on Jan 29, 2020. It is now read-only.

Commit

Permalink
Adds content from homepage to index.md file
Browse files Browse the repository at this point in the history
  • Loading branch information
froschdesign committed Oct 31, 2019
1 parent 1916498 commit 7f52fce
Showing 1 changed file with 123 additions and 0 deletions.
123 changes: 123 additions & 0 deletions docs/book/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
## Features

<div class="features">
<div class="row">
<div class="col-sm-6 col-md-4 text-center">
<img src="images/lambda.png" alt="Middleware">

<h3>PSR-15 Middleware</h3>

<p>
Create <a href="https://docs.zendframework.com/zend-stratigility/middleware/">middleware</a>
applications, using as many layers as you want, and the architecture
your project needs.
</p>
</div>

<div class="col-sm-6 col-md-4 text-center">
<img src="images/check.png" alt="PSR-7">

<h3>PSR-7 HTTP Messages</h3>

<p>
Built to consume <a href="https://www.php-fig.org/psr/psr-7/">PSR-7</a>!
</p>
</div>

<div class="col-sm-6 col-md-4 text-center">
<img src="images/network.png" alt="Routing">

<h3>Routing</h3>

<p>
Route requests to middleware using <a href="v3/features/router/intro/">the routing library of your choice</a>.
</p>
</div>
</div>

<div class="row">
<div class="col-sm-6 col-md-4 text-center">
<img src="images/syringe.png" alt="Dependency Injection">

<h3>Dependency Injection</h3>

<p>
Make your code flexible and robust, using the
<a href="v3/features/container/intro/">dependency injection container of your choice</a>.
</p>
</div>

<div class="col-sm-6 col-md-4 text-center">
<img src="images/pencil.png" alt="Templating">

<h3>Templating</h3>

<p>
Create <a href="v3/features/template/intro/">templated responses</a>, using
a variety of template engines.
</p>
</div>

<div class="col-sm-6 col-md-4 text-center">
<img src="images/error.png" alt="Error Handling">

<h3>Error Handling</h3>

<p>
<a href="v3/features/error-handling/">Handle errors gracefully</a>, using
templated error pages, <a href="https://filp.github.io/whoops/">whoops</a>,
or your own solution!
</p>
</div>
</div>
</div>

## Get Started Now!

Installation is only a [Composer](https://getcomposer.org) command away!

```bash
$ composer create-project zendframework/zend-expressive-skeleton expressive
```

Expressive provides interfaces for routing and templating, letting _you_
choose what to use, and how you want to implement it.

Our unique installer allows you to select <em>your</em> choices when starting
your project!

![Expressive Installer](images/installer.png)
{: .center-block }

[Learn More](v3/getting-started/quick-start.md){: .btn .btn-lg .btn-primary}

## Applications, Simplified

Write middleware:

```php
$pathMiddleware = function (
ServerRequestInterface $request,
RequestHandlerInterface $handler
) {
$uri = $request->getUri();
$path = $uri->getPath();

return new TextResponse('You visited ' . $path, 200, ['X-Path' => $path]);
};
```

And add it to an application:

```php
$app->get('/path', $pathMiddleware);
```

[Learn More](v3/features/application.md){: .btn .btn-lg .btn-primary}

## Learn more

* [Features overview](v3/getting-started/features.md)
* [Quick Start](v3/getting-started/quick-start.md)

Or use the sidebar menu to navigate to the section you're interested in.

0 comments on commit 7f52fce

Please sign in to comment.