preloader

Laminas MVC is the open source version of Zend Framework. This course teaches you how to rapidly create a complete web based application using Laminas MVC.

Laminas MVC

MEETINGS

Check Schedule

DURATION

2 Sessions: 2 hours each session

FEE

Originally $180, now discounted to $90

About Course

The Laminas MVC is the open source version of Zend Framework. It consists of a set of PHP libraries based upon the Model-View-Controller software design pattern. Application flow is controlled by a series of pre-defined listeners and events that can be altered at will. Model classes with complex dependencies can be defined in a generic service container and made available on demand throughout the application. This course teaches you how to rapidly create a complete web based application using Laminas MVC.

Detailed Course Outline

Laminas Overview

In this unit you are presented with the "big picture" on Laminas.

This unit includes the following topics:

  • Laminas Overview
  • What is Laminas?
  • Laminas History
  • Laminas MVC
  • Laminas API Tools
  • Laminas Mezzio
  • Laminas Components

Laminas MVC Skeleton

This unit covers the _Laminas Skeleton_ which is a completely functional Laminas MVC application that can be extended by adding custom modules, controllers, models, etc.

This unit includes the following topics:

  • Laminas MVC Skeleton
  • Laminas MVC Skeleton Overview
  • Laminas MVC Skeleton App Installation
  • Laminas MVC Skeleton App Structure
  • Laminas MVC Skeleton App Test
  • What's Next?
  • Lab: Laminas MVC Skeleton

Laminas MVC Modules

Modules are designed to encapsulate logically related functionality. Each module represents a distinct PHP namespace which facillitates code isolation. Inside a module you create one or more controllers, forms and service classes that capture the appropriate business logic.

This unit includes the following topics:

  • Laminas MVC Modules
  • Module Basics
  • Module Class
  • Directory Structure
  • Module Registration
  • Module Autoloading
  • Module Configuration
  • PHP-CL Laminas Tools
  • Creating a New Module
  • Lab: New Module

Laminas MVC Controllers

Laminas controllers are classes that are _dispatched_ after the route listener analyzes the request and determines which module, controller and action are to be dispatched.

This unit includes the following topics:

  • Laminas MVC Controllers
  • Controllers Overview
  • Controller Example
  • Controller Registration
  • Laminas MVC Routing Configuration
  • Laminas MVC Routing Configuration
  • Accepting Input
  • Accepting Input from a URL
  • Accepting Input from a Form
  • Accepting Input from a Route Parameter
  • Action Route Parameter
  • View Templates
  • View Configuration
  • Passing Data to the View
  • Lab: Laminas MVC Controller

Laminas MVC Services

One of the most powerful features in Laminas is its ability to house factory code in a _service container_ that is called on demand to produce instances of commonly used objects.

This unit includes the following topics:

  • Laminas MVC Service Container
  • Service Container Overview
  • Service Types
  • "services" Example
  • Service Factories
  • Services Factory Example
  • CalendarController Modifications
  • CalendarController Factory
  • Factory Registration
  • Services Example Output
  • Service Override
  • Service Override Example
  • Service Override Example
  • Lab: Laminas Service Container

Laminas MVC Models

The _Models_ portion of the MVC software design pattern is not defined in Laminas. The reason for this is because the logic contained within a model class is completely dependent upon the nature of the business. Accordingly, in this unit, we will focus on database access.

This unit includes the following topics:

  • Laminas MVC Models
  • Database Adapters
  • Database Adapter Usage
  • Database Adapter Usage
  • View Showing Query Results
  • Database Adapter Configuration
  • Database Adapter Factory
  • Database Adapter Configuration
  • Lab: Database Adapter
  • TableGateway
  • Model Class Using TableGateway
  • Generate the Model Class Factory
  • Modified EventsModel Factory
  • Sample Model Factory Configuration
  • TableGateway Usage
  • TableGateway Select Results
  • Lab: TableGateway

Forms, Filtering and Validation

The "laminas-inputfilter" component provides support for data filtering and validation of a data set (e.g. "$_POST"). It leverages the "laminas-filter" and "laminas-validator" components. A "laminas-form" component is also available for HTML form generation.

This unit includes the following topics:

  • Laminas MVC Forms/Filters/Validators
  • Filter Considerations
  • Validator Considerations
  • I18n Filters and Validators
  • InputFilter Overview
  • Building the InputFilter
  • Using InputFilter to Process Data
  • InputFilter Example
  • InputFilter Example
  • InputFilter Example
  • InputFilter Example
  • InputFilter Example
  • Lab: InputFilter
  • Laminas Forms
  • Laminas Forms
  • Form Creation: Configuration
  • Configuration Factory
  • Form Rendering: Inject Form into Controller
  • Form Rendering: Pass Form to View
  • Form Rendering: View Helpers
  • Sample Output
  • Forms and InputFilter
  • Laminas MVC Form Binding
  • Lab: Forms

Laminas MVC Events

The "laminas-mvc" component provides a series of default listeners and events that shape application flow. You can provide custom listeners attached to any of the default events, or set up your own events that can alter or interrupt the default flow as needed.

This unit includes the following topics:

  • Laminas MVC Events
  • Events Overview
  • MVC Default Events
  • MVC Default Event Flow
  • Module Initialization
  • MVC Stage
  • View Stage
  • Attaching Listeners to Events
  • Listener Example
  • Triggering Events
  • How Listeners Get Information
  • Passing Parameters Example
  • Passing Parameters Example
  • Lab: MVC Events

Instructor

instructor

Andrew Caya

Senior Instructor

Related Courses

course thumb

Linux for PHP

In this course you learn how to deploy to the cloud from a source code repository, implement a Lambda Serverless Function, automate PHP framework installation and create an Instant eCommerce website using the revolutionary Linux for PHP technology.

Pick Date
course thumb

Doctrine

Continuous-learning.com has created a two hour JumpStart course for any developer looking to learn how to get the most out of Doctrine.

Pick Date
course thumb

Laminas MVC

The Laminas MVC is the open source version of Zend Framework. This course teaches you how to rapidly create a complete web based application using Laminas MVC.

Pick Date