CHECKING STATUS
I AM LISTENING TO
|
  • ♩
  • ♪
  • ♫
  • ♬
  • ♩
  • ♪
  • ♫
  • ♬

PHP Library Highlights 2026

LAST MODIFIED: 8. November 2026
10. February 2025
.SHARE
PHP Library Highlights 2026

This page used to be two links and a sentence. Awesome PHP, the League of Extraordinary Packages, and not much else. Both of those are still worth your time and both are still here, but a page called “library highlights” ought to highlight more than two things.

So this is the rebuilt version. It covers where to find PHP packages, the tools I reach for on every project, the League in proper detail, and the two things that have genuinely changed about the ecosystem since I last wrote this.

Those two things are worth naming up front, because they are the reason this is a 2026 rewrite rather than a link refresh. First, the package supply chain got serious: Composer now blocks known-vulnerable updates by default, filters malware, and can withhold freshly published versions entirely. Second, the runtime got modern, and PHP-FPM is no longer the only sensible way to serve a PHP application.

Where to Find PHP Libraries

Quick Answer: Packagist is the registry and the only one you install from. Awesome PHP is the best curated index of what exists. The League is a smaller, opinionated collective that maintains 26 packages.

Three different jobs, three different places. Worth understanding the difference, because people often treat them as interchangeable and they are not.

Packagist

Packagist is the official PHP package repository, and it is where Composer installs from. It currently lists 478,607 packages across 6,027,458 versions, and has served over 210 billion installs.

It turned fifteen in September 2026. The first package ever submitted was monolog/monolog, on 27 September 2011, which is a nice piece of trivia and also the reason the Monolog entry further down this page is a little affectionate.

Two things worth knowing about it in 2026. Composer 1.x support was shut down on 1 September 2025, so if you are still on Composer 1 you are not getting package metadata any more. And Packagist now enforces immutable version metadata, so a published version cannot be quietly changed underneath you.

  • What it is: the registry itself
  • Run by: Nils Adermann and Jordi Boggiano, the Composer authors
  • Scale: 478,607 packages, 210+ billion installs
  • Best for: actually installing things

Awesome PHP

Awesome PHP is the curated index — a categorised list of libraries, tools, frameworks and resources, maintained by Jamie York and a long list of contributors. It is the single best answer to “does a good PHP library exist for X”, and it has been for years.

The numbers back that up: 32,785 stars, 5,128 forks, and a last commit in October 2026. This is not an abandoned list that ranks well and wastes your time. It is actively maintained, which for a curated list is the only thing that matters.

  • What it is: a categorised index of the PHP ecosystem
  • Licence: open source, community maintained
  • Scale: 32,785 stars, actively updated
  • Best for: discovering that a library exists before you write one

The League of Extraordinary Packages

The League is the odd one out, and the entry that survived from the original version of this page. It is not a registry and it is not an index — it is a small collective of developers who banded together to build and maintain well-tested packages under a shared namespace.

The original description here was a single sentence about “modern coding standards”, which undersold it. The League publishes its quality rules openly, and they are unusually specific: PSR-4 autoloading, code in a src folder, a documented coding style, distribution through Packagist, unit tests with a target of at least 80% coverage, DocBlocks where context is needed, semantic versioning, a changelog, and an extensive README.

That matters because it means anything under the League namespace comes with a baseline you do not have to audit yourself. It currently maintains 26 packages, and several of them are load-bearing in projects you have probably used.

  • What it is: a collective maintaining packages to a published quality standard
  • Scale: 26 packages
  • Namespace: league/
  • Best for: picking a dependency without having to evaluate whether it is maintained
  • Standards: follows PHP-FIG and PSR recommendations

Supply Chain Security: What Actually Changed

Quick Answer: Composer 2.9 added automatic blocking of known-vulnerable packages, 2.10 added malware filtering, and 2.11 added a cooldown policy. Packagist made versions immutable. This is the biggest change in the ecosystem since Composer 2.

No library roundup written before 2026 mentions any of this, and it is the most consequential thing on the page. PHP’s dependency story used to be “Composer resolves versions and you hope”. Over the last eighteen months it has acquired a real security model, mostly in the client rather than the registry.

Here is what landed, in order:

