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.

  • AI-powered service management for IT and enterprise teams Icon
    AI-powered service management for IT and enterprise teams

    Enterprise-grade ITSM, for every business

    Give your IT, operations, and business teams the ability to deliver exceptional services—without the complexity. Maximize operational efficiency with refreshingly simple, AI-powered Freshservice.
    Try it Free
  • 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
  • 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: 158 This Week
    Last Update:
    See Project
  • 3
    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: 117 This Week
    Last Update:
    See Project
  • 4
    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: 112 This Week
    Last Update:
    See Project
  • Test your software product anywhere in the world Icon
    Test your software product anywhere in the world

    Get feedback from real people across 190+ countries with the devices, environments, and payment instruments you need for your perfect test.

    Global App Testing is a managed pool of freelancers used by Google, Meta, Microsoft, and other world-beating software companies.
    Try us today.
  • 5
    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: 98 This Week
    Last Update:
    See Project
  • 6
    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
  • 7
    Swoole

    Swoole

    Coroutine-based concurrency library for PHP

    Build high-performance, scalable, concurrent TCP, UDP, Unix Socket, HTTP, WebSocket services with PHP and easy to use coroutine, fiber API. Write your next scalable async application server with PHP coroutine and PHP fiber API. Compared with other async programming frameworks or softwares such as Nginx, Tornado, Node.js, Swoole has the built-in PHP coroutine, fiber and async support, multiple threads I/O modules. You can use sync or async, coroutine, fiber API to write the applications or create thousands of light weight fibers within one Linux process. Swoole PHP network framework enhances the efficiency of development team. The network layer in Swoole is event-based and takes full advantage of the underlying epoll/kqueue implementation, making it really easy to serve millions of requests. Swoole 4.x uses a brand new engine kernel and now it has a full-time developer team, so we are entering an unprecedented period in PHP history which offers a unique possibility for rapid evolution.
    Downloads: 9 This Week
    Last Update:
    See Project
  • 8
    CloudSchool

    CloudSchool

    Another School Management System

    Another School Management System was built with Laravel and PHP 7.
    Downloads: 7 This Week
    Last Update:
    See Project
  • 9
    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: 7 This Week
    Last Update:
    See Project
  • Build Securely on AWS with Proven Frameworks Icon
    Build Securely on AWS with Proven Frameworks

    Lay a foundation for success with Tested Reference Architectures developed by Fortinet’s experts. Learn more in this white paper.

    Moving to the cloud brings new challenges. How can you manage a larger attack surface while ensuring great network performance? Turn to Fortinet’s Tested Reference Architectures, blueprints for designing and securing cloud environments built by cybersecurity experts. Learn more and explore use cases in this white paper.
    Download Now
  • 10
    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
  • 11
    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: 4 This Week
    Last Update:
    See Project
  • 12
    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: 4 This Week
    Last Update:
    See Project
  • 13
    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: 3 This Week
    Last Update:
    See Project
  • 14
    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: 3 This Week
    Last Update:
    See Project
  • 15

    Faker

    A PHP library that generates fake data for you

    Faker is a PHP library designed to generate fake data. It can create fake data by accessing properties named after the type of data you want. Faker’s generators have several packaged generator properties, known as formatters. These bundled formatters can be found in the default locale, and include person, address, phone number, company, date-time and more. Faker is also capable of localization, taking a locale as an argument and returning localized data. It can also populate entities using an ORM or an ODM, and features language-specific formatters as well. If you need to bootstrap your database, fill-in your persistence for stress testing, or anonymize data taken from a production service, Faker is a great choice for you.
    Downloads: 3 This Week
    Last Update:
    See Project
  • 16
    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: 3 This Week
    Last Update:
    See Project
  • 17
    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: 3 This Week
    Last Update:
    See Project
  • 18
    Doctrine Inflector

    Doctrine Inflector

    Small library for string manipulations to uppercase/lowercase words

    PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words. The Doctrine Inflector has methods for inflecting text. The features include pluralization, singularization, converting between camelCase and under_score and capitalizing words. Using the inflector is easy, you can create a new Doctrine\Inflector\Inflector instance by using the Doctrine\Inflector\InflectorFactory class. By default it will create an English inflector. If you want to use another language, you can do so. The supported languages are English, Spanish, French, Portuguese, Norwegian Bokmal and Turkish. If you are interested in adding support for your language, take a look at the other languages defined in the Doctrine\Inflector\Rules namespace and the tests located in Doctrine\Tests\Inflector\Rules. You can copy one of the languages and update the rules for your language.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 19
    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
  • 20
    Laravel collection macros

    Laravel collection macros

    A set of useful Laravel collection macros

    Laravel's collection class is truly wonderful. It contains a lot of handy methods and you can create some very elegant code with it. In client projects I found myself adding the same macro's over and over again. That's why my colleague Seb and I took some time to create a package aptly called Laravel-collection-macros that contains those macros.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 21
    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: 2 This Week
    Last Update:
    See Project
  • 22
    Psl

    Psl

    Centralized, well-typed, non-blocking set of APIs for PHP programmers

    Psl is a standard library for PHP, inspired by hhvm/hsl. The goal of Psl is to provide a consistent, centralized, well-typed set of APIs for PHP programmers. A modern, consistent, centralized, well-typed, non-blocking set of APIs for PHP programmers.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 23
    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: 2 This Week
    Last Update:
    See Project
  • 24
    Snappy PHP

    Snappy PHP

    PHP library allowing thumbnail, snapshot or PDF generation from an URL

    Snappy is a PHP library allowing thumbnail, snapshot or PDF generation from a url or a html page. It uses the excellent WebKit-based wkhtmltopdf and wkhtmltoimage available on OSX, Linux, Windows. You will have to download wkhtmltopdf 0.12.x in order to use Snappy.
    Downloads: 2 This Week
    Last Update:
    See Project
  • 25
    Yasumi

    Yasumi

    The easy PHP Library for calculating holidays

    Yasumi (Japanese for 'Holiday'「休み」) is the easy PHP library that helps you retrieve the dates and names of holidays and other special celebrations from various countries/states. It is calculation and rule driven avoiding the need of a comprehensive database. Many services exist that can provide holiday information, however are either not entirely free or only offer limited information. In addition, no exhaustive PHP library exists today covering a wide range of holidays and countries. PEAR's Date_Holidays library was a similar attempt, however it hasn't been updated for a long time. The goal of Yasumi is to be powerful while remaining lightweight, by utilizing PHP native classes wherever possible. Yasumi's calculation is provider-based (i.e. by country/state), making it easy to add new holiday providers that calculate holidays.
    Downloads: 2 This Week
    Last Update:
    See Project
  • Previous
  • You're on page 1
  • 2
  • 3
  • 4
  • 5
  • Next
Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.