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.

  • Gemini 3 and 200+ AI Models on One Platform Icon
    Gemini 3 and 200+ AI Models on One Platform

    Access Google's best plus Claude, Llama, and Gemma. Fine-tune and deploy from one console.

    Build generative AI apps with Vertex AI. Switch between models without switching platforms.
    Start Free
  • Try Google Cloud Risk-Free With $300 in Credit Icon
    Try Google Cloud Risk-Free With $300 in Credit

    No hidden charges. No surprise bills. Cancel anytime.

    Use your credit across every product. Compute, storage, AI, analytics. When it runs out, 20+ products stay free. You only pay when you choose to.
    Start Free
  • 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,705 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: 177 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: 108 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
  • Stop Storing Third-Party Tokens in Your Database Icon
    Stop Storing Third-Party Tokens in Your Database

    Auth0 Token Vault handles secure token storage, exchange, and refresh for external providers so you don't have to build it yourself.

    Rolling your own OAuth token storage can be a security liability. Token Vault securely stores access and refresh tokens from federated providers and handles exchange and renewal automatically. Connected accounts, refresh exchange, and privileged worker flows included.
    Try Auth0 for Free
  • 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: 59 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: 22 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: 16 This Week
    Last Update:
    See Project
  • 8
    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.
    Leader badge
    Downloads: 56 This Week
    Last Update:
    See Project
  • 9
    Nette PHP Generator

    Nette PHP Generator

    Generates neat PHP code for you. Supports new PHP 8.4 features

    Nette PHP Generator is a powerful library that allows developers to generate PHP code programmatically. It is commonly used for code generation tasks like scaffolding, automated class creation, and dynamic configuration. The generator ensures that the output is valid, formatted PHP code, making it ideal for projects that require dynamic source code manipulation.
    Downloads: 6 This Week
    Last Update:
    See Project
  • AI-generated apps that pass security review Icon
    AI-generated apps that pass security review

    Stop waiting on engineering. Build production-ready internal tools with AI—on your company data, in your cloud.

    Retool lets you generate dashboards, admin panels, and workflows directly on your data. Type something like “Build me a revenue dashboard on my Stripe data” and get a working app with security, permissions, and compliance built in from day one. Whether on our cloud or self-hosted, create the internal software your team needs without compromising enterprise standards or control.
    Try Retool free
  • 10
    PHP XLSX Writer

    PHP XLSX Writer

    Lightweight XLSX Excel Spreadsheet Writer in PHP

    A fast and memory-efficient PHP library for writing XLSX (Excel) files. It supports large datasets and is ideal for exporting tabular data without using high-level libraries like PHPExcel, providing an efficient alternative for lightweight data export.
    Downloads: 5 This Week
    Last Update:
    See Project
  • 11
    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: 5 This Week
    Last Update:
    See Project
  • 12
    Ansible Examples

    Ansible Examples

    A few starter examples of ansible playbooks, to show features

    This repository collects practical, real-world examples of using Ansible to automate infrastructure, deployments, and configurations. Each directory demonstrates a specific use case—ranging from setting up web servers, load balancers, and databases to orchestrating multi-tier applications in cloud environments. The examples highlight common Ansible practices such as organizing inventories, writing reusable playbooks, using roles, and handling variables and templates. They’re designed to be adapted directly into your own infrastructure or to serve as reference blueprints when learning how to structure automation projects. Whether you’re managing a handful of servers or deploying at scale, this repo provides starting points that illustrate how Ansible can streamline repetitive operational tasks.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 13
    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
  • 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: 3 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: 3 This Week
    Last Update:
    See Project
  • 16
    Laravel Socialite

    Laravel Socialite

    Laravel wrapper around OAuth 1 & OAuth 2 libraries

    Laravel Socialite provides an expressive, fluent interface to OAuth authentication with Facebook, Twitter, Google, LinkedIn, GitHub, GitLab and Bitbucket. It handles almost all of the boilerplate social authentication code you are dreading writing. Laravel Socialite provides an expressive, fluent interface to OAuth authentication with Facebook, Twitter, Google, LinkedIn, GitHub, GitLab and Bitbucket. It handles almost all of the boilerplate social authentication code you are dreading writing. To get started with Socialite, use the Composer package manager to add the package to your project's dependencies. When upgrading to a new major version of Socialite, it's important that you carefully review the upgrade guide. Before using Socialite, you will need to add credentials for the OAuth providers your application utilizes.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 17
    Mobile Detect

    Mobile Detect

    Mobile_Detect is a lightweight PHP class for detecting mobile devices

    Mobile-Detect is a lightweight PHP library that inspects the HTTP user agent string and HTTP headers to detect whether a request comes from a mobile, tablet, or desktop device. It includes a rich set of detection rules covering device brands, operating systems, and browser engines so developers can tailor responses (views, assets, or layouts) based on client form factor. Its API is simple: isMobile(), isTablet(), or deviceFamily() methods make branching logic intuitive. The library is used in server-rendered PHP apps, CMS themes, and frameworks to serve mobile-friendly templates or redirect users to mobile versions. Because it is pattern-driven and optimized for fast matching, it adds minimal runtime overhead to request handling. By abstracting away the complexity of UA sniffing, Mobile-Detect helps teams gracefully support multi-device clients without duplicating detection logic.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 18
    PHP-SVG-Lib

    PHP-SVG-Lib

    SVG file parsing / rendering library

    php-svg-lib is a PHP library designed for parsing and rendering SVG files. It provides functionalities to rasterize SVG content to various surfaces, such as images or PDFs, and is utilized by projects like Dompdf for SVG rendering within PDF documents.​
    Downloads: 3 This Week
    Last Update:
    See Project
  • 19
    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: 3 This Week
    Last Update:
    See Project
  • 20
    SimplePie

    SimplePie

    A simple Atom/RSS parsing library for PHP

    SimplePie is a very fast and easy-to-use feed parser, written in PHP, that puts the 'simple' back into 'really simple syndication. Flexible enough to suit beginners and veterans alike, SimplePie is focused on speed, ease of use, compatibility, and standards compliance. SimplePie is currently maintained by Malcolm Blaney. Get easy access to SimplePie directly from your web browser! We've worked extra hard to ensure that SimplePie is easy to use and easy to understand. That being said, it never hurts to get a little help to speed things up! We've got a collection of tips, tricks, tutorials, and screencasts to help you along the way! Looking to integrate SimplePie into your blogs, wikis, forums, or other sites? The SimplePie Community has created several plugins that allow you to use SimplePie with all sorts of other software! Check our SimplePie Plugins page for a list of what we're aware of.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 21
    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
  • 22
    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: 2 This Week
    Last Update:
    See Project
  • 23
    DO180-apps

    DO180-apps

    DO180 Repository for Sample Applications

    DO180-apps is an open source repository maintained by Red Hat Training that provides sample applications for the DO180 course, which focuses on container basics using Red Hat OpenShift. The repository includes multiple small applications written in different languages, such as Node.js, PHP, and simple front-end examples, designed to demonstrate containerization, deployment, and scaling on OpenShift. Learners use these apps to practice building, deploying, and managing workloads in a containerized environment. Each example is lightweight and structured to highlight specific OpenShift capabilities without unnecessary complexity. The repository plays a key role in hands-on labs and exercises for container training.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 24
    Jikan REST

    Jikan REST

    The REST API for Jikan

    Jikan REST is an unofficial RESTful API for MyAnimeList.net, providing access to anime, manga, and user data by scraping the website. It allows developers to integrate MyAnimeList data into their applications without relying on the official API. ​
    Downloads: 2 This Week
    Last Update:
    See Project
  • 25
    Manage newsletters in Laravel

    Manage newsletters in Laravel

    Manage Mailcoach and MailChimp newsletters in Laravel

    This package provides an easy way to integrate subscriptions to email lists of various email services.
    Downloads: 2 This Week
    Last Update:
    See Project
  • Previous
  • You're on page 1
  • 2
  • 3
  • 4
  • 5
  • Next
MongoDB Logo MongoDB