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.

  • $300 Free Credits to Build on Google Cloud Icon
    $300 Free Credits to Build on Google Cloud

    New customers can spin up VMs, build with AI, and query data at no cost.

    Put your $300 in credit toward real workloads, then keep building with free monthly usage for 20+ products. No commitment and no charge until you upgrade.
    Start Free
  • Paessler: Easy to Use With Enterprise Power. Free Trial Icon
    Paessler: Easy to Use With Enterprise Power. Free Trial

    A low-code dashboard makes monitoring intuitive for any admin, while scripting and custom sensors give experts full control.

    You shouldn't have to choose between a monitoring tool that's easy to use and one that's powerful enough for a complex environment. PRTG's low-code interface lets any admin build dashboards, set alerts and monitor devices without scripting, while custom sensors and full API access are there when your team needs deeper control. One platform, no compromise. Download a free 30-day trial now.
    Get Free Download
  • 1
    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: 3 This Week
    Last Update:
    See Project
  • 2
    Devilbox

    Devilbox

    A modern Docker LAMP stack and MEAN stack for local development

    Devilbox is a modern and flexible LAMP and MEAN stack environment powered by Docker. It provides a pre-configured, customizable setup for web development, supporting a wide range of services like Apache, Nginx, PHP, MySQL, and MongoDB. Devilbox is designed to be a one-stop solution for developers who need a consistent and portable development environment, eliminating the need to manually configure servers.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 3
    PSR-7

    PSR-7

    PSR-7 HTTP message library

    This repository contains a full PSR-7 message implementation, several stream decorators, and some helpful functionality like query string parsing. This package comes with a number of stream implementations and stream decorators. Reads from multiple streams, one after the other. Provides a buffer stream that can be written to fill a buffer, and read from to remove bytes from the buffer. This stream returns a "hwm" metadata value that tells upstream consumers what the configured high water mark of the stream is, or the maximum preferred size of the buffer. The CachingStream is used to allow seeking over previously read bytes on non-seekable streams. This can be useful when transferring a non-seekable entity body fails due to needing to rewind the stream (for example, resulting from a redirect). Data that is read from the remote stream will be buffered in a PHP temp stream so that previously read bytes are cached first in memory, then on disk.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 4
    Symfony Validator

    Symfony Validator

    Provides tools to validate values

    Symfony Validator is a PHP component designed to validate data structures using a flexible and extensible validation framework. It supports a wide range of built-in validation constraints and allows developers to create custom validation rules. The Validator component is commonly used for form validation, data integrity checks, and input sanitation, integrating seamlessly with Symfony applications.
    Downloads: 3 This Week
    Last Update:
    See Project
  • MongoDB Atlas runs apps anywhere Icon
    MongoDB Atlas runs apps anywhere

    Deploy in 115+ regions with the modern database for every enterprise.

    MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
    Start Free
  • 5
    Tokenizer

    Tokenizer

    A small library for converting tokenized PHP source code into XML

    A small library for converting tokenized PHP source code into XML. You can add this library as a local, per-project dependency to your project using Composer. If you only need this library during development, for instance to run your project's test suite, then you should add it as a development-time dependency.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 6
    Web Push PHP

    Web Push PHP

    Web Push library for PHP

    WebPush-PHP is a server-side library to send Web Push notifications to browsers using the W3C Push API standard. It supports encrypted push messages and is compatible with service workers in major browsers like Chrome and Firefox.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 7
    Whoops

    Whoops

    PHP errors for cool kids

    Whoops is a PHP library that improves the debugging experience by handling uncaught exceptions and presenting beautiful error pages. Instead of a cryptic “fatal error,” Whoops catches the exception and renders a detailed stack trace with syntax-highlighted code snippets, variable values, and clickable frames to navigate between calls. It can be integrated into frameworks or standalone scripts so developers consistently get readable, informative pages during development. Beyond error pages, Whoops supports custom handlers, logging, and filtering so exceptions can be gracefully transformed or reported. Because it only activates in development by default, it avoids revealing internal application state in production. Developers use Whoops to shorten debugging cycles, reduce the frustration of tracing issues, and maintain cleaner error surfaces across applications.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 8
    libtld

    libtld

    Extract the TLD of any, world wide, URI.

    The libtld is used to extract the TLD from any URI from anywhere in the world. The library recognizes all TLDs, whatever the number of levels the TLD includes (i.e. .com has one, .au has up to 4 such as .schools.nsw.edu.au) this library will be capable of extracting it. The library is for C, C++, and PHP.
    Downloads: 36 This Week
    Last Update:
    See Project
  • 9
    Google Translate PHP

    Google Translate PHP

    Free Google Translate API PHP Package

    A simple and effective PHP library for translating text using Google Translate without needing an API key. It allows developers to integrate real-time translation features into their applications with minimal setup and supports multiple languages, leveraging Google Translate’s unofficial endpoint.
    Downloads: 2 This Week
    Last Update:
    See Project
  • Go from Code to Production URL in Seconds Icon
    Go from Code to Production URL in Seconds

    Cloud Run deploys apps in any language instantly. Scales to zero. Pay only when code runs.

    Skip the Kubernetes configs. Cloud Run handles HTTPS, scaling, and infrastructure automatically. Two million requests free per month.
    Start Free
  • 10
    JWT

    JWT

    A simple library to work with JSON Web Token and JSON Web Signature

    lcobucci/jwt is a framework-agnostic PHP library that allows you to issue, parse, and validate JSON Web Tokens based on the RFC 7519. The package is available on Packagist, you can install it using Composer. A simple library to work with JSON Web Token and JSON Web Signature based on RFC 7519. Once the library has been installed, you are able to issue and parse JWTs. To reduce the chance of having flaky tests on your test suite, the facade supports the usage of a clock object. That allows passing an implementation that always returns the same point in time.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 11
    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: 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
    SMProxy

    SMProxy

    Swoole MySQL Proxy

    SMProxy is a lightweight, high-performance MySQL proxy developed in PHP using the Swoole extension. It is designed to address the lack of native connection pooling in PHP, which can lead to database connection bottlenecks under high concurrency. By implementing its own connection pool and supporting read/write separation, SMProxy enhances database operation efficiency and stability. It is compatible with MySQL versions 4.1 through 8.0 and adheres to the MySQL native protocol, making it a versatile middleware solution for various applications.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 14
    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: 2 This Week
    Last Update:
    See Project
  • 15
    cde4php - Cross Database Engine for PHP

    cde4php - Cross Database Engine for PHP

    Uniform Database Abstraction for PHP Development

    Debby has replaced CDE in the Tina4Stack, you may want to check it out at http://tina4.com CDE is a PHP class which implements the general database functions in PHP and provides a common SQL platform for php development where developers change their databases but not their code. Supports Firebird, MySQL,Oracle,SQLite, MSSQL(both drivers),CUBRID,ODBC. CDE now supports date uniformity, param passing & BLOB handling across all the databases supported. CDE is not a replacement for PDO, in fact we may implement PDO in CDE to standardize PDO results and calls. Some PDO drivers are still regarded as EXPERIMENTAL on PHP website, so use with caution. Feel free to suggest any features you wish to be added or submit a bug report with the tracker
    Downloads: 15 This Week
    Last Update:
    See Project
  • 16
    CodeIgniter RestServer

    CodeIgniter RestServer

    RESTful server implementation for CodeIgniter

    CodeIgniter RestServer is a fully RESTful server implementation for CodeIgniter using one library, one config file and one controller. CodeIgniter Rest Server is available on Packagist (using semantic versioning), and installation via composer is the recommended way to install Codeigniter Rest Server. Note that you will need to copy rest.php to your config directory (e.g. application/config)
    Downloads: 1 This Week
    Last Update:
    See Project
  • 17
    DomQuery

    DomQuery

    PHP library for easy 'jQuery like' DOM traversing and manipulation

    DomQuery is a PHP library that allows you to easily traverse and modify the DOM (HTML/XML). As a library, it aims to provide 'jQuery-like' access to the PHP DOMDocument class.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 18
    LLPhant

    LLPhant

    A comprehensive PHP Generative AI Framework

    LLPhant is a PHP-based generative AI framework designed to bring large language model capabilities into modern PHP applications with a structure inspired by frameworks like LangChain. It provides developers with a set of abstractions for building AI-powered features such as chat systems, retrieval pipelines, and automated workflows while remaining simple enough to integrate into existing Symfony or Laravel projects. The framework focuses on usability by offering straightforward APIs for tasks like embeddings, question answering, and vector search, which are commonly required in real-world applications. It includes support for vector stores, enabling developers to build retrieval-augmented generation systems using structured or unstructured data. LLPhant also allows integration with external services and tools, making it possible to extend model capabilities beyond text generation into actionable workflows.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 19
    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: 1 This Week
    Last Update:
    See Project
  • 20
    Ollama-Laravel Package

    Ollama-Laravel Package

    Ollama-Laravel is a Laravel package providing seamless integration

    Ollama-Laravel Package is a PHP package designed to integrate local large language models into Laravel applications through a clean and idiomatic interface. It abstracts the Ollama API into a developer-friendly facade, allowing Laravel developers to interact with models using familiar patterns such as service containers, configuration files, and fluent method chaining. The package supports a wide range of AI capabilities including text generation, chat-based interactions, embeddings, and multimodal vision analysis, making it suitable for both simple features and complex AI-driven systems. It also includes support for reasoning models and function calling, enabling developers to build more advanced workflows where models can trigger tools or structured actions. Real-time streaming responses are supported, allowing applications to deliver incremental outputs for better user experience.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 21
    Omnipay

    Omnipay

    A framework agnostic, multi-gateway payment processing library

    Omnipay is a payment processing library for PHP. It has been designed based on ideas from Active Merchant, plus experience implementing dozens of gateways for CI Merchant. It has a clear and consistent API, is fully unit tested, and even comes with an example application to get you started. You can learn one API and use it in multiple projects using different payment gateways. If you need to change payment gateways you won’t need to rewrite your code. Most official PHP payment gateway libraries are a mess. Most payment gateways have exceptionally poor documentation. So, why use Omnipay instead of a gateway’s official PHP package/example code? Because you are writing a shopping cart and need to support multiple gateways.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 22
    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: 1 This Week
    Last Update:
    See Project
  • 23
    Spatie Crawler

    Spatie Crawler

    An easy to use, powerful crawler implemented in PHP

    Spatie Crawler is a PHP library that allows developers to crawl websites and extract information efficiently. It can be used for web scraping, link checking, or automated testing of web pages. The library is simple to use and supports customizable crawling strategies, including controlling crawl depth and handling redirects. It’s suitable for building crawlers that navigate large or dynamically generated websites.
    Downloads: 1 This Week
    Last Update:
    See Project
  • 24
    Flat-file SQL (fSQL) is a set of classes available in PHP that allows users without SQL database servers to select and manipulate flat-file data using SQL queries. fSQL is designed to support as many SQL queries and features as it can.
    Downloads: 5 This Week
    Last Update:
    See Project
  • 25
    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: 13 This Week
    Last Update:
    See Project