Best Best PHP Packages 2026

The #1 best php packages in 2026 is doctrine/migrations with a Nerq Trust Score of 81/100 (B+), based on Nerq's independent analysis of 50 best php packages across 5 trust dimensions. Rankings update daily — last updated: 2026-04-02.

According to Nerq's analysis, the top 5 best php packages by trust score are: 1. doctrine/migrations (81/100), 2. matthiasmullie/minify (81/100), 3. sebastian/code-unit (81/100), 4. sebastian/comparator (81/100), 5. phpdocumentor/type-resolver (81/100). Nerq Trust Scores range from 80 to 81 among the top 50. Scores are based on 5 independent trust dimensions including security, maintenance, and community adoption. Updated daily.

Top 50 Best PHP Packages by Nerq Trust Score

#NameTrustGradeStarsDescription
1doctrine/migrations81B+203790.3kPHP Doctrine Migrations project offer additional functionality on top of the database abstraction la...
2matthiasmullie/minify81B+30326.5kCSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @impor...
3sebastian/code-unit81B+519844.6kCollection of value objects that represent the PHP code units
4sebastian/comparator81B+876423.1kProvides the functionality to compare PHP values for equality
5phpdocumentor/type-resolver81B+717300.1kA PSR-5 based resolver of Class names, Types and Structural Element Names
6doctrine/collections81B+409582.1kPHP Doctrine Collections library that adds additional functionality on top of PHP arrays.
7namshi/jose81B+99296.6kJSON Object Signing and Encryption library for PHP.
8fakerphp/faker81B+356327.3kFaker is a PHP library that generates fake data for you.
9symfony/error-handler81B+648596.4kProvides tools to manage errors and ease debugging PHP code
10evenement/evenement81B+145629.1kÉvénement is a very simple event dispatching library for PHP
11sebastian/type81B+617531.3kCollection of value objects that represent the types of the PHP type system
12symfony/polyfill-php7381B+580392.1kSymfony polyfill backporting some PHP 7.3+ features to lower PHP versions
13phpcompatibility/php-compatibility81B+73869.9kA set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility.
14phpmd/phpmd81B+108111.3kPHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java too...
15doctrine/instantiator80B+850938.1kA small, lightweight utility to instantiate objects in PHP without invoking their constructors
16sebastian/lines-of-code80B+525871.1kLibrary for counting the lines of code in PHP source code
17doctrine/common80B+362281.9kPHP Doctrine Common project is a library that provides additional functionality that other Doctrine ...
18php-http/discovery80B+307607.8kFinds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations
19composer/package-versions-deprecated80B+190302.6kComposer plugin that provides efficient querying for installed package versions (no runtime IO)
20zendframework/zend-code80B+82973.0kExtensions to the PHP Reflection API, static code scanning, and code generation
21mtdowling/cron-expression80B+79835.5kCRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due
22slim/slim80B+49648.6kSlim is a PHP micro framework that helps you quickly write simple yet powerful web applications and ...
23tracy/tracy80B+24338.7k😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, loggin...
24phploc/phploc80B+23598.6kA tool for quickly measuring the size of a PHP project
25d11wtq/boris80B+12155.9kA tiny, but robust REPL (Read-Evaluate-Print-Loop) for PHP.
26sebastian/version80B+862184.8kLibrary that helps with managing the version number of Git-hosted PHP projects
27sebastian/environment80B+868387.7kProvides functionality to handle HHVM/PHP environments
28setasign/fpdi80B+141444.4kFPDI is a collection of PHP classes facilitating developers to read pages from existing PDF document...
29doctrine/reflection80B+105926.5kThe Doctrine Reflection project is a simple library used by the various Doctrine projects which adds...
30spipu/html2pdf80B+10576.6kHtml2Pdf is a HTML to PDF converter written in PHP - It uses TCPDF - OFFICIAL PACKAGE
31php-ffmpeg/php-ffmpeg80B+21507.5kFFMpeg PHP, an Object Oriented library to communicate with AVconv / ffmpeg
32box/spout80B+36058.1kPHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way
33dragonmantank/cron-expression80B+471515.3kCRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due
34markrogoyski/math-php80B+7063.7kMath Library for PHP. Features descriptive statistics and regressions; Continuous and discrete proba...
35predis/predis80B+304187.7kA flexible and feature-complete Redis/Valkey client for PHP.
36phpunit/php-timer80B+873676.0kUtility class for timing
37bref/bref80B+9479.0kBref is a framework to write and deploy serverless PHP applications on AWS Lambda.
38mikehaertl/phpwkhtmltopdf80B+19863.2kA slim PHP wrapper around wkhtmltopdf with an easy to use and clean OOP interface
39tecnickcom/tcpdf80B+101175.2kTCPDF is a PHP class for generating PDF documents and barcodes.
40ramsey/uuid80B+696937.6kA PHP library for generating and working with universally unique identifiers (UUIDs).
41phpstan/phpdoc-parser80B+330504.4kPHPDoc parser with support for nullable, intersection and generic types
42php-http/httplug80B+306124.8kHTTPlug, the HTTP client abstraction for PHP
43phpdocumentor/reflection-common80B+704730.5kCommon reflection classes used by phpdocumentor to reflect the code structure
44react/promise80B+359911.7kA lightweight implementation of CommonJS Promises/A for PHP
45laravel/pint80B+146163.2kAn opinionated code formatter for PHP.
46phenx/php-svg-lib80B+141130.9kA library to read, parse and export to PDF SVG files.
47abraham/twitteroauth80B+15892.8kThe most popular PHP library for use with the Twitter OAuth REST API.
48james-heinrich/getid380B+11173.2kPHP script that extracts useful information from popular multimedia file formats
49paquettg/php-html-parser80B+7921.7kAn HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just ...
50cuyz/valinor80B+8908.7kDependency free PHP library that helps to map any input into a strongly-typed structure.

How We Rank Best PHP Packages

These best php packages are ranked by Nerq Trust Score, which evaluates security, maintenance, community adoption, and transparency across multiple data points. Only entities with a trust score of 30 or above are included. Scores are updated continuously as new data becomes available.

FAQ

What are the best best php packages in 2026?

Based on Nerq Trust Scores, the top-ranked best php packages are listed above, scored on security, activity, documentation, and community metrics.

How are best php packages ranked?

Nerq ranks tools using Trust Score v2, which combines security analysis, maintenance activity, documentation quality, and community adoption signals.

Are these best php packages safe to use?

Each tool has an individual safety report. Click any tool name to see its detailed trust analysis.

What does a Nerq Trust Score of A mean?

An A grade (80-89) means the entity has strong signals across security, maintenance, documentation, and community adoption. A+ (90-100) is the highest possible rating.

How does Nerq evaluate best php packages?

Nerq analyzes best php packages across multiple dimensions including security vulnerabilities, license compliance, maintenance activity, documentation quality, and community adoption. Each dimension is scored independently and combined into an overall Trust Score (0-100).

We use cookies for analytics and caching. Privacy Policy