Articles & Resources #

Finishing all the material in this series is just the first step — the PHP world keeps evolving and there’s always more to learn. This page gathers the best resources used by the professional PHP community: documentation you must read, books that shape the way you think, communities for asking and sharing, tools that speed up development, and the PSR standards that form the common language of modern PHP libraries.

Official Documentation #

flowchart LR
    A[Learn PHP] --> B[Official Docs\nphp.net]
    A --> C[Framework Docs]
    A --> D[Library Docs]
    A --> E[Communities]

    B --> B1[PHP Manual\nFunctions & Reference]
    B --> B2[PHP RFCs\nNew feature proposals]
    B --> B3[PHP Internals\nHow it works inside]

    C --> C1[Laravel\nSymfony\nCodeIgniter]
    D --> D1[Composer Packages\nPackagist.org]

    style B fill:#dcfce7
    style A fill:#dbeafe

The main documentation you must bookmark:

The official PHP documentation at php.net is the most accurate source and is always kept up to date with the latest version. The comments at the bottom of every function page often contain usage examples and important notes from the community that aren’t in the main documentation.

php.net/manual/en/ — A complete function reference and language guide.

php.net/supported-versions — A list of PHP versions still receiving security support. Always make sure you’re using a version that’s still actively supported.

php.net/migration — Migration guides between versions. Must-read before upgrading PHP in production.


PSR Standards #

PSR (PHP Standards Recommendations) are standards agreed upon by the PHP community to ensure interoperability between libraries and frameworks. Almost all modern Composer libraries follow PSR.

PSRNameContent
PSR-1Basic Coding StandardBasic rules: namespaces, class names, etc.
PSR-2Coding Style GuideDeprecated — replaced by PSR-12
PSR-3Logger InterfaceThe logging interface (LoggerInterface)
PSR-4Autoloading StandardNamespace-to-directory mapping
PSR-6Caching InterfaceThe cache pool interface
PSR-7HTTP Message InterfaceRequest, Response, Stream
PSR-11Container InterfaceDependency injection containers
PSR-12Extended Coding StyleThe coding style standard in use today
PSR-14Event DispatcherThe event system interface
PSR-15HTTP Server Request HandlersMiddleware interface
PSR-16Simple Cache InterfaceA simpler cache interface than PSR-6
PSR-17HTTP FactoriesFactories for creating PSR-7 objects
PSR-18HTTP ClientThe HTTP client interface
PSR-20ClockAn interface for getting the current time

All PSR specifications are available at php-fig.org.


For Beginners to Intermediate #

“PHP & MySQL: Server-side Web Development” — Jon Duckett A richly illustrated book with a very easy-to-understand layout. Ideal as your first PHP book, though a bit dated for modern practices.

“Learning PHP, MySQL & JavaScript” — Robin Nixon Comprehensive coverage of the basic web stack. Great for those who want to understand web development as a whole, not just PHP.

For Intermediate to Advanced #

“Modern PHP” — Josh Lockhart Covers modern PHP after PHP 5.4: namespaces, traits, generators, closures, Composer, PSR standards, and best practices. This book changed the way many developers view PHP.

“PHP Objects, Patterns, and Practice” — Matt Zandstra The only book covering OOP, design patterns (GoF), and development practices (testing, continuous integration) in depth specifically for PHP. Highly recommended for anyone who wants to write well-structured PHP code.

“Domain-Driven Design in PHP” — Carlos Buenosvinos, Christian Soronellas, Keyvan Akbary Applies DDD (Domain-Driven Design) concepts in PHP — Value Objects, Entities, Repositories, Domain Events, Bounded Contexts. It changes how you think about application architecture.

For Architecture and Design #

“Clean Code” — Robert C. Martin Not PHP-specific, but its principles apply directly. About writing code that’s easy to read, understand, and change.

“The Pragmatic Programmer” — David Thomas, Andrew Hunt About becoming a better developer overall — not just about code.

“Design Patterns: Elements of Reusable Object-Oriented Software” — Gang of Four The classic book on 23 design patterns. Heavy but fundamental. Read it after “PHP Objects, Patterns, and Practice” for the PHP context.


Frameworks and Libraries You Should Know #

PHP Frameworks #

Laravellaravel.com The most popular PHP framework today. A very rich ecosystem: Eloquent ORM, Blade templating, Queues, Broadcasting, Telescope, Horizon, and much more. Suitable for fullstack web apps and APIs alike.

Symfonysymfony.com A highly modular enterprise framework — usable as a full framework or with its components used one by one (like HttpFoundation, Console, DependencyInjection). Laravel itself uses many Symfony components.

CodeIgnitercodeigniter.com Lightweight, fast, and with a gentle learning curve. Suitable for small-to-medium projects or those needing a minimal footprint.

Slimslimframework.com A microframework for REST APIs. Very minimal — no ORM, no built-in template engine. You pick the components you need.

Essential Libraries #

Guzzle — A feature-rich HTTP client supporting async, middleware, and all HTTP methods.

Carbon — A very convenient date and time library, built on top of DateTimeImmutable.

Monolog — The de facto logging standard in PHP, implementing PSR-3.

Doctrine ORM / DBAL — The enterprise ORM for PHP, more complex than Eloquent but more powerful for complex domains.

Ramsey UUID — Reliable UUID generation.

PHPStan / Psalm — Static analysis tools that find bugs before the code runs.

PHP-CS-Fixer / PHP_CodeSniffer — Automatically fix or check coding style against standards.


Development Tools #

IDEs and Editors #