ReleaseWhenWhat it added
Composer 2.9
November 2025
Automatic security blocking — updates to packages with known advisories are blocked by default
Composer 2.10
May 2026
Native malware filtering, plus a consolidated dependency policy covering advisories, abandoned packages and malware
Composer 2.11
October 2026
Cooldown dependency policy — newly published versions are withheld for a configurable period before Composer will install them
Packagist
July 2026
Immutable version metadata — a published version can no longer be altered after the fact

The current release is Composer 2.11.1. If you are running anything older than 2.9, you are missing all of it.

Why the Cooldown Policy Matters Most

The malware filtering is the headline, but the cooldown is the clever one. A large share of supply chain attacks work by publishing a malicious version of a package that people trust, then relying on automated dependency updates to pull it within hours. The window between publication and discovery is where the damage happens.

A cooldown closes that window. If Composer refuses to install a version until it has been public for a configurable period, the malicious release gets reported and yanked before it reaches your build. You are trading a small amount of update latency for a meaningful reduction in blast radius, which is a good trade for most projects.

The immutable versions change is the other half of the same idea. Previously a tag could be repointed at different code after you had locked it. Now the metadata is stable, so what you audited is what you get.

What This Means in Practice

  • Upgrade Composer first. Everything else is moot on an older client, and this is a five-minute change.
  • Keep composer.lock in version control. It always mattered; with immutable versions it now actually guarantees what you think it guarantees.
  • Enable the cooldown if you have not. It is the single highest-value setting available and it costs you nothing but patience.
  • Do not disable security blocking to get an update through. If Composer is refusing a version, that is the feature working.
  • Never commit credentials. Separate concern, same theme — I wrote about that in storing credentials outside your code with PHP dotenv.

Testing and Quality Tools

Quick Answer: PHPUnit is the default test framework, Pest is the modern alternative, PHPStan and Psalm do static analysis, and Rector rewrites your code for you. These are the tools that catch problems before your users do.

This is the part of the ecosystem that has quietly become non-negotiable. A PHP project in 2026 without static analysis and an automated coding standard is unusual enough to be worth commenting on, and the tooling is mature enough that there is no excuse left.

PHPUnit

PHPUnit is the testing framework that everything else in the PHP world is built around. If you write a test in PHP, this is almost certainly what runs it, whether you invoke it directly or through a wrapper.

The install numbers are almost beyond meaningful: 1.04 billion total installs on Packagist, currently at version 13.4.6. It is not the only option and it is not the most elegant, but it is the one with the documentation, the ecosystem and the stack traces that everyone recognises.

  • Licence: BSD-3-Clause
  • Version: 13.4.6
  • Installs: 1.04 billion
  • Best for: the default choice, and anything that needs to integrate with existing tooling

Pest

Pest is a testing framework built on top of PHPUnit that replaces the class-based, verbose style with something much closer to plain English. The same test in Pest is typically half the lines, and the output is considerably easier to read when something fails.

Because it wraps PHPUnit rather than replacing it, you can migrate incrementally and keep using PHPUnit assertions where you prefer them. 103 million installs and version 5.3.5, which for a framework that is an alternative to the default is a serious number.

  • Licence: MIT
  • Version: 5.3.5
  • Installs: 103 million
  • Best for: new projects, and anyone who finds PHPUnit’s syntax heavy
  • Compatible with: existing PHPUnit tests

Mockery

Mockery is a mocking framework for tests, and it exists because PHPUnit’s built-in mocking is fine right up until it is not. Mockery handles the awkward cases better: partial mocks, expectations on specific arguments, spy-style assertions, and objects that are hard to construct.

585 million installs, version 1.6.15. It is one of those dependencies you rarely install deliberately — it arrives as a dependency of something else and then you start using it on purpose.

  • Licence: BSD-3-Clause
  • Version: 1.6.15
  • Installs: 585 million
  • Best for: tests that need to fake a collaborator with specific expectations

Faker

Faker generates fake data — names, addresses, phone numbers, dates, lorem ipsum, and hundreds of other formats across dozens of locales. It is the difference between a fixture that looks like test1, test2, test3 and one that looks like a real database.

