Sign In Start Free Trial
Account

Add to playlist

Create a Playlist

Modal Close icon
You need to login to use this feature.
  • PHP Web Development with Laminas
  • Toc
  • feedback
PHP Web Development with Laminas

PHP Web Development with Laminas

By : Flavio Gomes da Silva Lisboa
4.5 (2)
close
PHP Web Development with Laminas

PHP Web Development with Laminas

4.5 (2)
By: Flavio Gomes da Silva Lisboa

Overview of this book

Considered the next generation of the Zend framework, Laminas is a high-performance PHP framework for creating powerful web applications with an evolutive architecture. This book takes a hands-on approach to equip you with the knowledge of the Laminas framework necessary to start building web applications based on the reuse of loosely coupled components. You'll learn how to create the basic structure of a PHP web application divided into layers, understand Laminas’ MVC components, and be able to take advantage of the Eclipse platform as a method for developing with Laminas. Step by step, you'll build an e-commerce application based on the technical requirements of a fictional business, and get to grips with implementing those requirements using Laminas components. By the end of this web development book, you’ll be able to build a completely secured MVC application in PHP language using Laminas.
Table of Contents (22 chapters)
close
1
B18382_FM
Free Chapter
2
B18382_TOC_ePub
3
B18382_Preface
4
B18382_Part1
5
B18382_01
6
B18382_02
7
B18382_03
8
B18382_04
9
B18382_Part2
10
B18382_05
11
B18382_06
12
B18382_07
13
B18382_08
14
B18382_09
15
B18382_10
chevron up
16
B18382_Part3
17
B18382_11
18
B18382_12
19
B18382_13
20
B18382_14
21
B18382_Index
22
B18382_BM

10

Event-Driven Authorization

This chapter covers one of the essential topics when developing secure applications: authorization.

Authorization is checking the allowed actions for an identified person. An example of authorization in the physical world is the control over the floors and rooms that a person can access after getting into a building. It can be carried out by a person, keys or cards, or even lifts that open to authorized floors only. In short, authorization is a limitation of actions that somebody can do with a set of resources.

In this chapter, you will learn how to implement authorization control with event-oriented programming. First, we will create registrations for roles and resources, the main concepts of the Role-Based Access Control (RBAC) approach. We will associate resources with roles and roles with users for, in sequence, implementing an authorization control for employees in the Inventory module. Finally, we will create a listener to verify user...

Unlock full access

Continue reading for free

A Packt free trial gives you instant online access to our library of over 7000 practical eBooks and videos, constantly updated with the latest in tech
bookmark search playlist download font-size

Change the font size

margin-width

Change margin width

day-mode

Change background colour

Close icon Search
Country selected

Close icon Your notes and bookmarks

Delete Bookmark

Modal Close icon
Are you sure you want to delete it?
Cancel
Yes, Delete