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.

  • The full-stack observability platform that protects your dataLayer, tags and conversion data Icon
    The full-stack observability platform that protects your dataLayer, tags and conversion data

    Stop losing revenue to bad data today. and protect your marketing data with Code-Cube.io.

    Code-Cube.io detects issues instantly, alerts you in real time and helps you resolve them fast. No manual QA. No unreliable data. Just data you can trust and act on.
    Learn More
  • Next-Gen Encryption for Post-Quantum Security | CLEAR by Quantum Knight Icon
    Next-Gen Encryption for Post-Quantum Security | CLEAR by Quantum Knight

    Lock Down Any Resource, Anywhere, Anytime

    CLEAR by Quantum Knight is a FIPS-140-3 validated encryption SDK engineered for enterprises requiring top-tier security. Offering robust post-quantum cryptography, CLEAR secures files, streaming media, databases, and networks with ease across over 30 modern platforms. Its compact design, smaller than a single smartphone image, ensures maximum efficiency and low energy consumption.
    Learn More
  • 1
    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
  • 2
    Brick\Math

    Brick\Math

    Arbitrary-precision arithmetic library for PHP

    Brick Math is a PHP library that provides arbitrary-precision arithmetic for integers, rational numbers, and decimal numbers. It is designed to overcome the limitations of PHP’s native number handling, especially for applications dealing with large numbers, financial calculations, or scientific computations. Brick Math complies with standards like IEEE 754 and avoids rounding errors inherent to floating-point arithmetic.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 3
    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
  • 4
    Crawler Detect

    Crawler Detect

    CrawlerDetect is a PHP class for detecting bots/crawlers/spiders

    Crawler Detect is a PHP library that detects bots, crawlers, and spiders by analyzing user-agent headers and comparing them against a constantly updated list of known crawlers. It's useful for analytics, rate-limiting, or displaying alternative content for automated tools. It is fast, lightweight, and easy to integrate into any PHP application.
    Downloads: 2 This Week
    Last Update:
    See Project
  • Rezku Point of Sale Icon
    Rezku Point of Sale

    Designed for Real-World Restaurant Operations

    Rezku is an all-inclusive ordering platform and management solution for all types of restaurant and bar concepts. You can now get a fully custom branded downloadable smartphone ordering app for your restaurant exclusively from Rezku.
    Learn More
  • 5
    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
  • 6
    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: 2 This Week
    Last Update:
    See Project
  • 7
    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: 2 This Week
    Last Update:
    See Project
  • 8
    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: 2 This Week
    Last Update:
    See Project
  • 9
    MathPHP

    MathPHP

    Powerful modern math library for PHP

    Math PHP is a library that brings advanced mathematical functions and data analysis capabilities to PHP applications. It covers a wide range of topics, including linear algebra, calculus, statistics, probability, and numerical analysis. Math PHP is designed for developers and data scientists who require precise and efficient mathematical computations in PHP, making it suitable for scientific computing and data processing.
    Downloads: 2 This Week
    Last Update:
    See Project
  • The AI workplace management platform Icon
    The AI workplace management platform

    Plan smart spaces, connect teams, manage assets, and get insights with the leading AI-powered operating system for the built world.

    By combining AI workflows, predictive intelligence, and automated insights, OfficeSpace gives leaders a complete view of how their spaces are used and how people work. Facilities, IT, HR, and Real Estate teams use OfficeSpace to optimize space utilization, enhance employee experience, and reduce portfolio costs with precision.
    Learn More
  • 10
    Nelmio Alice

    Nelmio Alice

    Expressive fixtures generator

    Nelmio Alice is a PHP library designed to generate complex data fixtures for testing and development environments. It uses YAML, XML, or PHP files to define fixture templates, making it easy to create realistic and varied data sets. Alice integrates well with Doctrine ORM, allowing developers to quickly populate databases with test data, making it especially useful for automated testing and staging environments.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 11
    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: 2 This Week
    Last Update:
    See Project
  • 12
    Payum

    Payum

    PHP Payment processing library

    Payum is a PHP payment processing library that abstracts and unifies payment gateway integrations across different services like PayPal, Stripe, and Authorize.Net. It offers a modular architecture that supports various gateways and payment flows including recurring payments, tokenized sessions, and secure callbacks. Payum is ideal for developers building custom e-commerce or billing solutions with multiple payment options.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 13
    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: 2 This Week
    Last Update:
    See Project
  • 14
    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: 2 This Week
    Last Update:
    See Project
  • 15
    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: 2 This Week
    Last Update:
    See Project
  • 16
    Swoole

    Swoole

    Coroutine-based concurrency library for PHP

    Build high-performance, scalable, concurrent TCP, UDP, Unix Socket, HTTP, WebSocket services with PHP and easy to use coroutine, fiber API. Write your next scalable async application server with PHP coroutine and PHP fiber API. Compared with other async programming frameworks or softwares such as Nginx, Tornado, Node.js, Swoole has the built-in PHP coroutine, fiber and async support, multiple threads I/O modules. You can use sync or async, coroutine, fiber API to write the applications or create thousands of light weight fibers within one Linux process. Swoole PHP network framework enhances the efficiency of development team. The network layer in Swoole is event-based and takes full advantage of the underlying epoll/kqueue implementation, making it really easy to serve millions of requests. Swoole 4.x uses a brand new engine kernel and now it has a full-time developer team, so we are entering an unprecedented period in PHP history which offers a unique possibility for rapid evolution.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 17
    Symfony Cache Contracts

    Symfony Cache Contracts

    A set of cache abstractions extracted out of the Symfony components

    Symfony Cache Contracts defines a set of interfaces that standardize cache operations in Symfony and other PHP applications. It provides abstraction for caching services, ensuring consistent interaction regardless of the underlying implementation. These contracts help decouple application logic from specific cache providers, enabling flexible caching strategies and easy integration with PSR-compliant tools.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 18
    Symfony Inflector

    Symfony Inflector

    Converts words between their singular and plural forms (English only)

    Symfony Inflector is a lightweight PHP component that provides tools for transforming English words between singular and plural forms. It is useful for dynamic naming, code generation, and building human-readable interfaces. The component includes simple, reliable inflection logic and integrates easily with other Symfony components or standalone PHP projects.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 19
    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: 2 This Week
    Last Update:
    See Project
  • 20
    Tony

    Tony

    An Elegant WordPress Theme Powered by Vue.js 2

    An Elegant WordPress Theme Based on Vue.js. Beautiful and elegant design, infinite loading, post quick-view. Post embedding, multiple post list styles, multiple page templates. Back-to-top button, better searching experience, automatic post index. Automatic Dark Mode, reading progress bar, markdown auto rendering. Built using Webpack & Scss, archive page, support Gutenberg editor.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 21
    ZipStream PHP

    ZipStream PHP

    PHP ZIP Streaming Library

    ZipStream-PHP is a library that allows you to dynamically create ZIP files on the fly without storing files on the server beforehand. It’s designed for streaming large ZIP archives directly to the browser or client, making it suitable for memory-efficient downloads.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 22
    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: 2 This Week
    Last Update:
    See Project
  • 23
    multiOTP open source

    multiOTP open source

    PHP strong authentication library, web interface & CLI, OATH certified

    multiOTP is a PHP class, a powerful command line utility and a web interface developed by SysCo systèmes de communication sa in order to provide a completely free and easy operating system independent server side implementation for strong two factors authentication solution. multiOTP supports hardware and software tokens with different One-Time Password algorithms like OATH/HOTP, OATH/TOTP and mOTP (Mobile-OTP). QRcode generation is also embedded in order to support provisioning of Google Authenticator software tokens. SMS code sending is currently implemented for several providers (ASPSMS, Clickatell and IntelliSMS). The data storage of the command line utility is by default flat files based in order to simplify deployment in a few minutes, but MySQL backend is supported too. multiOTP can be easily integrated in RADIUS servers like FreeRADIUS under Linux/Windows or TekRADIUS LT under Windows. multiOTP is also the engine of the credential provider multiOTP Credential Provider.
    Downloads: 43 This Week
    Last Update:
    See Project
  • 24
    Fast Artificial Neural Network Library is a free open source neural network library, which implements multilayer artificial neural networks in C with support for both fully connected and sparsely connected networks. Cross-platform execution in both fixed and floating point are supported. It includes a framework for easy handling of training data sets. It is easy to use, versatile, well documented, and fast. Bindings to more than 15 programming languages are available. An easy to read introduction article and a reference manual accompanies the library with examples and recommendations on how to use the library. Several graphical user interfaces are also available for the library.
    Downloads: 10 This Week
    Last Update:
    See Project
  • 25
    Brick\Money

    Brick\Money

    A money and currency library for PHP

    Brick\Money is a PHP library designed to provide precise and reliable handling of monetary values using arbitrary-precision arithmetic, ensuring accuracy in financial calculations of any scale. Built on top of the brick/math library, it avoids floating point errors by using exact decimal representations, making it suitable for applications where correctness is critical, such as accounting and financial services. The library supports ISO 4217 currency standards and includes comprehensive tools for working with currency units, conversions, and rounding strategies. It is designed to handle large numbers and complex operations without loss of precision, which is essential for enterprise-level financial systems. Brick\Money also emphasizes immutability, ensuring that operations return new objects rather than modifying existing ones, which improves predictability and safety in codebases.
    Downloads: 1 This Week
    Last Update:
    See Project