A curated list of resources for PHP
- Must read
- Tutorials
- Books
- Online Course
- Reference
- The basics
- Local Development Environments
- Tools
- IDEs
- Frameworks and libraries
- Templates
- OOP
- Best Practices
- Model-View-Controller
- Database
- Standards
- Errors and exception handling
- Debugging
- Unit testing
- Documentation
- Sessions
- Text translations
- Regular Expressions
- XML
- API
- Version control
- Security
- Architecture
- Domain Driven Design (DDD)
- Hexagonal Architecture
- Functional Programming
- Continuous integration and Continuous Delivery
- Magazines
- Merchandise
- Community and News
- PHP Front To Back (Videos)
- learn-php.org
- Learn PHP for experienced developers
- Laravel PHP Practitioner
- PHP Pandas
- Learn PHP in Y minutes
- PHP Apprentice
- Building modern applications with PHP 8
- PHP 7 Zend Certification Study Guide
- Modern PHP: New Features and Good Practices
- Learning PHP 7
- Learn PHP 8: Using MySQL, JavaScript, CSS3, and HTML5
- PHP 8 Quick Scripting Reference: A Pocket Guide to PHP Web Scripting
- Programming PHP (O'Reilly Media)
- CodeAcademy - Learn PHP
- Codecourse
- Exercism - PHP (Code practice and mentorship)
- SymfonyCasts - Build something amazing with PHP
- Treehouse - Learn PHP
- Udemy - PHP
- PHP Developer roadmap - How to Become a PHP Developer
- Getting Started with PHP
- PHP Data Types
- PHP Loops
- Array basics
- Working with Arrays
- PHP GET and POST
- The LAMP (Linux, Apache, MySql, PHP) stack
- Linux
- Apache HTTP Server
- MySQL
- PHP
- JavaScript (aka ECMAScript)
- Basic JavaScript
- JavaScript Tutorial
- Eloquent JavaScript
- You Don't Know JS (book series)
- Awesome JavaScript Learning
- JSON
- HTTP and HTTPS
- HTTP Request / Response, GET und POST
- Introduction to HTTP Basics
- FTP
- SSH
- SMTP
- POP3
- IMAP
- Ajax
- Webbrowser (Chrome, Firefox, IE)
- XAMPP (Apache, MariaDB, PHP)
- Vagrant
- Docker
- Composer (dependency management)
- WinSCP (Free SFTP, SCP and FTP client)
- Putty (A free SSH and telnet client)
- PoEdit (gettext translations editor)
- Notepad++ (Text editor)
- 7-ZIP (File archiver)
- CakePHP (A MVC, CRUD, Scaffolding framework, inspired by Ruby on Rails)
- Laravel (A very popular framework)
- Laminas
- Symfony (A modular enterprise framework)
- Slim Framework (A PHP micro framework that helps you quickly write simple yet powerful web applications and APIs)
- Slim Framework 4 - Tutorial
- Twig (The flexible, fast, and secure template engine for PHP)
- Plates (A native PHP template system)
- Symfony versus Flat PHP
- Twig – the Most Popular Stand-Alone PHP Template Engine
"Write shy code -
modules that don't reveal anything unnecessary to other
modules and that don't rely on other modules' implementations."
- Object-Oriented Principles in PHP
- Classes and Objects
- Mastering Object Oriented PHP (eBook)
- Objektorientierte Programmierung (german)
- Object-Oriented Bootcamp
- Learning OOP in PHP
- Style Guide for Object Design (eBook)
- Design Patterns in PHP (Laracasts)
- Design Patterns in PHP
- Gang of Four Design Patterns (Book)
- Design Patterns for Humans™
- DesignPatternsPHP
- Several design patterns in PHP
- Design Patterns in PHP Course (Video)
SOLID is a mnemonic acronym for five design principles intended to make software designs more understandable, flexible and maintainable
- SOLID
- SOLID Principles in PHP
- The First 5 Principles of Object Oriented Design
- How to write SOLID code that doesn’t suck
- An Introduction to Dependency Injection
- What is Dependency Injection?
- The Clean Code Talks - Don't Look For Things! (Video)
- PSR-11: Container interface
Simplicity is prerequisite for reliability.
— Edsger W. Dijkstra
You Ain't Gonna Need It
"DRY ‐ Don't Repeat Yourself
Every piece of knowledge must have a single,
unambiguous, authoritative representation within a system."
DRY is about having one source of truth. It's not about frantically eradicating duplication from your codebase.
- TheCodingMachine Best Practices
- Return early, return often
- Global Variables Are Bad
- Thin controllers and fat models
- PHP Dos and Don’ts aka Programmers I Don’t Like
- Composition over inheritance
- Clean Code PHP
- Object Calisthenics
Most frameworks in PHP follow some sort of MVC structure. The theory is simple:
The user interfaces with the view, which passes information to a controller. The controller then passes that information to a model (layer), and the model passes information back to the controller. The controller effectively stands between the view and the model. (Brandon James Savage)
- MVC Wikipedia
- MVC in simpler terms or the structure of a modern web-application
- MVC overview
- MVC for Noobs
- A Better Understanding Of MVC
- Thin controllers, fat models
- MVC for advanced PHP developers
- A Better Understanding Of MVC
- MVC model 2
- Action Domain Responder (ADR)
- Database
- Database model
- Codd's 12 rules *
- The only proper PDO tutorial
- SQL Tutorial
- Datenbank Grundlagen (german)
- ERM
- Datenbank-Grundlagen Tutorial (german)
- Datenbank-Grundlagen Tutorial: Primärschlüssel (german)
Bad programmers worry about the code. Good programmers worry about data structures and their relationships.
- Database normalization
- First normal form (1NF)
- Second normal form (2NF)
- Third normal form (3NF)
- Description of the database normalization basics
- Der Königsweg: Normalisierung (german)
- Normalisierung (german)
- MySQL - Normalisierung (german)
- CakePHP QueryBuilder
- Illuminate (Laravel) Query Builder
- Laminas DB Query Builder
- Phinx - database migrations
- SQLyog Community Edition
- SQLyog - The most complete and easy to use MySQL GUI ($)
- MySQL Workbench
- HeidiSQL
- SequelPro
- Navicat ($)
- DBeaver
- NoSQL
- Redis (In-memory data structure store, used as a database, cache and message broker)
- MongoDB (Document-oriented database)
Follow common PHP conventions for object-oriented code, and established industry best practices: PSR-1, PSR-12, PSR-4.
- PHP Framework Interop Group
- PSR-1 Basic Coding Standard
- PSR-12 Coding Style Guide
- PSR-3 Logger Interface
- PSR-4 Autoloader
- Standard PHP package skeleton
- A skeleton repository for League Packages
- Semantic Versioning 2.0.0
- Keep a changelog
- Errors and Exceptions
- Error Handling PHP Best Practices
- Exceptions
- Predefined Exceptions
- SPL Exceptions
- Errors and error handling
“Software testers do not make software; they only make them better.” – Anonymous
- PHPUnit - testing framework
- Unit test, Integration Test, Smoke test, Regression Test
- Unit Testing, Integration Testing and Functional Testing
- The Test Pyramid
- The Way of Testivus (pdf)
- Database Testing
- Best practices for database testing with PHPUnit
- Database Tests With PHPUnit
- Database Fixture Setup in PHPUnit
- The correct way to use integration tests
- 100% Code Coverage via automated tests in Symfony applications
- Building Test-Driven Developers eBook
- Write tests. Not too many. Mostly integration
- Unit Testing is Overrated
Not commenting your code when you are a programmer should be illegal - @RiaCorpeno
PHPdoc is intended for documenting your code. The intention is that you always add comments to your parameters and return types in docblocks that describe what they do. There is software that can read in your code and produce documentation in pdf or HTML format that describes all your classes and functions as well as what they do and how to use them. It is a system for inline documentation as the name indicates.
- Introduction to PhpDoc
- The PHPDoc standard (PSR-5) for comments
- PHPDoc wiki
- PHPDoc basic syntax
- Anatomy of a DocBlock
- Your First Set of Documentation
- Internationalization and localization (i18n)
- Symfony: The Translation Component
- PoEdit Gettext Translations Editor
- Regular expression
- PCRE Functions
- PHP Live Regex (A Live Regular Expression Tester for PHP)
- REST, RESTful, REST-like API Resources
- REST, RESTful API Quick Reference
- API Guidelines
- 7 Rules for REST API URI Design
- SOAP (Simple Object Access Protocol)
- The SOAP extension The SOAP extension can be used to write SOAP Servers and Clients.
- Web service
- WSDL (Web Services Description Language)
- Implementing a SOAP API with PHP
- What is version control
- Github
- Resources to learn Git
- A tutorial introduction to Git
- Git - The simple guide
- The Pro Git book
A good programmer looks both ways before crossing a one-way street.
- Web security essentials - A crash course
- PHP Security Cheat Sheet
- PHP The Right Way - Security
- XSS
- The latest information about secure PHP software
- Security Tips for a PHP Application
- The Ultimate PHP Security Checklist
- Uncle Bob’s "Clean Architecture" (book)
- The Clean Architecture
- Patterns of Enterprise Application Architecture - Martin Fowler
- The Onion Architecture Part 1
- A Journey Toward Clean Code and Enjoyment - Agility, TDD, OOP Patterns, MVC, Framework De-Coupling
- DDD for beginners
- Domain-Driven Design: Tackling Complexity in the Heart of Software (The Blue Book)
- Implementing Domain-Driven Design (The Red Book)
- Design a DDD-oriented microservice
- Domain-Driven Design Reference (A summary of the patterns and definitions of DDD, PDF)
- Services in Domain-Driven Design
- Creating services you won’t hate
- Ports & Adapters Architecture
- Hexagonal Architecture demystified
- Hexagonal Architecture
- Alistair in the "Hexagone"
- Object Design Style Guide
- Advanced Web Application Architecture
- Continuous Delivery (Book)
- Continuously delivering PHP projects (Video)
- Continuous Integration vs. Continuous Delivery vs. Continuous Deployment
- What’s Continuous Deployment?
- PHP and Continuous Integration with Travis CI
- Docker for PHP Developers
- php architect (english)
- PHPmagazin (german)
- web & mobile developer (german)