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.

  • Our Free Plans just got better! | Auth0 Icon
    Our Free Plans just got better! | Auth0

    With up to 25k MAUs and unlimited Okta connections, our Free Plan lets you focus on what you do best—building great apps.

    You asked, we delivered! Auth0 is excited to expand our Free and Paid plans to include more options so you can focus on building, deploying, and scaling applications without having to worry about your security. Auth0 now, thank yourself later.
    Try free now
  • Cloud tools for web scraping and data extraction Icon
    Cloud tools for web scraping and data extraction

    Deploy pre-built tools that crawl websites, extract structured data, and feed your applications. Reliable web data without maintaining scrapers.

    Automate web data collection with cloud tools that handle anti-bot measures, browser rendering, and data transformation out of the box. Extract content from any website, push to vector databases for RAG workflows, or pipe directly into your apps via API. Schedule runs, set up webhooks, and connect to your existing stack. Free tier available, then scale as you need to.
    Explore 10,000+ tools
  • 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,754 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: 258 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: 167 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: 128 This Week
    Last Update:
    See Project
  • Dun and Bradstreet Risk Analytics - Supplier Intelligence Icon
    Dun and Bradstreet Risk Analytics - Supplier Intelligence

    Use an AI-powered solution for supply and compliance teams who want to mitigate costly supplier risks intelligently.

    Risk, procurement, and compliance teams across the globe are under pressure to deal with geopolitical and business risks. Third-party risk exposure is impacted by rapidly scaling complexity in domestic and cross-border businesses, along with complicated and diverse regulations. It is extremely important for companies to proactively manage their third-party relationships. An AI-powered solution to mitigate and monitor counterparty risks on a continuous basis, this cutting-edge platform is powered by D&B’s Data Cloud with 520M+ Global Business Records and 2B+ yearly updates for third-party risk insights. With high-risk procurement alerts and multibillion match points, D&B Risk Analytics leverages best-in-class risk data to help drive informed decisions. Perform quick and comprehensive screening, using intelligent workflows. Receive ongoing alerts of key business indicators and disruptions.
    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: 39 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: 25 This Week
    Last Update:
    See Project
  • 7
    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
  • 8
    Squire

    Squire

    A library of static Eloquent models for common fixture data

    Squire is a library of static Eloquent models for fixture data that is commonly needed in web applications, such as countries, currencies, and airports. It's based on the concepts of Caleb Porzio's Sushi package. Squire includes a validation rule for each model installed in your app. These allow you to easily validate user input to ensure that it matches a record in a specific model. Squire may not always have a model available for the information you require. In this case, you may want to create your own.
    Downloads: 10 This Week
    Last Update:
    See Project
  • 9
    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: 8 This Week
    Last Update:
    See Project
  • Incredable is the first DLT-secured platform that allows you to save time, eliminate errors, and ensure your organization is compliant all in one place. Icon
    Incredable is the first DLT-secured platform that allows you to save time, eliminate errors, and ensure your organization is compliant all in one place.

    For healthcare Providers and Facilities

    Incredable streamlines and simplifies the complex process of medical credentialing for hospitals and medical facilities, helping you save valuable time, reduce costs, and minimize risks. With Incredable, you can effortlessly manage all your healthcare providers and their credentials within a single, unified platform. Our state-of-the-art technology ensures top-notch data security, giving you peace of mind.
    Learn More
  • 10
    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: 7 This Week
    Last Update:
    See Project
  • 11
    Open Source Social Network

    Open Source Social Network

    Open Source Social Network (OSSN) is a social networking software

    Open Source Social Network (OSSN) is a social networking software written in PHP. It allows you to make a social networking website and helps your members build social relationships, with people who share similar professional or personal interests. It is available in 17 international languages. OSSN Licensed under the Open Source Social Network License (4.0) / Cryptographic Autonomy License version 1.0. OSSN must be installed into a directory writable by the webserver, or it will not function properly. For most Linux servers running Apache v2, making the parent directory writable is very simple. If you are not running Apache v2 or are using a different type of webserver, you'll need to read your system's documentation or speak to your server administrator before proceeding.
    Downloads: 7 This Week
    Last Update:
    See Project
  • 12
    Photobooth

    Photobooth

    A photobooth Web-Application for raspberry pi with gphoto2

    A Photobooth web interface for Raspberry Pi and Windows. Event-specific (e.g. wedding, birthday) config to show a symbol (e.g. heart) between some text on the start page. Green screen keying (chroma keying). Photo collage function: take 4 pictures in a row with or without interruption and let it generate a collage out of it. Save pictures with a Polaroid effect. Adjust take picture and print commands. And many more options to adjust and style the Photobooth for your personal needs.
    Downloads: 7 This Week
    Last Update:
    See Project
  • 13
    World Countries

    World Countries

    World countries in JSON, CSV, XML and Yaml

    This repository contains lists of world countries in JSON, CSV and XML. Each line contains the country. The data folder contains additional data such as the countries GeoJSON outlines and flags in SVG format. The data files provided in the dist directory include all available fields, but is also possible to build a custom version of the data with certain fields excluded. You can also choose to only generate some of the output formats. You can also exclude multiple fields.
    Downloads: 7 This Week
    Last Update:
    See Project
  • 14
    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: 6 This Week
    Last Update:
    See Project
  • 15
    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: 6 This Week
    Last Update:
    See Project
  • 16
    PHP Enum

    PHP Enum

    PHP Enum

    The myclabs/php-enum library is a PHP package that provides an object-oriented approach to implementing enumerations, inspired by the SPL's SplEnum. Before PHP 8.1 introduced native enum support, this library offered a structured way to define and use enumerated types, enhancing code readability and type safety. By extending the base Enum class, developers can create enums with defined constants, ensuring that variables only hold valid, predefined values. This approach helps prevent errors related to invalid values and makes the codebase more maintainable.
    Downloads: 6 This Week
    Last Update:
    See Project
  • 17
    Hateoas

    Hateoas

    A PHP library to support implementing representations

    A PHP library to support implementing representations for HATEOAS REST web services.
    Downloads: 5 This Week
    Last Update:
    See Project
  • 18
    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: 5 This Week
    Last Update:
    See Project
  • 19
    CMB2

    CMB2

    CMB2 is a developer's toolkit for building metaboxes

    CMB2 is a developer-friendly library for creating custom meta boxes, fields, and forms in WordPress. It allows developers to add metadata to posts, users, terms, and more through an intuitive API. CMB2 is highly flexible and provides a variety of field types, making it ideal for creating complex custom fields within WordPress. It is actively maintained and can be extended through hooks and filters.
    Downloads: 4 This Week
    Last Update:
    See Project
  • 20
    Doctrine Cache

    Doctrine Cache

    Doctrine Cache component

    Cache component extracted from the Doctrine Common project. PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others. Doctrine Cache is a library that provides an interface for caching data. PHP Doctrine Cache library is a popular cache implementation that supports many different drivers such as redis, memcache, apc, mongodb and others. Doctrine ships with several common drivers that you can easily use. The ApcCache driver uses the apc_fetch, apc_exists, etc. functions that come with PHP so no additional setup is required in order to use it. The ApcuCache driver uses the apcu_fetch, apcu_exists, etc. functions that come with PHP so no additional setup is required in order to use it. The ArrayCache driver stores the cache data in PHPs memory and is not persisted anywhere.
    Downloads: 4 This Week
    Last Update:
    See Project
  • 21
    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: 4 This Week
    Last Update:
    See Project
  • 22
    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: 4 This Week
    Last Update:
    See Project
  • 23
    PHP Map

    PHP Map

    PHP arrays and collections made easy

    Aimeos/Map is a lightweight PHP collection utility that makes working with arrays and array-like data much easier and more expressive by offering a fluent, object-oriented interface inspired by jQuery and Laravel collections. It wraps standard PHP arrays in a “Map” object, letting developers chain powerful methods for creating, transforming, filtering, sorting, and aggregating data without verbose boilerplate code. This approach improves readability and maintainability when dealing with complex data manipulations, reducing the cognitive load of nested loops and conditional logic. Map also supports typical array operations like push, remove, and iteration alongside higher-level methods for grouping, mapping, and reducing values. Because it leverages familiar patterns, developers experienced with modern JS or Laravel will find it intuitive and lightweight enough to use in a wide range of PHP projects.
    Downloads: 4 This Week
    Last Update:
    See Project
  • 24
    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: 4 This Week
    Last Update:
    See Project
  • 25
    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: 4 This Week
    Last Update:
    See Project
  • Previous
  • You're on page 1
  • 2
  • 3
  • 4
  • 5
  • Next