PHP for beginners
A comprehensive 3-day training designed for beginners aiming to build dynamic web applications using PHP. Participants will learn to write structured PHP code, handle data with SQL, and integrate external libraries using Composer. The course emphasizes practical learning through progressive exercises, culminating in the development of a functional web application. By the end, attendees will be equipped to design and develop the server-side of a website, generating the necessary code for the front-end. This training is ideal for novice developers seeking to create applications or services based on the PHP programming language.

Targeted audience:
- Beginners in web development
- Aspiring backend developers
- Anyone interested in PHP/MySQL to build dynamic websites
Educational goals:
- Understand PHP syntax and basic programming concepts
- Build dynamic web pages using PHP and HTML
- Manage data with MySQL and SQL queries
- Handle forms and user input securely
- Structure code using functions
- Use Composer to manage PHP libraries and dependencies
Prerequisites:
- Basic knowledge of HTML and CSS
- Familiarity with web browsers and text editors
Program:
Day 1 - PHP basics
What is PHP?
- A bit of History
- What is PHP and what is a PHP File?
PHP basics
- PHP tags & short tags
- PHP + HTML
- Comments
Variables
- Variables types
- Constants
- Quotes
- Concatenation
- Operators
Control Structures
- if, elseif, else, while, for, while, for, foreach
- break, continue
- switch…case
- match
- include, require
Functions
- Recursion
- Types declaration
- Variable arguments
- Default parameters
- Anonymous functions
- Arrow functions
HTTP methods
- Superglobals
- GET and POST
- Other HTTP methods
- Forms and filters
Persistency and storage
- Sessions
- Cookies
- File storage
Day 2 - OOP and database
The essence of Object Oriented Programming
- Basics
- Properties
- Constructor and destructor
- Keyword $this
- Visibility
- Constants
- Inheritance
- Abstract, Final and Static
- Magic methods
- Errors and exceptions
- HTTP headers
- Interfaces and traits
- Namespaces
Database
- Mysqli
- PDO
Day 3 - External libraries
External libraries
- Autoload
- Composer
- Dotenv
- PHPUnit
- PHP cli
Ecosystem
- Extensions
- Frameworks
- CMS
Gwendal Le Coguic - contact@glc.st - quotes on request - SIRET 79778302400038