Zend Expressive Essentials

Learn the Fundamentals and Start Creating Great Apps

Zend Expressive Essentials iMac and book cover image

"Zend Expressive Essentials" is a book and video course that teaches you the fundamentals that you need to know so that you can begin building applications right away.

It’s a practical, hands-on approach which shows you enough of how Expressive is put together as well as how to use it while not getting lost in things that aren't generally necessary.

What You’ll Learn

What Is A Micro Application

First, you'll find out what a micro-application is so that you're in the right mindset.

What Is Zend Expressive

Then, you'll get a rapid overview of Zend Expressive, specifically it's two core concepts: the forthcoming PSR-15 & Middleware.

Zend Expressive's Core Components

After that, you'll learn about the four core components of routing, dependency injection, templating, and error handling.

How To Create An Application Manually

With that foundation in place, you're ready to build an Expressive application. Specifically, you'll create one by hand — no shortcuts, no hidden steps.

How To Create An Application Using The Skeleton Installer

Now that you've built an Expressive application manually, I'll show you how to save time and effort by using the Skeleton Installer and its tooling support.

How to Increase the power of an Application

With a basic application in place, you'll next learn about how to extend its power by adding support for databases.

How To Create Middleware

Finally, you'll learn the most powerful aspect of Expressive applications - middleware. You’ll also get more insight into a range of other aspects of what Expressive has to offer.

Table of Contents

The first section of the book focuses on the core concepts and theory that you have to know to get the most out of Zend Expressive. While not getting lost in theory, it shows enough so that you can make sense of why applications are built like they are.

An Introduction to Zend Expressive

  • What is a Micro Application?
  • What is Zend Expressive?
  • Zend Expressive’s Two Core Concepts (PSR-15 & Middleware)
  • Zend Expressive’s Core Components
    • Routing
    • Dependency Injection
    • Templating
    • Error Handling

The second — and larger — section of the book walks you through the process of creating an application, first by hand, and then by using the Skeleton installer and command-line tooling support. After that you’ll learn how to rapidly expand the application's power by integrating external libraries, as well as how to create powerful middleware.

Create an Application by Hand

  • How to create an application from scratch
  • How to refactor it to make it more reusable and maintainable
  • How to refactor it to add Dependency Injection support
  • How to refactor it to containerize the entire application

Create an Application Using the Skeleton Installer

  • Create the application using the Skeleton Installer
  • Understanding the directory structure
  • Use Zend Expressive Tooling to aid in migrating the original application
  • Port the original existing application code

Increase an Application’s Power

  • How to integrate external libraries
  • How to add database support

Create Powerful Middleware

  • How to Create Middleware Classes
  • How to Configure the Middleware Pipeline

 About The Author

Matthew Setter Hey, I'm @settermjd, I'm a freelance software developer and technical writer, as well as a teacher and podcaster. I founded Master Zend Framework and am the host of Free the Geek. Originally from Rockhampton, Australia, I'm now living just outside of Nuremberg, Germany. I share what I know and learn through my blog and by speaking at conferences around the world.