That matters more than it sounds. Fake data that looks real catches layout problems, encoding issues and validation bugs that placeholder strings sail straight past. 451 million installs, version 1.24.1.

  • Licence: MIT
  • Version: 1.24.1
  • Installs: 451 million
  • Best for: test fixtures, seeders, and realistic demo data

PHPStan

PHPStan reads your code without running it and tells you what is wrong — undefined variables, impossible type combinations, methods that do not exist, arguments that do not match. It is the single highest-value tool on this page for catching bugs before they reach production.

The feature that makes it usable on a real codebase is the level system. You start at level 0, fix what it finds, and raise the level. Level 9 is genuinely strict and most legacy projects never get there, which is fine — the point is that you can adopt it today on a codebase that would fail immediately at level 9.

428 million installs, version 2.3.5.

  • Licence: MIT
  • Version: 2.3.5
  • Installs: 428 million
  • Best for: finding bugs statically, and enforcing types across a team
  • Adoption tip: start at level 0 and raise it as you fix things

Psalm

Psalm does the same job as PHPStan with a different set of trade-offs. It tends to find different issues, its baseline feature for suppressing existing errors is excellent, and its taint analysis for security vulnerabilities is a genuine differentiator if you are handling untrusted input.

91 million installs, version 7.0.2. Plenty of teams run both, which sounds excessive until you see what each one catches that the other misses.

  • Licence: MIT
  • Version: 7.0.2
  • Installs: 91 million
  • Best for: taint analysis, and teams that want a second opinion alongside PHPStan

Rector

Rector is the one that surprises people. It does not just report problems — it rewrites your code to fix them. Point it at a project and it will upgrade syntax to a newer PHP version, modernise deprecated patterns, apply framework migrations, and refactor repetitive code, then show you the diff.

The practical use is upgrading. Moving a large codebase from PHP 7.4 to 8.3 by hand is a miserable week; with Rector it is a configuration file and a review of the diff. 171 million installs, version 2.8.4.

  • Licence: MIT
  • Version: 2.8.4
  • Installs: 171 million
  • Best for: PHP version upgrades, framework migrations, and bulk refactoring
  • Watch out for: always review the diff. It is good, not infallible

PHP-CS-Fixer

PHP-CS-Fixer enforces a coding standard and fixes violations automatically. You define the rules you want, run it, and your codebase conforms. It removes an entire category of code review comment, which is worth more than it sounds when you are reviewing other people’s pull requests.

282 million installs, version 3.95.27. It supports PSR-12 and a long list of opinionated rulesets, and it integrates with most editors and CI pipelines.

  • Licence: MIT
  • Version: 3.95.27
  • Installs: 282 million
  • Best for: enforcing a consistent style automatically rather than in review
  • Related: I wrote about setting this up in the PHP coding standards fixer

PHP_CodeSniffer

PHP_CodeSniffer is the older of the two coding standard tools, and it does two jobs: phpcs reports violations and phpcbf fixes the ones it can. It is more configurable than PHP-CS-Fixer and better at enforcing standards you did not write yourself, which is why it remains the tool of choice for anyone implementing a published standard.

422 million installs, version 4.0.4 — the fourth major version landed recently, which for a tool this established is worth noting.

  • Licence: BSD-3-Clause
  • Version: 4.0.4
  • Installs: 422 million
  • Best for: implementing an external standard, and projects that need custom sniffs
  • Note: the project moved from Squizlabs to the PHPCSStandards organisation

Everyday Building Blocks

Quick Answer: Guzzle for HTTP, Monolog for logging, Carbon for dates, Symfony Console for CLI tools, Flysystem for filesystems, and Doctrine or Cycle for your database layer. These are the dependencies that end up in almost everything.

The tools above catch problems. These ones are the raw materials — the libraries you reach for when you need to make an HTTP request, write a log line, or work with a date without inventing your own. They are all battle-tested and all have enormous install counts, which is exactly what you want from something you will depend on for years.

Guzzle

Guzzle is the HTTP client for PHP. If you are calling an API, Guzzle is almost certainly what you are calling it with, whether directly or through a framework wrapper. It handles the tedious parts properly: connection pooling, redirects, retries, streaming large responses, async requests and PSR-7 compliant messages throughout.

