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.

  • Turn traffic into pipeline and prospects into customers Icon
    Turn traffic into pipeline and prospects into customers

    For account executives and sales engineers looking for a solution to manage their insights and sales data

    Docket is an AI-powered sales enablement platform designed to unify go-to-market (GTM) data through its proprietary Sales Knowledge Lake™ and activate it with intelligent AI agents. The platform helps marketing teams increase pipeline generation by 15% by engaging website visitors in human-like conversations and qualifying leads. For sales teams, Docket improves seller efficiency by 33% by providing instant product knowledge, retrieving collateral, and creating personalized documents. Built for GTM teams, Docket integrates with over 100 tools across the revenue tech stack and offers enterprise-grade security with SOC 2 Type II, GDPR, and ISO 27001 compliance. Customers report improved win rates, shorter sales cycles, and dramatically reduced response times. Docket’s scalable, accurate, and fast AI agents deliver reliable answers with confidence scores, empowering teams to close deals faster.
    Learn More
  • 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
  • 1

    PHP Simple HTML DOM Parser

    A php based DOM parser.

    A simple PHP HTML DOM parser written in PHP5+, supports invalid HTML, and provides a very easy way to find, extract and modify the HTML elements of the dom. jquery like syntax allow sophisticated finding methods for locating the elements you care about.
    Leader badge
    Downloads: 1,675 This Week
    Last Update:
    See Project
  • 2
    PHPMailer

    PHPMailer

    The classic email sending library for PHP

    PHPMailer – A full-featured email creation and transfer class for PHP. Support for UTF-8 content and 8bit, base64, binary, and quoted-printable encodings. SMTP authentication with LOGIN, PLAIN, CRAM-MD5, and XOAUTH2 mechanisms over SMTPS and SMTP+STARTTLS transports. Validates email addresses automatically. Many PHP developers need to send email from their code. The only PHP function that supports this directly is mail(). However, it does not provide any assistance for making use of popular features such as encryption, authentication, HTML messages, and attachments. Formatting email correctly is surprisingly difficult. There are myriad overlapping (and conflicting) standards, requiring tight adherence to horribly complicated formatting and encoding rules – the vast majority of code that you'll find online that uses the mail() function directly is just plain wrong, if not unsafe!
    Downloads: 159 This Week
    Last Update:
    See Project
  • 3
    Dompdf

    Dompdf

    HTML to PDF converter for PHP

    dompdf is an HTML to PDF converter. At its heart, dompdf is (mostly) a CSS 2.1 compliant HTML layout and rendering engine written in PHP. It is a style-driven renderer, it will download and read external stylesheets, inline style tags, and the style attributes of individual HTML elements. It also supports most presentational HTML attributes. PDF rendering is currently provided either by PDFLib or by a bundled version the R&OS CPDF class written by Wayne Munro. (Some important changes have been made to the R&OS class, however). In order to use PDFLib with dompdf, the PDFLib PECL extension is required. Using PDFLib improves performance and reduces the memory requirements of dompdf somewhat, while the R&OS CPDF class, though slightly slower, eliminates any dependencies on external PDF libraries.
    Downloads: 109 This Week
    Last Update:
    See Project
  • 4
    mPDF

    mPDF

    PHP library generating PDF files from UTF-8 encoded HTML

    mPDF is a PHP library that generates PDF files from UTF-8 encoded HTML. The original author, Ian Back, wrote mPDF to output PDF files ‘on-the-fly’ from his website, handling different languages. It is slower than the original scripts e.g. HTML2FPDF and produces larger files when using Unicode fonts, but support for CSS styles etc. and has been much enhanced. Supports almost all languages including RTL (Arabic and Hebrew), and CJK (Chinese-Japanese-Korean). Nested block-level elements (e.g. P, DIV) including margins, borders, padding, line height, background colors, etc. Right-to-left languages are supported, with automatic detection of RTL characters within a document. Transposes tables, lists, text justification, and table cell alignment, as well as a full-text reversal for RTL characters. Automatically detects non-RTL characters and displays these in the original order.
    Downloads: 81 This Week
    Last Update:
    See Project
  • Failed Payment Recovery for Subscription Businesses Icon
    Failed Payment Recovery for Subscription Businesses

    For subscription companies searching for a failed payment recovery solution to grow revenue, and retain customers.

    FlexPay’s innovative platform uses multiple technologies to achieve the highest number of retained customers, resulting in reduced involuntary churn, longer life span after recovery, and higher revenue. Leading brands like LegalZoom, Hooked on Phonics, and ClinicSense trust FlexPay to recover failed payments, reduce churn, and increase customer lifetime value.
    Learn More
  • 5
    PhpSpreadsheet

    PhpSpreadsheet

    A pure PHP library for reading and writing spreadsheet files

    PhpSpreadsheet is a library written in pure PHP and offers a set of classes that allow you to read and write various spreadsheet file formats such as Excel and LibreOffice Calc. PhpSpreadsheet is a library written in pure PHP and offers a set of classes that allow you to read and write various spreadsheet file formats such as Excel and LibreOffice Calc. Support for PHP versions will only be maintained for a period of six months beyond the end of life of that PHP version. Use composer to install PhpSpreadsheet into your project. Or also download the documentation and samples if you plan to use them. A good way to get started is to run some of the samples. Don't forget to download them via --prefer-source composer flag. And then serve them via PHP built-in webserver. PhpSpreadsheet relies on Composer autoloader. So before working with PhpSpreadsheet in standalone, be sure to run composer install.
    Downloads: 72 This Week
    Last Update:
    See Project
  • 6
    PHPExcel

    PHPExcel

    Library offering classes to read from and write to spreadsheet formats

    PHPExcel is a comprehensive library for reading, writing, and manipulating Excel spreadsheets in PHP, supporting multiple formats like XLS, XLSX, CSV, and more. Developers can create complex spreadsheets with styled cells, formulas, charts, images, and multiple sheets programmatically. It also supports reading existing files, iterating through cells, applying data validation, and converting between formats. Because it handles the details of Excel file structures—including relationships, themes, and various metadata—users don’t need to manage proprietary file internals themselves. The API allows for cell access using row/column indexes or column letters, batch updates, and streaming writes to reduce memory usage. As a mature library, it’s used in reporting, migrations, invoice generation, and any scenario where dynamic, server-side spreadsheet generation is needed in PHP applications.
    Downloads: 28 This Week
    Last Update:
    See Project
  • 7
    ProxiTok

    ProxiTok

    Open source alternative frontend for TikTok made using PHP

    ProxiTok is a self-hosted, privacy-respecting alternative frontend for TikTok, built to let users browse TikTok content without tracking or ads. It acts as a proxy that fetches and displays TikTok videos through a cleaner interface, enhancing user privacy and allowing developers to build integrations without using TikTok's official SDK. ProxiTok supports basic features like search, profiles, video playback, and hashtags.
    Downloads: 24 This Week
    Last Update:
    See Project
  • 8
    Directory Lister

    Directory Lister

    Directory Lister exposes the contents of any web folder

    Directory Lister is a simple, self-hosted PHP application that lets users browse and share the contents of directories over the web. It creates a web interface to list files and folders on a server, complete with download links, breadcrumb navigation, and optional themes. Ideal for file sharing and public repositories, it requires no database and can be deployed quickly on any PHP-compatible server.
    Downloads: 16 This Week
    Last Update:
    See Project
  • 9
    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: 16 This Week
    Last Update:
    See Project
  • The Most Powerful Software Platform for EHSQ and ESG Management Icon
    The Most Powerful Software Platform for EHSQ and ESG Management

    Addresses the needs of small businesses and large global organizations with thousands of users in multiple locations.

    Choose from a complete set of software solutions across EHSQ that address all aspects of top performing Environmental, Health and Safety, and Quality management programs.
    Learn More
  • 10
    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: 15 This Week
    Last Update:
    See Project
  • 11
    PHPWord

    PHPWord

    PHP library for reading and writing word processing documents

    PHPWord is a library written in pure PHP that provides a set of classes to write to and read from different document file formats. The current version of PHPWord supports Microsoft Office Open XML (OOXML or OpenXML), OASIS Open Document Format for Office Applications (OpenDocument or ODF), and Rich Text Format (RTF). PHPWord is an open source project licensed under the terms of LGPL version 3. PHPWord is aimed to be a high quality software product by incorporating continuous integration and unit testing. Set document properties, e.g. title, subject, and creator. Create document sections with different settings, e.g. portrait/landscape, page size, and page numbering. Create header and footer for each sections, set default font type, font size, and paragraph style. Use UTF-8 and East Asia fonts/characters. Define custom font styles (e.g. bold, italic, color) and paragraph styles (e.g. centered, multicolumns, spacing) either as named style or inline in text.
    Downloads: 15 This Week
    Last Update:
    See Project
  • 12
    Carbon for DateTime

    Carbon for DateTime

    A simple PHP API extension for DateTime

    The easiest and recommended method to install Carbon is via composer. If you're using Laravel, Carbon is provided out of the box. You may now check our Laravel configuration and best-practices recommendations. If you're using Symfony, you may check our Symfony configuration and best-practices recommendations. Each version of Laravel has its own range of Carbon compatibility, you have to take 2.42.0 as the real used version, then pick an alias among versions Laravel supports. You may have other dependencies with other Carbon restrictions. To be sure an alias will be compatible with all of your current dependencies, you can choose the version of Carbon you have before upgrading to Carbon 2. The library also provides CarbonInterface interface extends DateTimeInterface and JsonSerializable, CarbonInterval class extends DateInterval, CarbonTimeZone class extends DateTimeZone and CarbonPeriod class polyfills DatePeriod.
    Downloads: 11 This Week
    Last Update:
    See Project
  • 13
    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: 11 This Week
    Last Update:
    See Project
  • 14
    SonataAdminBundle

    SonataAdminBundle

    The missing Symfony Admin Generator

    SonataAdminBundle is a powerful Symfony bundle that enables developers to create customizable admin panels for managing data in web applications. It provides a ready-to-use interface that can handle complex forms, CRUD operations, and entity relationships. Designed with extensibility in mind, SonataAdminBundle supports integration with other Symfony bundles and offers a solid foundation for building scalable back-office systems.
    Downloads: 10 This Week
    Last Update:
    See Project
  • 15
    Symfony ErrorHandler

    Symfony ErrorHandler

    Provides tools to manage errors and ease debugging PHP code

    Symfony ErrorHandler is a component that handles and logs PHP errors and exceptions in a structured way. It replaces PHP's default error handling with a more user-friendly and informative system. The component provides detailed error pages for development environments while ensuring minimal disruption in production. It integrates seamlessly with Symfony applications and supports custom error pages.
    Downloads: 10 This Week
    Last Update:
    See Project
  • 16
    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: 10 This Week
    Last Update:
    See Project
  • 17
    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: 9 This Week
    Last Update:
    See Project
  • 18
    MoneyPHP

    MoneyPHP

    PHP implementation of Fowler's Money pattern

    MoneyPHP is a PHP library for managing and formatting monetary values. It provides a robust framework for handling currency calculations, formatting amounts, and managing different currency types. The library ensures that financial transactions and calculations are handled accurately without floating-point errors, making it ideal for financial applications and e-commerce platforms.
    Downloads: 9 This Week
    Last Update:
    See Project
  • 19
    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: 9 This Week
    Last Update:
    See Project
  • 20
    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: 9 This Week
    Last Update:
    See Project
  • 21
    ReactPHP Promise

    ReactPHP Promise

    Promises/A implementation for PHP.

    ReactPHP Promise is a PHP library that implements Promises/A+ for asynchronous programming. It allows developers to handle asynchronous operations in a structured and predictable way. ReactPHP Promise makes it easier to manage non-blocking tasks, such as HTTP requests or file I/O, by providing a chainable interface for handling success and error cases.
    Downloads: 9 This Week
    Last Update:
    See Project
  • 22
    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: 9 This Week
    Last Update:
    See Project
  • 23
    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: 9 This Week
    Last Update:
    See Project
  • 24
    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: 8 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: 8 This Week
    Last Update:
    See Project
  • Previous
  • You're on page 1
  • 2
  • 3
  • 4
  • 5
  • Next
MongoDB Logo MongoDB