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
| # | Name | Trust | Grade | Stars | Description |
|---|---|---|---|---|---|
| 1 | doctrine/migrations | 81 | B+ | 203790.3k | PHP Doctrine Migrations project offer additional functionality on top of the database abstraction la... |
| 2 | matthiasmullie/minify | 81 | B+ | 30326.5k | CSS & JavaScript minifier, in PHP. Removes whitespace, strips comments, combines files (incl. @impor... |
| 3 | sebastian/code-unit | 81 | B+ | 519844.6k | Collection of value objects that represent the PHP code units |
| 4 | sebastian/comparator | 81 | B+ | 876423.1k | Provides the functionality to compare PHP values for equality |
| 5 | phpdocumentor/type-resolver | 81 | B+ | 717300.1k | A PSR-5 based resolver of Class names, Types and Structural Element Names |
| 6 | doctrine/collections | 81 | B+ | 409582.1k | PHP Doctrine Collections library that adds additional functionality on top of PHP arrays. |
| 7 | namshi/jose | 81 | B+ | 99296.6k | JSON Object Signing and Encryption library for PHP. |
| 8 | fakerphp/faker | 81 | B+ | 356327.3k | Faker is a PHP library that generates fake data for you. |
| 9 | symfony/error-handler | 81 | B+ | 648596.4k | Provides tools to manage errors and ease debugging PHP code |
| 10 | evenement/evenement | 81 | B+ | 145629.1k | Événement is a very simple event dispatching library for PHP |
| 11 | sebastian/type | 81 | B+ | 617531.3k | Collection of value objects that represent the types of the PHP type system |
| 12 | symfony/polyfill-php73 | 81 | B+ | 580392.1k | Symfony polyfill backporting some PHP 7.3+ features to lower PHP versions |
| 13 | phpcompatibility/php-compatibility | 81 | B+ | 73869.9k | A set of sniffs for PHP_CodeSniffer that checks for PHP cross-version compatibility. |
| 14 | phpmd/phpmd | 81 | B+ | 108111.3k | PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java too... |
| 15 | doctrine/instantiator | 80 | B+ | 850938.1k | A small, lightweight utility to instantiate objects in PHP without invoking their constructors |
| 16 | sebastian/lines-of-code | 80 | B+ | 525871.1k | Library for counting the lines of code in PHP source code |
| 17 | doctrine/common | 80 | B+ | 362281.9k | PHP Doctrine Common project is a library that provides additional functionality that other Doctrine ... |
| 18 | php-http/discovery | 80 | B+ | 307607.8k | Finds and installs PSR-7, PSR-17, PSR-18 and HTTPlug implementations |
| 19 | composer/package-versions-deprecated | 80 | B+ | 190302.6k | Composer plugin that provides efficient querying for installed package versions (no runtime IO) |
| 20 | zendframework/zend-code | 80 | B+ | 82973.0k | Extensions to the PHP Reflection API, static code scanning, and code generation |
| 21 | mtdowling/cron-expression | 80 | B+ | 79835.5k | CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due |
| 22 | slim/slim | 80 | B+ | 49648.6k | Slim is a PHP micro framework that helps you quickly write simple yet powerful web applications and ... |
| 23 | tracy/tracy | 80 | B+ | 24338.7k | 😎 Tracy: the addictive tool to ease debugging PHP code for cool developers. Friendly design, loggin... |
| 24 | phploc/phploc | 80 | B+ | 23598.6k | A tool for quickly measuring the size of a PHP project |
| 25 | d11wtq/boris | 80 | B+ | 12155.9k | A tiny, but robust REPL (Read-Evaluate-Print-Loop) for PHP. |
| 26 | sebastian/version | 80 | B+ | 862184.8k | Library that helps with managing the version number of Git-hosted PHP projects |
| 27 | sebastian/environment | 80 | B+ | 868387.7k | Provides functionality to handle HHVM/PHP environments |
| 28 | setasign/fpdi | 80 | B+ | 141444.4k | FPDI is a collection of PHP classes facilitating developers to read pages from existing PDF document... |
| 29 | doctrine/reflection | 80 | B+ | 105926.5k | The Doctrine Reflection project is a simple library used by the various Doctrine projects which adds... |
| 30 | spipu/html2pdf | 80 | B+ | 10576.6k | Html2Pdf is a HTML to PDF converter written in PHP - It uses TCPDF - OFFICIAL PACKAGE |
| 31 | php-ffmpeg/php-ffmpeg | 80 | B+ | 21507.5k | FFMpeg PHP, an Object Oriented library to communicate with AVconv / ffmpeg |
| 32 | box/spout | 80 | B+ | 36058.1k | PHP Library to read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way |
| 33 | dragonmantank/cron-expression | 80 | B+ | 471515.3k | CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due |
| 34 | markrogoyski/math-php | 80 | B+ | 7063.7k | Math Library for PHP. Features descriptive statistics and regressions; Continuous and discrete proba... |
| 35 | predis/predis | 80 | B+ | 304187.7k | A flexible and feature-complete Redis/Valkey client for PHP. |
| 36 | phpunit/php-timer | 80 | B+ | 873676.0k | Utility class for timing |
| 37 | bref/bref | 80 | B+ | 9479.0k | Bref is a framework to write and deploy serverless PHP applications on AWS Lambda. |
| 38 | mikehaertl/phpwkhtmltopdf | 80 | B+ | 19863.2k | A slim PHP wrapper around wkhtmltopdf with an easy to use and clean OOP interface |
| 39 | tecnickcom/tcpdf | 80 | B+ | 101175.2k | TCPDF is a PHP class for generating PDF documents and barcodes. |
| 40 | ramsey/uuid | 80 | B+ | 696937.6k | A PHP library for generating and working with universally unique identifiers (UUIDs). |
| 41 | phpstan/phpdoc-parser | 80 | B+ | 330504.4k | PHPDoc parser with support for nullable, intersection and generic types |
| 42 | php-http/httplug | 80 | B+ | 306124.8k | HTTPlug, the HTTP client abstraction for PHP |
| 43 | phpdocumentor/reflection-common | 80 | B+ | 704730.5k | Common reflection classes used by phpdocumentor to reflect the code structure |
| 44 | react/promise | 80 | B+ | 359911.7k | A lightweight implementation of CommonJS Promises/A for PHP |
| 45 | laravel/pint | 80 | B+ | 146163.2k | An opinionated code formatter for PHP. |
| 46 | phenx/php-svg-lib | 80 | B+ | 141130.9k | A library to read, parse and export to PDF SVG files. |
| 47 | abraham/twitteroauth | 80 | B+ | 15892.8k | The most popular PHP library for use with the Twitter OAuth REST API. |
| 48 | james-heinrich/getid3 | 80 | B+ | 11173.2k | PHP script that extracts useful information from popular multimedia file formats |
| 49 | paquettg/php-html-parser | 80 | B+ | 7921.7k | An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just ... |
| 50 | cuyz/valinor | 80 | B+ | 8908.7k | Dependency 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).