1.15 billion installs, version 8.3.1. That install count is second only to Symfony Console on this page, which tells you how much of the modern web is PHP calling other things over HTTP.

  • Licence: MIT
  • Version: 8.3.1
  • Installs: 1.15 billion
  • Best for: API clients, webhooks, and anything that makes an outbound request
  • Standards: PSR-7 messages, PSR-18 client

Monolog

Monolog is the logging library for PHP, and it holds a small piece of history: it was package ID 1 on Packagist, submitted on 27 September 2011. Fifteen years later it is still what everything logs through.

It sends logs anywhere — files, syslog, Slack, Sentry, Elasticsearch, databases — through a handler system that you compose. That composability is why it has outlasted every alternative: you are not choosing between log destinations, you are choosing a list of them.

1.11 billion installs, version 3.12.1.

  • Licence: MIT
  • Version: 3.12.1
  • Installs: 1.11 billion
  • Best for: structured logging to any destination, with PSR-3 compatibility
  • Trivia: the first package ever published on Packagist

Carbon

Carbon is a date and time library that extends PHP’s built-in DateTime rather than replacing it. That inheritance is the clever part — anything expecting a native DateTime still works, so adopting Carbon is not an all-or-nothing migration.

What it adds is the human layer: now()->addWeekdays(3), $date->diffForHumans(), locale-aware formatting, and readable arithmetic that does not require you to remember which DateInterval specifier you needed.

779 million installs, version 3.15.1.

  • Licence: MIT
  • Version: 3.15.1
  • Installs: 779 million
  • Best for: date arithmetic and formatting that a human has to read
  • Compatible with: native DateTime, so it drops into existing code

Symfony Console

Symfony Console is how you build a command-line tool in PHP. Commands, arguments, options, interactive prompts, progress bars, tables and coloured output, all without writing a parser.

It holds the highest install count on this entire page at 1.25 billion, and the reason is that it is a component rather than a framework. You do not need Symfony to use it — plenty of standalone CLI tools and other frameworks depend on it directly. Version 8.1.10.

  • Licence: MIT
  • Version: 8.1.10
  • Installs: 1.25 billion — the highest here
  • Best for: CLI tools, cron jobs, maintenance scripts and Artisan-style interfaces
  • Framework agnostic: usable without Symfony itself

Flysystem

Flysystem gives you one filesystem API that works against local disk, S3, SFTP, Google Cloud Storage, Dropbox and a dozen other backends. You write $filesystem->write('path', $contents) and the adapter decides what that means.

The reason to care is portability. A project that starts writing to local disk and later needs to move to object storage should be a configuration change, not a refactor of every file operation in the codebase. Flysystem is maintained by The League, which is covered below, and 757 million installs makes it one of their most successful packages. Version 3.36.0.

  • Licence: MIT
  • Version: 3.36.0
  • Installs: 757 million
  • Best for: any project that stores files and might change where
  • Maintained by: The League of Extraordinary Packages

Doctrine ORM

Doctrine is the data mapper ORM for PHP, and the distinction from ActiveRecord matters. Your entities are plain PHP objects with no knowledge of the database; the mapping lives in configuration. That separation makes domain logic testable without a database and keeps persistence concerns out of your model.

It is heavier than ActiveRecord and the learning curve is real, but for a domain with any complexity it pays that back. 328 million installs, version 3.7.6, and the surrounding project covers migrations, database abstraction and a query builder as well.

  • Licence: MIT
  • Version: 3.7.6
  • Installs: 328 million
  • Best for: complex domains where persistence should not leak into the model
  • Includes: migrations, DBAL, and a query builder

Cycle ORM

Cycle ORM is the smaller, more modern alternative, and it comes from the same people who make RoadRunner and the Spiral framework. It is also a data mapper, but it leans harder on schema introspection and dynamic mapping, which means less configuration and more work done for you.

The install count tells the honest story: 1.1 million, against Doctrine’s 328 million. That is not a reason to avoid it, but it is a reason to know what you are choosing. You are trading ecosystem size and Stack Overflow answers for a leaner design and better integration with the modern runtime stack.

  • Licence: MIT
  • Version: 2.18.1
  • Installs: 1.1 million — far smaller than Doctrine
  • Best for: new projects already using Spiral or RoadRunner
  • Trade-off: modern design, much smaller community

