Browse free open source PHP Libraries and projects below. Use the toggles on the left to filter open source PHP Libraries by OS, license, language, programming language, and project status.

  • Earn up to 15% annual interest with Nexo. Icon
    Earn up to 15% annual interest with Nexo.

    Let your crypto work for you

    Put idle assets to work with competitive interest rates, borrow without selling, and trade with precision. All in one platform. Geographic restrictions, eligibility, and terms apply.
    Get started with Nexo.
  • Earn up to 15% annual interest with Nexo. Icon
    Earn up to 15% annual interest with Nexo.

    Access competitive interest rates on your digital assets.

    Generate interest, borrow against your crypto, and trade a range of cryptocurrencies — all in one platform. Geographic restrictions, eligibility, and terms apply.
    Get started with Nexo.
  • 1
    Gaufrette

    Gaufrette

    PHP library that provides a filesystem abstraction layer

    Gaufrette is a PHP library designed to abstract filesystem operations, providing a consistent interface to interact with various storage backends. It allows developers to work with files stored locally, on cloud platforms, or via network protocols, without changing the code. Gaufrette supports plugins for caching, metadata management, and file transformation, making it a flexible choice for file management in web applications.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 2
    Guzzle Promises

    Guzzle Promises

    A library for PHP with synchronous support

    Promises/A+ implementation that handles promise chaining and resolution iteratively, allowing for "infinite" promise chaining while keeping the stack size constant. A promise represents the eventual result of an asynchronous operation. The primary way of interacting with a promise is through its then method, which registers callbacks to receive either a promise's eventual value or the reason why the promise cannot be fulfilled. Callbacks are registered with the then method by providing an optional $onFulfilled followed by an optional $onRejected function. Resolving a promise means that you either fulfill a promise with a value or reject a promise with a reason. Resolving a promises triggers callbacks registered with the promises's then method. These callbacks are triggered only once and in the order in which they were added.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 3
    Kint

    Kint

    Kint - Advanced PHP dumper

    Kint is a PHP debugging tool that provides developers with an intuitive and highly informative way to inspect variables and data structures. It replaces standard debugging methods like var_dump() and print_r() with a more readable and structured output, highlighting key details and nesting. Kint is designed to simplify debugging by automatically detecting variable types and presenting them in a clean, interactive format.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 4
    KnpSnappyBundle

    KnpSnappyBundle

    Easily create PDF and images in Symfony by converting html using webki

    Easily create PDF and images in Symfony by converting HTML using webkit. Snappy is a PHP wrapper for the wkhtmltopdf conversion utility. It allows you to generate either pdf or image files from your html documents, using the webkit engine. The KnpSnappyBundle provides a simple integration for your Symfony project. If you need to change the binaries, change the instance options or even disable one or both services, you can do it through the configuration. Render a pdf document with a relative url inside like css files. Render a pdf document as a response from a controller. Render an image as response from a controller. Generate a pdf document from a twig view.
    Downloads: 3 This Week
    Last Update:
    See Project
  • LinkSquares: All-in-One Contract Management Platform Icon
    LinkSquares: All-in-One Contract Management Platform

    #1 Customer Rated CLM Any Contract. Every Department. One Platform.

    LinkSquares is the leading Contract Lifecycle Management (CLM) software designed to help legal, procurement, and business operations teams master the entire contract lifecycle, from creation to execution and renewal. The platform transforms how companies manage agreements by centralizing data, automating routine work, and providing actionable insights powered by AI. This single, connected source of truth helps teams eliminate manual processes, streamline workflows, boost visibility, and ensure compliance across thousands of contracts, ultimately reducing risk and administrative burden.
    Learn More
  • 5
    Laravel collection macros

    Laravel collection macros

    A set of useful Laravel collection macros

    Laravel's collection class is truly wonderful. It contains a lot of handy methods and you can create some very elegant code with it. In client projects I found myself adding the same macro's over and over again. That's why my colleague Seb and I took some time to create a package aptly called Laravel-collection-macros that contains those macros.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 6
    Minify php

    Minify php

    CSS & JavaScript minifier, in PHP

    Matthias Mullie Minify is a PHP library that minifies CSS and JavaScript files by removing whitespace, comments, and other unnecessary characters. It helps reduce file size and load time, making it ideal for optimizing web assets in production environments. The library is fast, reliable, and can process both strings and file-based input.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 7
    OAuth 2.0 Client

    OAuth 2.0 Client

    Easy integration with OAuth 2.0 service providers

    The PHP League's OAuth 2.0 Client is a robust library for integrating OAuth 2.0 authentication in PHP applications. It simplifies the process of connecting with OAuth providers like Google, Facebook, and GitHub, allowing secure and standardized user authentication. The library is designed with extensibility in mind, making it easy to add support for new providers through custom adapters.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 8
    Optimus id transformation

    Optimus id transformation

    Id obfuscation based on Knuth's multiplicative hashing method for PHP

    With this library, you can transform your internal IDs to obfuscated integers based on Knuth's integer hash. It is similar to Hashids but will generate integers instead of random strings. It is also super fast. If you will be running your code on a 32-bit system or will be working with large prime numbers it is suggested that you install the GMP extension.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 9
    PHPFastCache

    PHPFastCache

    A high-performance backend cache system

    PHPFastCache is a caching library that provides a simple and efficient way to manage data caching in PHP applications. It supports a variety of cache backends, including Redis, Memcached, APCu, and filesystem. The library is designed to enhance performance by reducing database load and speeding up content delivery. PHPFastCache’s flexible API and multi-driver support make it easy to implement caching in both small and large projects.
    Downloads: 3 This Week
    Last Update:
    See Project
  • White Labeled Fintech Software Solutions | Centrex Icon
    White Labeled Fintech Software Solutions | Centrex

    Centrex is a full suite of white labeled fintech solutions built and designed for brokers, lenders, banks, investors, fintechs

    The Centrex products include: CRM, loan origination, loan and advance servicing software, syndication management, white labeled mobile app, money manager, underwriting, Esign, and website smart app builder. The Centrex services include: fintech software consulting, admin retainer services, and managed data cloud.
    Learn More
  • 10
    PhpMetrics

    PhpMetrics

    Beautiful and understandable static analysis tool for PHP

    PhpMetrics is a powerful static analysis tool for PHP code that provides metrics on code quality, complexity, maintainability, and architecture. It generates comprehensive reports in HTML format, visualizing metrics like cyclomatic complexity, lines of code, and coupling between classes. PhpMetrics helps developers identify potential code issues, optimize performance, and maintain high-quality codebases.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 11
    ReflectionDocBlock

    ReflectionDocBlock

    Component of phpDocumentor that provides a DocBlock parser

    The ReflectionDocBlock component of phpDocumentor provides a DocBlock parser that is 100% compatible with the PHPDoc standard. With this component, a library can provide support for annotations via DocBlocks or otherwise retrieve information that is embedded in a DocBlock. In order to parse the DocBlock one needs a DocBlockFactory that can be instantiated using its createInstance factory method. Then we can use the create method of the factory to interpret the DocBlock. Please note that it is also possible to provide a class that has the getDocComment() method, such as an object of type ReflectionClass, the create method will read that if it exists. The create method will yield an object of type \phpDocumentor\Reflection\DocBlock whose methods can be queried. The composer requires phpdocumentor/reflection-docblock.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 12
    Sentry PHP

    Sentry PHP

    The official PHP SDK for Sentry (sentry.io)

    Sentry for PHP is a powerful error tracking library that helps developers identify, capture, and debug application issues in real time. It integrates seamlessly with PHP applications and frameworks like Laravel and Symfony, making it a go-to tool for production error monitoring.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 13
    Spatie Data Transfer Object

    Spatie Data Transfer Object

    Data transfer objects with batteries included

    Spatie Data Transfer Object is a PHP package that offers a strict and type-safe way to transfer data within applications. It ensures data consistency by enforcing declared types and immutability. DTOs are commonly used to encapsulate and validate data structures, especially in service layers and APIs, helping improve code clarity and reducing the risk of bugs from unexpected data shapes.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 14
    Stringy

    Stringy

    A PHP string manipulation library with multibyte support

    Stringy is a PHP library that provides a set of string manipulation functions inspired by the String class in other programming languages. It offers a fluent interface for common string operations, including case conversion, trimming, and formatting. Stringy is designed to simplify string handling by providing a consistent and expressive API, making it a valuable tool for text processing in PHP applications.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 15
    Symfony Service Contracts

    Symfony Service Contracts

    A set of service abstractions extracted out of the Symfony components

    Symfony Service Contracts is a set of standardized interfaces for defining and using services in Symfony applications. It ensures that services are decoupled from their implementations, promoting flexibility and interoperability. By defining common contracts for service behavior, developers can build modular and reusable components, making the codebase more maintainable and robust.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 16
    Termwind

    Termwind

    It's like Tailwind CSS, but for the PHP command-line applications

    Termwind is a PHP package that allows developers to build beautiful command-line interfaces (CLIs) using a Tailwind CSS-inspired syntax. It simplifies the process of creating styled output in terminal applications by providing utility classes for colors, alignment, borders, and spacing. Termwind is designed for developers who want to build interactive and visually appealing CLI tools.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 17
    e107

    e107

    e107 Bootstrap CMS (Content Management System) v2 with PHP, MySQL

    e107 is a free and open-source content management system (CMS) that allows you to manage and publish your content online with ease. Developers can save time in building websites and powerful online applications. Users can avoid programming completely! Blogs, websites, intranets – e107 does it all. Make blog posts and static pages for your site with the click of a button. A forum that allows you to have multiple discussion areas on your website. Sub-category areas too. Offer thousands of digital content downloads to your users with searchable structured content. Allows users to register on your website with their email address or social network account. Limit content to specific users. Make your site "members only" if you wish. Group users for specific access rights and permissions. Built with PHP, MySQL, HTML5, Twitter Bootstrap, jQuery and all the goodies you love.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 18
    ramsey/uuid

    ramsey/uuid

    A PHP library for generating universally unique identifiers (UUIDs)

    ramsey/uuid is a PHP library for generating and working with RFC 4122 version 1, 2, 3, 4, and 5 universally unique identifiers (UUID). ramsey/uuid also supports optional and non-standard features, such as version 6 UUIDs, GUIDs, and other approaches for encoding/decoding UUIDs. A universally unique identifier, or UUID, is a 128-bit unsigned integer, usually represented as a hexadecimal string split into five groups with dashes. The most widely-known and used types of UUIDs are defined by RFC 4122. The probability of duplicating a UUID is close to zero, so they are a great choice for generating unique identifiers in distributed systems. UUIDs can also be stored in binary format, as a string of 16 bytes. The JSON extension is normally enabled by default, but it is possible to disable it. Other required extensions include PCRE and SPL. These standard extensions cannot be disabled without patching PHP’s build system and/or C sources.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 19
    reCAPTCHA

    reCAPTCHA

    PHP client library for reCAPTCHA, a free service

    reCAPTCHA is Google’s human-verification system that helps websites distinguish real users from automated abuse while keeping friction low for legitimate traffic. The project bundles client and server examples, language-specific helpers, and documentation patterns for integrating reCAPTCHA v2 and v3 flows into web forms and APIs. Its design philosophy is “risk-based”: most users pass silently based on behavioral signals, while higher-risk interactions may be challenged with an image, checkbox, or other verification step. Site owners register keys, embed a small client script, and verify tokens on the server to protect actions like sign-ups, logins, and form submissions. The ecosystem supports mobile and enterprise variants, but the repo focuses on common web integrations and best practices for verifying the token securely. Deployed correctly, reCAPTCHA reduces credential stuffing, bot sign-ups, and scraping without degrading the experience for typical users.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 20
    CloudSchool

    CloudSchool

    Another School Management System

    Another School Management System was built with Laravel and PHP 7.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 21
    DeviceDetector

    DeviceDetector

    The Universal Device Detection library will parse any User Agent

    Device Detector is a PHP library for parsing user-agent strings to detect devices, operating systems, and browsers, widely used in analytics and tracking.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 22
    Doctrine Lexer

    Doctrine Lexer

    Base library for a lexer that can be used in Recursive Descent Parsers

    PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers. This lexer is used in Doctrine Annotations and in Doctrine ORM (DQL). To write your own parser you just need to extend Doctrine\Common\Lexer\AbstractLexer and implement three abstract methods. These methods define the lexical catchable and non-catchable patterns and a method for returning the type of a token and filtering the value if necessary. The Lexer is responsible for giving you an API to walk across a string one character at a time and analyze the type of each character, value and position of each token in the string. The low level API of the lexer is pretty simple. The setInput($input) option sets the input data to be tokenized. The Lexer is immediately reset and the new input tokenized. And the option glimpse(), peeks at the next token, returns it and immediately resets the peek.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 23
    Hateoas

    Hateoas

    A PHP library to support implementing representations

    A PHP library to support implementing representations for HATEOAS REST web services.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 24
    Hoa\Ruler

    Hoa\Ruler

    The Hoa\Ruler library.

    Hoa is a modular, extensible, and structured set of PHP libraries. Moreover, Hoa aims to be a bridge between the industrial and research worlds. This library allows to manipulate a rule engine. Rules can be written by using a dedicated language, very close to SQL. Therefore, they can be written by a user and saved in a database.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 25
    IMAP Library for Laravel

    IMAP Library for Laravel

    Integrate both the native php-imap module and an extended custom imap

    Laravel IMAP is an easy way to integrate both the native php-imap module and an extended custom imap protocol into your Laravel app. This enables your app to not only respond to new emails but also allows it to read and parse existing mails and much more. PHP-IMAP is a wrapper for common IMAP communication without the need to have the "native" php-imap module installed/enabled. The IMAP protocol is completely integrated and therefore supports all IMAP commands including the IDLE operation and the "new" oAuth authentication process. You can enable the php-imap module in order to handle edge cases, and improve message decoding quality, and is required if you want to use legacy protocols such as pop3.
    Downloads: 2 This Week
    Last Update:
    See Project
MongoDB Logo MongoDB