
Preview the course project.
Overview of the Laminas Framework.
Download git from git-scm.com, choose 64-bit, run the installer, click next until finish, and complete the setup with no extra configuration.
Learn how to download and install the XAMPP web server on Windows, from the apachefriends.org site, including running through the installer, permissions, and firewall considerations.
Enable apache and mysql as Windows services using the XAMPP control panel, start both services, and verify the setup via localhost and phpmyadmin.
Make PHP and MySQL globally accessible by updating the path with their bin directories, then verify installations using php --version and mysql --version in the terminal.
Learn to download and install composer, the PHP project dependency manager, from get composer.org, run the setup.exe, and verify with composer --version in the terminal.
download and install visual studio code from code.visualstudio.com for windows, then install the php intellisense extension and disable the built-in php language features as guided.
Enable the zip and i18n extensions by editing the php.ini file with Visual Studio Code, save the changes, and restart the Apache module to apply them.
Learn to download and install the Laminas MVC framework with composer, set up apps directories, and configure essential packages. Access get luminous.org and discourse.laminas.dev for guidance and support.
Configure a virtual host to serve the Laminas app by defining document root, server name, and alias; enable rewrite, set directory options, and restart Apache to view the index page.
Download and install the Xampp web server on a Linux machine by visiting apachefriends.org, downloading the Linux zip, setting permissions, and running the installer to completion.
On a linux machine, use sudo to create a symbolic link from /opt/lampp/bin/php to /usr/bin/php, then verify with php --version to confirm php is globally accessible.
Download and install Composer, configure a local server, and verify the installation by checking the Composer version and server status.
Download and install Visual Studio Code from code.visualstudio.com, use the deb file on a debian-based linux, open it, install the PHP IntelliSense extension, and adjust PHP language features.
Learn to auto-start the ssm server and xampp web server by configuring the lamp init.d script, starting the xampp control panel, and verifying localhost startup.
Create the Xampp users group, add your account to it, then change htdocs ownership and set 775 permissions to enable read, write, and execute access.
Create /opt/lampp/apps, set ownership to root:xampp_users, and apply 777 permissions recursively so the directory is ready to receive files.
Download and install the Laminas MVC framework with composer, create the luminous project folder, and install key packages such as Laminas mail, Laminas Paginator adaptor, and Laminas permission ACL.
Configure a virtual host for the luminous directory by editing httpd.conf and httpd-vhost.conf to set document roots and server names. Update the hosts file and restart Apache.
Download bootstrap 5 from bootstrap.com, extract to the Laminas public folder, and link the CSS and JS assets in the layout; create app.css and app.js for custom styles.
Explore the Laminas MVC folder structure, including vendor, public, module, data, and config folders. Identify where modules, bootstrap, and module.config.php reside and how the entry point and assets are organized.
Connect your Laminas MVC application to a MySQL database by creating a blogger database and configuring the service manager with a PDO adapter, DSN, and UTF-8 settings.
Learn to add flash messages in a Laminas app using the flash messenger helper, create a flash.html partial, and render error, info, default, and success messages across layouts.
Explore the folder structure of a Laminas module, including config, src, test, and view directories, with module.php and module.config.php. Create a user module to practice wiring routers, controllers, and views.
Create a signup form in Laminas MVC by building form, view, route, and controllers; validate input with filters, regex, and length checks; save data to database; add flash messages.
Create a register controller class in the Laminas MVC framework, add an index action returning a view model, and configure a signup route that maps to the register view.
Create a users table in the Laminas MVC project by adding data/sql/user.sql. Define user_id, username, email, password, avatar, birthdate, role_id, enabled, created, and updated, with primary and unique keys.
Register the user module so the luminous framework recognizes it, update modules.config.php, configure composer.json for autoload, run composer dump autoloader, and verify the signup route and view render correctly.
Create a Laminas register form class that adds username, email, birth date, password, and confirm password fields with validation rules, CSRF protection, and a Bootstrap-styled submit button.
Create the registration view in Laminas MVC for beginners, fix field labels, add meta keywords and description, and build a bootstrap sign-up form with username, email, password, birth date, CSRF.
Enable bootstrap five tooltips by adding JavaScript to initialize tooltips on inputs with data-toggle tooltip, using bootstrap's tooltip plugin, and verify tooltips appear on hover to the right.
Create a Laminas users table by building a UsersTable class that extends the abstract table gateway, wires the adapter via a factory, and registers the service in module config.
Create a register form sanitizer method using Laminas input filter to filter and validate username, email, birthdate, password, and confirm password with not empty, alphanumeric, unique, and date format checks.
In Laminas MVC for beginners, this lecture shows creating an insertAccount method to save user data to the users table, including username normalization, bcrypt password hashing, and role assignment.
Finalize the user registration by implementing the register action, validating and sanitizing input, inserting the user into the users table, and displaying a success flash message with a redirect.
Create the user_roles table with role_id and role columns, seed admin, member, and guest roles, and verify via phpMyAdmin.
Create a login controller class in Laminas MVC, with a constructor taking an adapter and users table, index action returning a view model, plus a factory and route for /login.
Create a Laminas MVC framework login form class with email and password inputs, remember me, return URL, and CSRF protection, styled for bootstrap and ready to sign in.
Create the login view with meta tags and SEO text. Build a Bootstrap form for email and password, include a remember checkbox, CSRF protection, and signup or forgot password links.
Create a getLoginFormSanitizer method to build an input filter that sanitizes and validates login form fields, including email, a password of 8–25 characters, and a zero and one checkbox.
Create a url service class to encode and decode url strings in a laminas mvc beginner module, using base64 and replacements for plus, slash, and equals.
Add a sign in link to the signup form that navigates to login. Update the register view with a paragraph of class mp3 and an anchor to login URL.
Finalize the login feature by implementing authentication checks, handling return URLs, validating credentials with an auth adapter, and redirecting users to the home or return page.
Demonstrate that flash messages work in the Laminas MVC framework by modifying the index action to add an info message and verifying the result in the browser.
Create a logout controller in Laminas mvc that uses the authentication service to clear identity, flash the message 'you are signed out', and redirect to the home page.
Create a user entity class in the Laminas mvc framework for beginners, mapping user table columns to private properties and providing getters and setters, with plans to join roles table.
Create a findById method to fetch a user by id from the users table, joining with user_roles and hydrating a user entity.
Learn to fetch data from the users table using the Laminas MVC plugin identity, via the view helper and controller plugin to access username, email, and user ID after login.
Create an account plugin class to access users data on the controller side, and wire its factory to supply the authentication service and users table to the service manager.
Create the account helper class to access model data via the account plugin, register it in the module with view helper config, then test username and email.
Create a forgot password form class in the Laminas MVC framework that uses a post form with an email input and Google reCAPTCHA verification to send a password reset link.
Create the user_forgot table to store data for users who forgot their password, using InnoDB and utf8_unicode_ci, with user_id as primary key and token and created fields.
Create a password controller in laminas mvc to handle password resets, wire forgot form view, register controller with the service manager using an invocable factory, and define the forgot route.
Create the forgot password view in the Laminas mvc framework by adding forgot.html with an email field, recaptcha, and a reset link workflow, then link it from login.
Create the forgot table class in Laminas MVC framework, extending abstract table gateway, implement delete token, find token, generate token, and insert token, with adapter wiring and module config.
Create a password reset message template in Laminas MVC, using a unique token per user and a time-limited link, with customizable salutation and sign-off.
Create a password controller factory that implements the factory interface to fetch forgot table and users table dependencies, and configure the reset route with id digits and token alphanumeric constraints.
Create the getForgotFormSanitizer to filter, trim, and validate the forgot form email, check its presence in the users table, implement findByEmail with hydrator, returning a user entity or null.
Implement the forgot password action in Laminas MVC by validating the user is not logged in, generating and storing a reset token, composing an email template, and sending via SMTP.
Create a reset form class in the Laminas MVC framework, with a two-field password reset form (new password and confirm password), bootstrap styling, CSRF protection, and validation rules.
Create the reset password view in Laminas MVC, with new password and confirm password fields, wired to the password controller and CSRF-protected via the reset route.
Implement getResetFormSanitizer in the users table to filter and validate reset form data, enforce 8–25 character passwords, require confirmation, and align with token cleanup logic for 12-hour expiration.
Implement the reset password action in Laminas MVC by validating the token and user id, updating the password securely, removing the token, and redirecting to login with a confirmation.
Verify the forgot password flow by sending reset emails via reCAPTCHA and delivering a tokenized reset link to the password reset form.
Create the setting controller in a Laminas MVC app to update user status, define the index method returning a ViewModel, and wire a route and index.html view.
Learn to create an email action and an email form in Laminas MVC, including current and new email fields with validation and a save changes button.
Create a reusable settings view code snippet in Laminas MVC, building a two-column layout with a left navigation menu and right forms for avatar, email, password, username, and delete account.
Create the change email address view by adapting the settings template to include current and new email fields, CSRF, route details, and a polished form UI with login enforcement.
Learn to implement an update email method in the Laminas mvc framework, updating a user’s email via a prepared sql statement and validating input with email filters and uniqueness checks.
In this lecture, learners finalize updating a user email via the email action in the settings controller, validating and sanitizing input, handling form posts, and displaying flash messages for success.
Create a settings password action and form with current, new, and confirm fields; validate and match passwords, hash and update the password, and require login.
Develop and validate a username update feature in the settings controller, build a username form with csrf protection, enforce alphanumeric rules, update the users table, and manage authentication-based redirects.
Create a custom picture service in PHP to manipulate images by loading, detecting type (jpeg, png, gif), resizing with helpers, and saving to a public temporary folder and final destination.
Learn how to implement a profile picture upload in laminas mvc: build an avatar form, validate images, resize to 200x200, and update the user's profile with the new image.
Learn to implement user account deletion in Laminas MVC: add a delete action, create the delete form, perform the database delete, render the view, and logout after deletion.
Create a reusable pagination partial in the Laminas mvc framework by building a navigation with PHP-generated page links, previous and next controls, and an active current page state.
Add two foreign keys to the user_forgot table, linking to the users table on user_id with on delete cascade and on update cascade.
Create a public findAll method to fetch all registered users by joining the users and user roles tables, with optional pagination and a hydrated result set.
Create a user account via the signup page and fix the register form's regex to hyphen. Populate the users table with data for about 20 other accounts to demonstrate pagination.
Create an admin controller class to manage user data, wiring a users table dependency, implementing a paginated index action that returns a view model and redirects unauthenticated users to login.
Explore how to display all active accounts in an admin index view, using a responsive table, avatars, and pagination to present usernames, emails, birthdates, and creation dates.
Laminas MVC Framework For Beginners
Unlock the full potential of web application development with our course. This hands-on learning experience is designed to equip you with the skills and knowledge needed to build robust and scalable web applications using the PHP Laminas MVC Framework, MySQL, Bootstrap 5, and ES6 JavaScript.
What You'll Learn:
Authentication and Authorization:
- Implement secure user authentication mechanisms to safeguard your applications.
- Understand and apply authorization to control access to different parts of your web application.
Pagination and Database Access:
- Learn effective pagination techniques for managing large datasets.
- Master database access using the laminas-db component, ensuring efficient and optimized data retrieval.
Creating Plugins and View Helpers:
- Explore the power of plugins and view helpers to enhance the functionality and user experience of your applications.
Adding Comments and User Interaction:
- Implement comment features to encourage user interaction and feedback.
- Understand best practices for handling and displaying user-generated content.
Form Handling and Data Manipulation:
- Dive into form creation and usage, making your applications interactive and user-friendly.
- Fetch data from the database and seamlessly integrate it into your form classes.
Why Take This Course:
Practical Application: Gain hands-on experience by working on real-world projects throughout the course.
In-Depth Learning: Master each topic through detailed explanations, code examples, and guided exercises.
Embark on your journey to becoming a proficient web developer.
Enroll now and elevate your skills.