Inside The League: What It Actually Maintains

Quick Answer: 26 packages, and several are load-bearing across the PHP ecosystem — Flysystem for filesystems, CommonMark for Markdown, Plates for templating, OAuth 2 Client for authentication, and URI for URL manipulation.

The original version of this page mentioned The League and moved on. Here is what is actually in it, because a couple of these are dependencies you already have without knowing where they came from.

PackageWhat it does
Flysystem
One filesystem API across local disk, S3, SFTP and more — 757 million installs
CommonMark
A spec-compliant Markdown parser, used by countless CMS and documentation projects
OAuth 2 Client
Integrate with any OAuth 2.0 provider
Plates
A native PHP templating system with no new syntax to learn
URI
URL and URI manipulation, plus PSR-7 URI implementation
CSV
CSV reading and writing that handles the awkward edge cases properly
Container
A small, fast dependency injection container
Glide
On-the-fly image manipulation served over HTTP
Omnipay
Multi-gateway payment processing behind one consistent API
Fractal
Output complex, flexible, RESTful data structures
Pipeline
Compose sequential tasks into a pipeline
Event
An event package for your app and domain
Route
A router and dispatcher built on FastRoute
Config
Schema-based configuration, so invalid config fails loudly
Period
Time range API for comparing and iterating date spans
CLImate
Terminal output made easy — colours, tables and progress
HTML To Markdown
Convert HTML to Markdown
Factory Muffin
Rapid creation of test objects
OAuth 1 Client
Integrate with OAuth 1.0 providers
OAuth 2 Server
Build an OAuth 2.0 server
Statsd
Work with StatsD metrics
Tactician
A simple, flexible command bus
Geotools
Geo-related calculations
Color Extractor
Pull a colour palette out of an image
ISO3166
ISO 3166-1 country data
Monga
A lightweight MongoDB abstraction

If you are doing authentication work, the OAuth packages are worth knowing about specifically — I compared the wider landscape in PHP authentication libraries that outshine Hybridauth.

Modern PHP Runtimes

Quick Answer: FrankenPHP and RoadRunner both replace PHP-FPM with an application server written in Go. They boot your app once and keep it in memory, which removes the per-request bootstrap cost entirely.

This is the second big change, and it is the one that catches people out. For twenty years the answer to “how do you serve PHP” was PHP-FPM behind nginx or Apache, and the answer to “why is it slow” was “because every request boots the framework from scratch”. That is no longer the only option.

Both tools below work the same way conceptually: instead of PHP starting fresh for each request, a Go process holds your application in memory and hands it requests. The framework boots once. Everything after that skips the bootstrap.

FrankenPHP

FrankenPHP is the modern PHP app server written in Go, created by Kévin Dunglas — the author of API Platform and a Symfony core team member. It embeds the official PHP executor inside Caddy, which means you get a real web server rather than a FastCGI process manager.

What that buys you in practice: native HTTP/1.1, HTTP/2 and HTTP/3, automatic HTTPS certificates from Let’s Encrypt or ZeroSSL, Brotli and Zstandard compression, graceful reloads for zero-downtime deploys, and Prometheus metrics. There is a built-in Mercure hub for real-time updates, and it is the only PHP SAPI with Early Hints support.

The performance claim is theirs rather than mine — their benchmarks put worker mode at 3.5x faster than FPM on API Platform applications. The caveat they are honest about is that your application has to be compatible with worker mode, which means no global state leaking between requests. Existing apps can run as-is without worker mode, they just do not get the speedup.

You can also build a standalone, self-executable binary containing your application and the runtime, which is a genuinely different deployment story from “install PHP, install extensions, configure FPM”.

  • Licence: MIT
  • Platform: Linux, macOS, Windows, Docker, Kubernetes
  • Requires: PHP 8.2 or later
  • Best for: new projects, Symfony and API Platform apps, and anything containerised
  • Related: I used it for something a bit unusual in using FrankenPHP for kiosks

RoadRunner

RoadRunner is the other Go-based option, from Spiral Scout, and it is positioned as an application server, load balancer and process manager in one. It is explicitly production ready and handles large applications under constant load.

