PHP libraries and tools

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

Our great sponsors
  • Cloudways - Managed Cloud Hosting Platform
  • Scout APM - Less time debugging, more time building
  • SonarLint - Deliver Cleaner and Safer Code - Right in Your IDE of Choice!
  • OPS - Build and Run Open Source Unikernels
  • GitHub repo date-time

    Date and time library for PHP

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

  • GitHub repo safe8

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

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

  • Cloudways

    Managed Cloud Hosting Platform. Deploy PHP applications on Cloudways web hosting platform to get high uptime and optimized performance. Use the BFCM promo "BFCM2021" to get 40% FLAT discount for FOUR months straight.

  • GitHub repo ISO-codes

    PHP library - Validators for standards from ISO, International Finance, Public Administrations, GS1, Manufacturing Industry, Phone numbers & Zipcodes for many countries

    ronanguilloux/isocodes: PHP library - Validators for standards from ISO, International Finance, Public Administrations, GS1, Manufacturing Industry, Phone numbers & Zipcodes for many countries

  • GitHub repo Robo

    Modern task runner for PHP

    Robo: Modern Task Runner for PHP

  • GitHub repo Deptrac

    Keep your architecture clean.

    Deptrac: Keep your architecture clean.

  • GitHub repo GrumPHP

    A PHP code-quality tool

    GrumPHP: A PHP code-quality tool.

  • GitHub repo churn-php

    Discover files in need of refactoring.

    churn-php: Discover files in need of refactoring.

  • Scout APM

    Less time debugging, more time building. Scout APM allows you to find and fix performance issues with no hassle. Now with error monitoring and external services monitoring, Scout is a developer's best friend when it comes to application development.

  • GitHub repo psalm-plugin-stringf

    Psalm plugin to provide more details for `sprintf`, `printf`, `sscanf` and `fscanf` functions.

    boesing/psalm-plugin-stringf: Psalm plugin to provide more details for sprintf, printf, sscanf and fscanf functions.

  • GitHub repo safe-php-psalm-plugin

    vimeo/psalm plugin for thecodingmachine/safe

    hectorj/safe-php-psalm-plugin: vimeo/psalm plugin for thecodingmachine/safe.

  • GitHub repo psalm-no-empty

    marartner/psalm-no-empty: Psalm plugin to detect usage of empty().

  • GitHub repo psalm-strict-equality

    Psalm plugin to enforce strict equality

    marartner/psalm-strict-equality: Psalm plugin to enforce strict equality.

  • GitHub repo psalm-plugin-phpunit

    A PHPUnit plugin for Psalm

    psalm/plugin-phpunit: A PHPUnit plugin for Psalm.

  • GitHub repo psalm-plugin-symfony

    Psalm Plugin for Symfony

    psalm/plugin-symfony: Psalm Plugin for Symfony.

  • GitHub repo psalm-plugin-doctrine

    Stubs to let Psalm understand Doctrine better

    weirdan/doctrine-psalm-plugin: Stubs to let Psalm understand Doctrine better.

  • GitHub repo phpstan-rules

    :eyeglasses: Provides additional rules for phpstan/phpstan.

    ergebnis/phpstan-rules: Provides additional rules for phpstan/phpstan.

  • GitHub repo 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.

  • GitHub repo phpstan-disallowed-calls

    PHPStan rules to detect disallowed calls and constant & namespace usages

    spaze/phpstan-disallowed-calls: PHPStan rules to detect disallowed calls and constant & namespace usages

  • GitHub repo no-floaters

    :mag_right: static analysis rules to prevent IEEE-754 floating point errors

    roave/no-floaters: static analysis rules to prevent IEEE-754 floating point errors.

  • GitHub repo infection-static-analysis-plugin

    Static analysis on top of mutation testing - prevents escaped mutants from being invalid according to static analysis

    roave/infection-static-analysis-plugin: Static analysis on top of mutation testing - prevents escaped mutants from being invalid according to static analysis

  • GitHub repo captainhook-infection

    Captain Hook Plugin to run InfectionPHP only against the changed files of a commit

    bitexpert/captainhook-infection: Captain Hook Plugin to run InfectionPHP only against the changed files of a commit

  • GitHub repo no-leaks

    :potable_water: PHPUnit Plugin for detecting Memory Leaks in code and tests

    roave/no-leaks: PHPUnit Plugin for detecting Memory Leaks in code and tests

  • GitHub repo populator

    Allows populate fake data to your database

    lulco/populator: Allows populate fake data to your database.

  • GitHub repo openapi-psr7-validator

    It validates PSR-7 messages (HTTP request/response) against OpenAPI specifications

    OpenAPI PSR-7 Message (HTTP Request/Response) Validator: It validates PSR-7 messages (HTTP request/response) against OpenAPI specifications.

  • GitHub repo ParaTest

    :computer: Parallel testing for PHPUnit

    Paratest: Parallel testing for PHPUnit

  • GitHub repo 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. More extensions

  • GitHub repo ComposerRequireChecker

    A CLI tool to check whether a specific composer package uses imported symbols that aren't part of its direct composer dependencies

    ComposerRequireChecker: A CLI tool to check whether a specific composer package uses imported symbols that aren't part of its direct composer dependencies

  • GitHub repo composer-unused

    Show unused composer dependencies by scanning your code

    composer-unused: Show unused composer dependencies by scanning your code

  • GitHub repo phpinsights

    🔰 Instant PHP quality checks from your console

    PHP Insights: Instant PHP quality checks from your console

  • GitHub repo composer-normalize

    :musical_note: Provides a composer plugin for normalizing composer.json.

    composer-normalize: Provides a composer plugin for normalizing composer.json.

  • GitHub repo Spout

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

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

  • GitHub repo SecurityAdvisories

    :closed_lock_with_key: Security advisories as a simple composer exclusion list, updated daily

    roave/security-advisories: Security advisories as a simple composer exclusion list, updated daily

  • GitHub repo BackwardCompatibilityCheck

    :ab: Tool to compare two revisions of a class API to check for BC breaks

    roave/backward-compatibility-check: Tool to compare two revisions of a class API to check for BC breaks

  • GitHub repo Serializer

    Library for (de-)serializing data of any complexity (supports JSON, and XML)

    JMS Serializer: This library allows you to (de-)serialize data of any complexity. Currently, it supports XML and JSON.

  • GitHub repo local-php-security-checker

    PHP security vulnerabilities checker

    Local PHP Security Checker: PHP security vulnerabilities checker

  • GitHub repo captainhook

    Very flexible git hook manager for php developers

    CaptainHook: Very flexible git hook manager for php developers

  • GitHub repo 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

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