PhpStormjetbrains.com/phpstorm The best PHP IDE today. Smart autocomplete, refactoring, Xdebug debugging, code inspection, database integration, and much more. Paid, but with free licenses for open source.

VS Code with PHP extensions:

  • PHP Intelephense — excellent autocomplete and code analysis
  • PHP Debug — debugging with Xdebug
  • PHP CS Fixer — automatic code formatting

Debugging #

Xdebugxdebug.org The debugging and profiling extension for PHP. Enables step debugging (breakpoints), informative stack traces, code coverage for PHPUnit, and performance profiling. A must-have in development environments.

Raymyray.app A modern debugging tool from Spatie. Send variables from PHP code to the Ray app for inspection. More convenient than var_dump for complex debugging.

Code Analysis #

PHPStanphpstan.org A static analysis tool that finds bugs (type mismatches, undefined variables, missing methods) without running the code. Ranges from level 0 (loose) to level 9 (strict).

Psalmpsalm.dev A PHPStan alternative from Vimeo. Very powerful for type analysis and can be used for refactoring.

PHP Mess Detector (PHPMD) — Detects code that’s too complex, has too many parameters, and patterns that need refactoring.


Communities and Forums #

php.net Community — The comments on every function page at php.net are a great resource. Many edge cases and tricks aren’t in the main documentation.

Stack Overflowstackoverflow.com/questions/tagged/php Technical questions and answers. Search first before asking — your question has very likely already been answered.

Reddit r/PHPreddit.com/r/PHP Discussions, new articles, and PHP community news. Strictly moderated for content quality.

PHP The Right Wayphptherightway.com A community-written PHP best practices guide, regularly updated. Ideal as a complete guide to modern PHP practices.

Laravel Newslaravel-news.com News, tutorials, and the latest packages in the Laravel ecosystem. Useful even if you don’t use Laravel.


Newsletters and Podcasts #

PHP Weekly — A weekly newsletter with curated articles, tutorials, and PHP community news.

Freek.dev Newsletter — From the Spatie team, featuring in-depth articles on modern PHP and open source.

PHP Roundtable — A discussion podcast about PHP topics, frameworks, and the community.

Laravel Podcast — A podcast covering Laravel and its ecosystem in depth.

No Compromises Podcast — A podcast about code quality, testing, and best practices in PHP.


Learning Roadmap #

Beginner (0-3 months):
  □ Basic syntax, variables, data types, operators
  □ Conditionals and loops
  □ Functions and arrays
  □ Strings and date/time
  □ HTML forms and $_POST/$_GET
  □ MySQL database connections with PDO
  □ Sessions and cookies

Intermediate (3-12 months):
  □ OOP — classes, interfaces, traits, namespaces
  □ Composer and PSR-4 autoloading
  □ Exceptions and error handling
  □ Regex
  □ A framework (Laravel or Symfony)
  □ Unit testing with PHPUnit
  □ Git workflow
  □ Basic REST APIs
  □ Authentication and authorization

Advanced (1-2 years):
  □ Design patterns (Repository, Service Layer, Observer)
  □ Basic Domain-Driven Design concepts
  □ Static analysis (PHPStan level 5+)
  □ Advanced testing (mocking, integration tests)
  □ Redis and caching strategies
  □ Queues and job processing
  □ Deployment (CI/CD, Docker)
  □ Performance and optimization (OPcache, profiling)

Senior (2+ years):
  □ Application architecture (Hexagonal, Clean Architecture)
  □ Event-driven architecture
  □ Microservices in PHP
  □ Application security (OWASP Top 10)
  □ Mentoring and code review
  □ Contributing to open source

Online Learning Resources #

Laracastslaracasts.com High-quality video tutorials for PHP, Laravel, and its ecosystem. Some content free, some paid. Jeffrey Way is a highly respected instructor in the PHP community.

SymfonyCastssymfonycasts.com Video and text tutorials for Symfony and modern PHP. Very structured and in-depth.

PHP The Right Wayphptherightway.com Already mentioned in communities, but worth mentioning again as the most complete written reference.

YouTube Channels:

  • Traversy Media — Basic PHP and framework tutorials for beginners
  • The Codeholic — Very clean Laravel tutorials
  • Beyond Code (Freek Van der Herten) — In-depth topics from the Spatie team
  • Laravel Daily (Povilas Korop) — Daily Laravel tips and best practices

Summary #

  • Start with php.net — the official documentation is the most accurate source of truth. Read the comments below every page to find tricks and edge cases not in the main documentation.
  • Follow the PSR standards — especially PSR-4 (autoloading), PSR-12 (coding style), PSR-3 (logger), and PSR-7 (HTTP messages). These are the common language of the modern PHP ecosystem.
  • Read “Modern PHP” (Josh Lockhart) and “PHP Objects, Patterns, and Practice” (Matt Zandstra) — the two books that most change how PHP developers think about code.
  • PHPStan or Psalm should be in every serious project — static analysis finds bugs that don’t show up in tests but exist in production.
  • PHP The Right Way (phptherightway.com) is the most complete one-page reference for modern PHP practices — bookmark it and re-read it regularly.
  • Communities are an asset — Stack Overflow for technical questions, Reddit r/PHP for discussions, Laravel News for ecosystem news.
  • A roadmap isn’t a rigid schedule — everyone learns at a different pace. What matters is consistency and practicing what you learn by building real projects.

← Previous: Memcached   Next: Strings →

About | Author | Content Scope | Editorial Policy | Privacy Policy | Disclaimer | Contact