The architectural difference from FrankenPHP is that RoadRunner is not a web server — it is a worker manager that speaks HTTP/2, gRPC and queue protocols, and it uses the Goridge RPC protocol to let you integrate arbitrary Go libraries into your PHP application. That is unusual and occasionally extremely useful: you can put a Go package in front of a hot path without rewriting the application.

It ships binaries for Linux, macOS, Windows, FreeBSD and ARM, and integrates with Sentry, Prometheus and other error reporters. If you are already using the Spiral framework or Cycle ORM, it is the natural choice.

  • Licence: MIT
  • Platform: Linux, macOS, Windows, FreeBSD, ARM
  • Protocols: HTTP/2, gRPC, queues, PSR-7
  • Best for: high-throughput services and teams who want to mix Go into a PHP application
  • From: Spiral Scout, who also make Spiral Framework and Cycle ORM

Should You Switch?

Honest answer: not on a whim, and not for a small site. PHP-FPM is not broken, and it is understood by every host, every deployment script and every person who might inherit your project.

The cases where it is worth it are specific. You are containerising and want one binary instead of a PHP image plus an FPM config. You are hitting the bootstrap ceiling on a high-traffic API. You are starting something new and want HTTP/3 and automatic HTTPS without assembling it yourself. Or you want the worker model because your framework supports it properly.

If none of those apply, this section is interesting rather than actionable, and that is fine.

The Libraries Compared

Quick Answer: Fifteen libraries in two tables. Versions and install counts were pulled from Packagist while writing, so they are current rather than remembered.

Quality and Testing Tooling

ToolJobLicenceVersionInstalls
PHPUnit
Test framework
BSD-3-Clause
13.4.6
1.04B
Pest
Test framework, friendlier
MIT
5.3.5
103M
Mockery
Mocking
BSD-3-Clause
1.6.15
585M
Faker
Fake data
MIT
1.24.1
451M
PHPStan
Static analysis
MIT
2.3.5
428M
Psalm
Static analysis and taint checks
MIT
7.0.2
91M
Rector
Automated refactoring
MIT
2.8.4
171M
PHP-CS-Fixer
Coding standard, opinionated
MIT
3.95.27
282M
PHP_CodeSniffer
Coding standard, configurable
BSD-3-Clause
4.0.4
422M

Everyday Building Blocks

LibraryJobLicenceVersionInstalls
Symfony Console
CLI applications
MIT
8.1.10
1.25B
Guzzle
HTTP client
MIT
8.3.1
1.15B
Monolog
Logging
MIT
3.12.1
1.11B
Carbon
Dates and times
MIT
3.15.1
779M
Flysystem
Filesystem abstraction
MIT
3.36.0
757M
Doctrine ORM
Data mapper ORM
MIT
3.7.6
328M
Cycle ORM
Data mapper ORM, modern
MIT
2.18.1
1.1M

One thing worth noticing in those numbers: Symfony Console and Guzzle both clear a billion installs, which means the odds that your project depends on one of them already are extremely high. That is not a coincidence — it is what happens when a component solves a universal problem well enough that frameworks stop writing their own.

Which Ones Do You Actually Need?

Quick Answer: Start with PHPStan and PHP-CS-Fixer on any existing project, PHPUnit or Pest on any new one, and add the building blocks as the problem appears rather than in advance.

  • You have inherited an undocumented codebase — PHPStan at level 0 first. It will find real bugs in the first five minutes and pay for the setup immediately.
  • You keep arguing about code style in review — PHP-CS-Fixer. Automate the decision and stop having the argument.
  • You are implementing a published standard — PHP_CodeSniffer, because it is the one built for enforcing rules you did not write.
  • You are starting a new project and want tests — Pest. If your team already knows PHPUnit, PHPUnit. Both are fine, and Pest wraps PHPUnit anyway.
  • You need to upgrade PHP versions on a large codebase — Rector. It will do in an afternoon what would otherwise take a week.
  • You are handling untrusted input — add Psalm alongside PHPStan specifically for its taint analysis.
  • You are calling an external API — Guzzle. There is no serious alternative worth considering.
  • You are writing a CLI tool — Symfony Console, even if you are not using Symfony.
  • Your dates are a mess — Carbon. It extends DateTime, so you can adopt it gradually.
  • You are storing files — Flysystem, so that changing where you store them later is a config change.
  • You need an ORM and your domain is complex — Doctrine. If it is simple, ActiveRecord will do and Doctrine will feel heavy.
  • You are on Spiral or RoadRunner already — Cycle ORM fits that stack better than Doctrine does.
  • You are building something new and containerising it — worth looking at FrankenPHP before you set up FPM out of habit.
  • You have a small site on shared hosting — none of the runtime section applies to you, and that is genuinely fine.

