Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Building Websites with Zend Expressive 2

PHP UK Conference via YouTube

Overview

Explore building PHP applications with Zend Expressive 2 in this conference talk from PHP UK Conference 2018. Learn about the framework's architecture, middleware system, and PSR-15 specification implementation. Discover how to set up an application, handle routing and errors, and architect scalable projects. Dive into topics such as the framework core, ecosystem-agnostic router, middleware pipeline, and directory structure. Follow along as the speaker demonstrates creating routes, handlers, and templates, implementing dependency injection, and validating request data. By the end, gain the knowledge to create your own Expressive applications that can adapt to various project sizes and requirements.

Syllabus

Intro
Framework core
Ecosystem
Agnostic Router
Middleware pipeline
PSR-15 Middlewarelnterface
Structure of middleware
src/App directory - Each module lives in its own namespace
src/App directory structure
A handler (AKA: an action)
Bitcoin conversion
Create a route
Routes have a method
HTTP Method
Routes have a pattern
FastRoute URI pattern
Routes have a name
Url helper
Routes have a handler
Handlers
Bitcoin handler
Injecting dependencies
Expressive configuration
Config Provider
Dependency configuration
Handler factory Return an instance of the handler with its injected dependencies
Templating - Render method to convert page
Twig templates
Action template
Print variables
Control statements
Template inheritance
Base skeleton
Add a form: HTML
Integration via ConfigProvider
Create an input filter
Validating request data
Resources

Taught by

PHP UK Conference

Reviews

Start your review of Building Websites with Zend Expressive 2

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.