PHP libraries and tools

This page summarizes the projects mentioned and recommended in the original post on dev.to

Cloudways' Black Friday Offer - 1st Choice of Developers
Cloudways: Devs' 1st choice for managed hosting! Pick from top-tier Cloud providers like DigitalOcean, AWS, and GCE. Limited-time deal: 40% OFF for 4 Months + 40 Free Migrations.
platform.cloudways.com
featured
SaaSHub - Software Alternatives and Reviews
SaaSHub helps you find the best software and product alternatives
www.saashub.com
featured
  • Brick\Math

    Arbitrary-precision arithmetic library for PHP (by brick)

    brick/math: Arbitrary-precision arithmetic library for PHP

  • Cloudways

    Cloudways' Black Friday Offer - 1st Choice of Developers. Cloudways: Devs' 1st choice for managed hosting! Pick from top-tier Cloud providers like DigitalOcean, AWS, and GCE. Limited-time deal: 40% OFF for 4 Months + 40 Free Migrations.

    Cloudways logo
  • Psalm

    A static analysis tool for finding errors in PHP applications

    Psalm: A static analysis tool for finding errors in PHP applications. Plugins: boesing/psalm-plugin-stringf: Psalm plugin to provide more details for sprintf, printf, sscanf and fscanf functions. hectorj/safe-php-psalm-plugin: vimeo/psalm plugin for thecodingmachine/safe. marartner/psalm-no-empty: Psalm plugin to detect usage of empty(). marartner/psalm-strict-equality: Psalm plugin to enforce strict equality. psalm/plugin-phpunit: A PHPUnit plugin for Psalm. psalm/plugin-symfony: Psalm Plugin for Symfony. weirdan/doctrine-psalm-plugin: Stubs to let Psalm understand Doctrine better. ghostwriter/psalm-plugin: Provides an ALL-IN-ONE plugin for Psalm

  • openspout

    Read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

    openspout/openspout: Read and write spreadsheet files (CSV, XLSX and ODS), in a fast and scalable way

  • PHPUnit

    The PHP Unit Testing framework.

    PHPUnit: PHPUnit is a programmer-oriented testing framework for PHP. It is an instance of the xUnit architecture for unit testing frameworks. Extensions/tools: brianium/paratest: Parallel testing for PHPUnit johnkary/phpunit-speedtrap: Reports on slow-running tests in your PHPUnit test suite. robiningelbrecht/phpunit-pretty-print: Better PHPUnit CLI output with Collision roave/no-leaks: PHPUnit Plugin for detecting Memory Leaks in code and tests

  • PHPStan

    PHP Static Analysis Tool - discover bugs in your code without running it!

    PHPStan: PHP Static Analysis Tool - discover bugs in your code without running it! Plugins: ergebnis/phpstan-rules: Provides additional rules for phpstan/phpstan. spaze/phpstan-disallowed-calls: PHPStan rules to detect disallowed calls and constant & namespace usages roave/no-floaters: static analysis rules to prevent IEEE-754 floating point errors. dave-liddament/php-language-extensions: Attributes to define PHP language extensions (to be enforced by static analysis) sidz/phpstan-rules: Additional rules for phpstan/phpstan. staabm/phpstan-baseline-analysis: Analyzes PHPStan baseline files and creates aggregated error trend-reports More extensions

  • Safe

    All PHP functions, rewritten to throw exceptions instead of returning false

    thecodingmachine/safe: All PHP functions, rewritten to throw exceptions instead of returning false

  • PHP Mess Detector

    PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend.

    PHPMD - PHP Mess Detector: PHPMD is a spin-off project of PHP Depend and aims to be a PHP equivalent of the well known Java tool PMD. PHPMD can be seen as an user friendly frontend application for the raw metrics stream measured by PHP Depend.

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
  • psl

    📚 PHP Standard Library - a modern, consistent, centralized, well-typed, non-blocking set of APIs for PHP programmers

    azjezz/psl: PHP Standard Library - a modern, consistent, centralized, well-typed, non-blocking set of APIs for PHP programmers

  • Validator

    Particle\Validator is a validation library with an extremely clean API which makes validation fun! (by particle-php)

    particle/validator: Particle\Validator is a validation library with an extremely clean API which makes validation fun!

  • tactician

    A small, flexible command bus

    league/tactician: A small, flexible command bus.

  • messenger-kit

    golem-ai/messenger-kit: This command simulates consumer failures and prints a timeline of the events. It lets you check whether your retry strategy configuration does what you expect it to.

  • swarrot

    A lib to consume message from any Broker

    swarrot/swarrot: A lib to consume message from any Broker

  • Infection

    PHP Mutation Testing library

    Infection: PHP Mutation Testing library. Plugins: roave/infection-static-analysis-plugin: Static analysis on top of mutation testing - prevents escaped mutants from being invalid according to static analysis bitexpert/captainhook-infection: Captain Hook Plugin to run InfectionPHP only against the changed files of a commit

  • php-units-of-measure

    A library for handling physical quantities and the units of measure in which they're represented. (by PhpUnitsOfMeasure)

    php-units-of-measure/php-units-of-measure: A library for handling physical quantities and the units of measure in which they're represented.

  • T-Regx

    Simple library for regular expressions in PHP.

    rawr/t-regx: PHP regular expression brought up to modern standards.

  • SensioLabs Security Check

    A database of PHP security advisories

    Local PHP Security Checker: PHP security vulnerabilities checker

  • Embera

    A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support.

    mpratt/embera: A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support.

  • geocoder

    Geocode addresses to coordinates (by spatie)

    spatie/geocoder: Geocode addresses to coordinates

  • wsdl-reader

    A pure PHP wsdl metadata provider

    php-soap/wsdl-reader: A pure PHP wsdl metadata provider

  • soap-client

    A general purpose SOAP client for PHP

    phpro/soap-client: A general purpose SOAP client for PHP

  • BackOff

    Sophisticated back-off strategies for retrying operations. (by EventSaucePHP)

    eventsauce/backoff: Sophisticated back-off strategies for retrying operations.

  • php-weasyprint

    PHP library allowing PDF generation or snapshot from an URL or an HTML page. Wrapper for Kozea/WeasyPrint

    pontedilana/php-weasyprint: PHP library allowing PDF generation or snapshot from an URL or an HTML page. Wrapper for Kozea/WeasyPrint

  • Valinor

    PHP library that helps to map any input into a strongly-typed value object structure.

    cuyz/valinor: PHP library that helps to map any input into a strongly-typed value object structure.

  • json-parser

    🧩 Zero-dependencies lazy parser to read JSON of any dimension and from any source in a memory-efficient way. (by cerbero90)

    cerbero/json-parser: 🧩 Zero-dependencies lazy parser to read JSON of any dimension and from any source in a memory-efficient way.

  • plain-to-class

    Class-transformer to transform your data into a typed object

    yzen.dev/plain-to-class: Class-transformer to transform your data into a typed object

  • date-time

    Date and time library for PHP

    brick/date-time: Date and time library for PHP

  • easytime

    A small class based package to help with human readable calculations of time

    fredbradley/easytime: A small class based package to help with human readable calculations of time

  • ranger

    Formatter for date and time ranges with i18n support (by flack)

    flack/ranger: Formatter for date and time ranges with i18n support

  • Brick\Money

    A money and currency library for PHP (by brick)

    brick/money: A money and currency library for PHP

  • Money

    PHP implementation of Fowler's Money pattern.

    moneyphp: PHP implementation of Fowler's Money pattern

  • loupe

    A full text search engine with tokenization, stemming, typo tolerance, filters and geo support based on only PHP and SQLite. (by loupe-php)

    loupe/loupe: A full text search engine with tokenization, stemming, typo tolerance, filters and geo support based on only PHP and SQLite.

  • phpunit-speedtrap

    Reports on slow-running tests in your PHPUnit test suite

    johnkary/phpunit-speedtrap: Reports on slow-running tests in your PHPUnit test suite.

  • phpunit-pretty-print

    Better PHPUnit CLI output with Collision (by robiningelbrecht)

    robiningelbrecht/phpunit-pretty-print: Better PHPUnit CLI output with Collision

  • Deptrac

    Keep your architecture clean.

    Deptrac: Keep your architecture clean.

  • arkitect

    Put your architectural rules under test!

    PHPArkitect: Put your architectural rules under test!

  • GrumPHP

    A PHP code-quality tool

    GrumPHP: A PHP code-quality tool.

  • tombstone

    Dead code detection with tombstones for PHP 🪦🧟

    scheb/tombstone: Dead code detection with tombstones for PHP

  • phpmnd

    PHP Magic Number Detector

    PHP Magic Number Detector: a tool that aims to help you to detect magic numbers in your PHP code.

  • name-collision-detector

    Fast & simple tool to find class duplicates in your projects.

    shipmonk/name-collision-detector: Fast & simple tool to find classname collisions within your project.

  • whisky

    Whisky is the simplest, framework agnostic, CLI tool for managing and enforcing a php project's git hooks across an entire team. (by ProjektGopher)

    Whisky: Whisky is the simplest, framework agnostic, CLI tool for managing and enforcing a php project's git hooks across an entire team.

  • php-db-auditor

    Audit your mysql database -Database DB Auditor provide leverage to audit your MySql database standards and also provide options to add constraints in table

    vcian/php-db-auditor: Audit your mysql database -Database DB Auditor provide leverage to audit your MySql database standards and also provide options to add constraints in table

  • psalm-plugin

    [WIP]Provides an `ALL-IN-ONE` plugin for Psalm

    ghostwriter/psalm-plugin: Provides an ALL-IN-ONE plugin for Psalm

  • php-language-extensions

    Attributes to define new PHP language features (that are enforced by static analysis)

    dave-liddament/php-language-extensions: Attributes to define PHP language extensions (to be enforced by static analysis)

  • phpstan-rules

    Magic number rules for phpstan/phpstan. (by sidz)

    sidz/phpstan-rules: Additional rules for phpstan/phpstan.

  • phpstan-baseline-analysis

    Analyzes PHPStan baseline files and creates aggregated error trend-reports

    staabm/phpstan-baseline-analysis: Analyzes PHPStan baseline files and creates aggregated error trend-reports

  • flow

    Flow PHP - data processing framework (by flow-php)

    Flow PHP: Flow PHP - strongly typed data processing framework

  • php-tokio

    Use any async Rust library from PHP!

    PHPTokio: Use any async Rust library from PHP!

  • SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Microservices aren't the problem. Incompetent people are

    4 projects | news.ycombinator.com | 9 Nov 2023
  • Enforce architecture rules with Deptrac

    4 projects | dev.to | 31 Oct 2023
  • Any good resources on how to do “interaction” tests?

    6 projects | /r/PHP | 27 May 2023
  • Any pro-tips for writing automated tests with Selenium PHP?

    3 projects | /r/PHP | 2 May 2023
  • Templates available in Yii3.

    11 projects | /r/yii3 | 11 Jan 2023

Did you konow that PHP is
the 14th most popular programming language
based on number of metions?