Glossary

Composer
The dependency manager for PHP. It reads a composer.json file, resolves a compatible set of package versions, and installs them. Current release is 2.11.1.
Packagist
The default package repository Composer installs from. Community-run, currently listing 478,607 packages and over six million versions.
PSR
PHP Standards Recommendation — a published interface or coding standard from the PHP-FIG group. PSR-4 covers autoloading, PSR-7 covers HTTP messages, PSR-12 covers coding style.
PHP-FIG
The PHP Framework Interoperability Group, which publishes the PSR standards. It exists so that components from different frameworks can work together.
PSR-4 autoloading
The standard that maps a namespace to a directory structure, so classes are loaded on demand rather than all at once. It is why you can use a class without an explicit require.
Data mapper
An ORM pattern where your objects have no knowledge of the database and mapping is configured separately. Doctrine and Cycle both work this way.
ActiveRecord
The alternative ORM pattern where a model object knows how to save and load itself. Simpler to start with, harder to keep clean as a domain grows.
Static analysis
Reading code and reporting problems without running it — undefined variables, impossible types, calls to methods that do not exist. PHPStan and Psalm are the two tools here.
Taint analysis
A form of static analysis that tracks untrusted input through your code and warns when it reaches somewhere dangerous, such as a database query or rendered output. Psalm is the reason it is on this page.
Coding standard
A published set of style rules — indentation, spacing, brace placement, naming — that a tool can enforce automatically. PHP-CS-Fixer and PHP_CodeSniffer both apply them.
Semantic versioning
A version numbering scheme where MAJOR.MINOR.PATCH communicates the kind of change: breaking, additive, or a fix. It is what makes ^3.15 a meaningful constraint.
Worker mode
A runtime model where the application boots once and stays in memory to handle many requests, instead of starting fresh each time. It removes the per-request bootstrap cost, and it requires that your code does not leak state between requests.
PHP-FPM
FastCGI Process Manager — the traditional way to serve PHP behind nginx or Apache. Each request is handled by a worker process that starts fresh, which is simple and predictable but pays the framework bootstrap cost every time.
SAPI
Server API — the interface between a web server and the PHP engine. PHP-FPM is one SAPI, the Apache module is another, and FrankenPHP ships its own. It is why FrankenPHP does not need FPM installed.
Cooldown policy
A Composer 2.11 feature that withholds newly published package versions for a configurable period before installing them. It exists to close the window in which a malicious release is live but not yet reported.
Dependency policy
Composer’s consolidated configuration for how to handle security advisories, abandoned packages and known malware. Introduced in Composer 2.10.
Immutable versions
A Packagist guarantee, added in July 2026, that published version metadata cannot be altered after the fact. It stops a tag being repointed at different code after you have audited it.
Transitive dependency
A package you did not install directly but which one of your dependencies requires. Most of the packages in your vendor folder are transitive, and they are where supply chain risk usually hides.
composer.lock
The file recording exactly which versions Composer resolved, so every environment installs the same thing. It belongs in version control — without it, two machines can build different software from the same composer.json.
Caddy
A web server written in Go with automatic HTTPS as a core feature. FrankenPHP embeds PHP inside it rather than running alongside it.
Namespace
A way of grouping class names so that two libraries can both define a Client class without colliding. The League’s packages all share the League namespace, which is how you know they follow the same standards.

FAQ

What is the best way to find PHP libraries?

Start with Awesome PHP, a categorised index of the ecosystem with over 32,000 stars that is still actively updated. Use Packagist to install from, and check the League of Extraordinary Packages when you want a dependency that has already been held to a published quality standard.

What is the difference between Packagist and Composer?

Packagist is the repository where packages live. Composer is the client that resolves and installs them. You browse Packagist and you run Composer, and they are two halves of the same system maintained by the same two people.

