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
  • Gen AI apps are built with MongoDB Atlas Icon
    Gen AI apps are built with MongoDB Atlas

    The database for AI-powered applications.

    MongoDB Atlas is the developer-friendly database used to build, scale, and run gen AI and LLM-powered apps—without needing a separate vector database. Atlas offers built-in vector search, global availability across 115+ regions, and flexible document modeling. Start building AI apps faster, all in one place.
    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,605 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: 210 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: 134 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: 124 This Week
    Last Update:
    See Project
  • Keep company data safe with Chrome Enterprise Icon
    Keep company data safe with Chrome Enterprise

    Protect your business with AI policies and data loss prevention in the browser

    Make AI work your way with Chrome Enterprise. Block unapproved sites and set custom data controls that align with your company's policies.
    Download Chrome
  • 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: 103 This Week
    Last Update:
    See Project
  • 6
    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: 29 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: 24 This Week
    Last Update:
    See Project
  • 8
    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: 17 This Week
    Last Update:
    See Project
  • 9
    PHP-AMQPLib

    PHP-AMQPLib

    The most widely used PHP client for RabbitMQ

    php-amqplib is a pure PHP library for communicating with RabbitMQ, an open-source message broker. It implements the Advanced Message Queuing Protocol (AMQP) and allows developers to publish, consume, and manage messages between applications. The library is suitable for building distributed systems that require reliable message passing and is compatible with RabbitMQ and other AMQP brokers.
    Downloads: 12 This Week
    Last Update:
    See Project
  • Desktop and Mobile Device Management Software Icon
    Desktop and Mobile Device Management Software

    It's a modern take on desktop management that can be scaled as per organizational needs.

    Desktop Central is a unified endpoint management (UEM) solution that helps in managing servers, laptops, desktops, smartphones, and tablets from a central location.
    Learn More
  • 10
    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: 11 This Week
    Last Update:
    See Project
  • 11
    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: 9 This Week
    Last Update:
    See Project
  • 12
    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: 8 This Week
    Last Update:
    See Project
  • 13
    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: 8 This Week
    Last Update:
    See Project
  • 14
    Requests for PHP

    Requests for PHP

    Requests for PHP is a humble HTTP request library

    Requests is a HTTP library written in PHP, for human beings. It is roughly based on the API from the excellent Requests Python library. Requests is ISC Licensed (similar to the new BSD license) and has no dependencies, except for PHP 5.6+. Despite PHP’s use as a language for the web, its tools for sending HTTP requests are severely lacking. cURL has an interesting API, to say the least, and you can’t always rely on it being available. Sockets provide only low-level access and require you to build most of the HTTP response parsing yourself. Requests allows you to send HEAD, GET, POST, PUT, DELETE, and PATCH HTTP requests. You can add headers, form data, multipart files, and parameters with basic arrays, and access the response data in the same way. Requests uses cURL and fsockopen, depending on what your system has available, but abstracts all the nasty stuff out of your way, providing a consistent API.
    Downloads: 8 This Week
    Last Update:
    See Project
  • 15
    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: 5 This Week
    Last Update:
    See Project
  • 16
    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: 4 This Week
    Last Update:
    See Project
  • 17
    Jigsaw

    Jigsaw

    Simple static sites with Laravel’s Blade

    Jigsaw is a static site generator for PHP developers, created by Tighten. It provides a Laravel-inspired development environment for building static websites and documentation sites using Blade templates and Markdown content. Jigsaw is particularly suited for developers familiar with Laravel who want to create simple, fast, and maintainable sites.
    Downloads: 4 This Week
    Last Update:
    See Project
  • 18
    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: 4 This Week
    Last Update:
    See Project
  • 19
    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: 4 This Week
    Last Update:
    See Project
  • 20
    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: 23 This Week
    Last Update:
    See Project
  • 21
    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
  • 22
    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: 3 This Week
    Last Update:
    See Project
  • 23
    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: 3 This Week
    Last Update:
    See Project
  • 24
    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: 3 This Week
    Last Update:
    See Project
  • 25
    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: 2 This Week
    Last Update:
    See Project
  • Previous
  • You're on page 1
  • 2
  • 3
  • 4
  • 5
  • Next