Does Composer block vulnerable packages?

Yes, since Composer 2.9 in November 2025. Updates to packages with known security advisories are blocked by default. Composer 2.10 added native malware filtering, and the current release is 2.11.1. Anything older than 2.9 has none of these protections.

What is the Composer cooldown policy?

A feature added in Composer 2.11 that withholds newly published package versions for a configurable period before installing them. It exists to close the window in which a malicious release is live but not yet reported and removed.

What is the best PHP testing framework?

PHPUnit is the default with over a billion installs, and Pest is a friendlier wrapper built on top of it. If your team knows PHPUnit, use PHPUnit. If you are starting fresh, Pest is worth trying, and because it wraps PHPUnit you can migrate incrementally.

Do I need both PHPStan and Psalm?

Not necessarily, but plenty of teams run both because they find different problems. Psalm’s taint analysis for security issues is the strongest reason to add it alongside PHPStan. If you only run one, run PHPStan and start at level 0.

What is Rector used for?

Rector rewrites your code automatically: PHP version upgrades, framework migrations, and bulk refactoring of deprecated patterns. Upgrading a large codebase from PHP 7.4 to 8.3 by hand takes a week. With Rector it is a config file and a diff review.

What is the difference between PHP-CS-Fixer and PHP_CodeSniffer?

Both enforce coding standards and both can fix violations. PHP-CS-Fixer is more opinionated and easier to configure. PHP_CodeSniffer is more configurable and better at enforcing standards you did not write, which is why it is used for published specifications.

Is PHP still worth learning in 2026?

Yes, emphatically. Packagist has served over 210 billion installs, Composer and Packagist just acquired a real security model, and the runtime options now include Go-based application servers. PHP powers a huge share of the web and its tooling has improved rather than stagnated.

What is FrankenPHP and should I use it instead of PHP-FPM?

FrankenPHP is a PHP application server written in Go that embeds PHP inside Caddy. It supports worker mode, so your framework boots once instead of on every request, and it brings HTTP/3 and automatic HTTPS. Switch if you are containerising or hitting the bootstrap ceiling, not for a small site.

What is the best ORM for PHP?

Doctrine if your domain is complex, because the data mapper pattern keeps persistence out of your model. Cycle ORM if you are already on Spiral or RoadRunner and want something leaner. For simple CRUD, ActiveRecord will do and Doctrine will feel heavy.

What does the League of Extraordinary Packages do?

It is a collective of developers maintaining 26 packages to a published quality standard: PSR-4 autoloading, unit tests with an 80 percent coverage target, semantic versioning and a changelog. Flysystem, CommonMark and OAuth 2 Client are among its better-known packages.

Let’s Talk!

Looking for a reliable partner to bring your project to the next level? Whether it’s development, design, security, or ongoing support—I’d love to chat and see how I can help.

Get in touch,
and let’s create something amazing together!

RELATED POSTS

It is 02:40 on a Tuesday. The lights flicker, the fridge compressor stops, and somewhere in the spare room your rack goes dark. Power comes back ninety seconds later. Everything boots except one machine, which sits at a BIOS screen waiting for someone to press F1. You are asleep. At 07:10 you leave for work. […]

Every site that serves images eventually runs into the same wall. Someone uploads a 12 megapixel phone photo, and you need it at 1200 pixels for the hero, 600 for a card, 200 for a thumbnail grid, and 48 for an avatar. The old answer is to pre-generate every size on upload, which means a […]

Alexander

Alex: Home

I am a full-stack developer. My expertise include:

  • Server, Network and Hosting Environments
  • Data Modeling / Import / Export
  • Business Logic
  • API Layer / Action layer / MVC
  • User Interfaces
  • User Experience
  • Understand what the customer and the business needs

I have a deep passion for programming, design, and server architecture—each of these fuels my creativity, and I wouldn’t feel complete without them.

With a broad range of interests, I’m always exploring new technologies and expanding my knowledge wherever needed. The tech world evolves rapidly, and I love staying ahead by embracing the latest innovations.

Beyond technology, I value peace and surround myself with like-minded individuals.

I firmly believe in the principle: Help others, and help will find its way back to you when you need it.