PHP Database

Open-source PHP projects categorized as Database

Top 23 PHP Database Projects

  1. Doctrine

    Doctrine Object Relational Mapper (ORM)

  2. CodeRabbit

    CodeRabbit: AI Code Reviews for Developers. Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.

    CodeRabbit logo
  3. dbal

    Doctrine Database Abstraction Layer

    Project mention: Ignore custom indexes on Doctrine DBAL 4 | dev.to | 2024-07-27

    https://www.liip.ch/en/blog/doctrine-and-generated-columns This was not working anymore as Doctrine DBAL removes the event manager on DBAL 4. (ref)

  4. Adminer

    Database management in a single PHP file

    Project mention: Database management in a single PHP file | news.ycombinator.com | 2025-03-17

    To be fair it's the actual releases that are in a single file.

    Development evidently happens in the traditional sense with the project in a nicely defined tree.

    The build process looks pretty gnarly, but it works! https://github.com/vrana/adminer/blob/master/compile.php

  5. laravel-backup

    A package to backup your Laravel app

  6. ProxyManager

    🎩✨🌈 OOP Proxy wrappers/utilities - generates and manages proxies of your objects

  7. Medoo

    The lightweight PHP database framework to accelerate the development.

  8. Doctrine Extensions

    Doctrine2 behavioral extensions, Translatable, Sluggable, Tree-NestedSet, Timestampable, Loggable, Sortable

  9. InfluxDB

    InfluxDB high-performance time series database. Collect, organize, and act on massive volumes of high-resolution data to power real-time intelligent systems.

    InfluxDB logo
  10. PHP-CRUD-API

    Single file PHP script that adds a REST API to a SQL database

    Project mention: Top 8 Open-Source CRUD Projects with the Most GitHub Stars | dev.to | 2024-09-04

    GitHub https://github.com/mevdschee/php-crud-api GitHub Stars 3.6k Most Recent Update on GitHub 2 months ago Open Source License MIT Number of Active Contributors This Year 1 Acceptance of External PRs Yes Official Website / Documentation /

  11. Eloquent

    [READ ONLY] Subtree split of the Illuminate Database component (see laravel/framework)

    Project mention: Improving Eloquent for real: test setup | dev.to | 2025-03-30

    I'm not going to pretend that my improvements will land in the official Laravel code any time soon, or ever. So I am going to use the illuminate/database repository. Because it is a sub module of the laravel/framework this has a few problems. The biggest problem is that there are no tests.

  12. RedBean

    ORM layer that creates models, config and database on the fly

  13. Baum

    Baum is an implementation of the Nested Set pattern for Laravel's Eloquent ORM.

  14. Idiorm

    A lightweight nearly-zero-configuration object-relational mapper and fluent query builder for PHP5.

  15. upscheme

    Database migrations and schema updates made easy

  16. laravel-tags

    Add tags and taggable behaviour to your Laravel app

  17. laravel

    Reliese Laravel Model Generator (by reliese)

  18. Propel

    Propel2 is an open-source high-performance Object-Relational Mapping (ORM) for modern PHP

  19. mysqldump-php

    PHP version of mysqldump cli that comes with MySQL

  20. Cycle ORM

    PHP DataMapper, ORM (by cycle)

    Project mention: Cash: A small jQuery alternative for modern browsers | news.ycombinator.com | 2024-11-02

    Thanks. It's a small custom framework built from libraries, some custom, some third party.

    - File based HTTP router running on top of https://frankenphp.dev/

    - ORM/SQL with: https://github.com/cycle/orm but this is preference. Anything works. From SQL builders to ORMs.

    I'll try to explain their form handling:

    Forms almost always POST to their own GET URL.

    If you GET /user/save you'll get back HTML and `` to build the form.<p>If you POST /user/save you're expected to pass the entire form data PLUS an "operation" parameter which is used by the backend to decide what should be done and returned.<p>For example if user clicks [add new user] button, the "operation" parameter has value of "btnNewUser.click".<p>Why pass operation parameter? Because business forms can have more than just a [submit] button.<p>For example, there might be a datagrid filter value being changed (operation: "txtFilter.change"), or perhaps a dropdown search to select a city name from a large list (operation: "textCitySearch.change"), it can be a postal code to address lookup (operation: "txtPostalCode.change"), etc.<p>On the backend, the pseudocode looks somewhat like this but it's cleaner/safer because of encapsulation, validation, error handling, data sanitization, model binding and csrf/xss protection:<p><pre><code> function user_save($operation) {

  21. Part-DB-server

    Part-DB is an Open source inventory management system for your electronic components

  22. laravel-eloquent-query-cache

    Adding cache on your Laravel Eloquent queries' results is now a breeze.

  23. totum-mit

    Small-code database for non-programmers. Universal UI, simple-code logic, automatic actions, access rules, logging, API and more. Quickly create a complex internal apps using the database as an interface.

  24. SleekDB

    Pure PHP NoSQL database with no dependency. Flat file, JSON based document database.

  25. Doctrine2 Behaviors

    Doctrine2 behavior traits that help handling Blameable, Loggable, Sluggable, SoftDeletable, Uuidable, Timestampable, Translatable, Tree behavior

  26. SaaSHub

    SaaSHub - Software Alternatives and Reviews. SaaSHub helps you find the best software and product alternatives

    SaaSHub logo
NOTE: The open source projects on this list are ordered by number of github stars. The number of mentions indicates repo mentiontions in the last 12 Months or since we started tracking (Dec 2020).

PHP Database discussion

Log in or Post with

PHP Database related posts

  • Improving Eloquent for real: test setup

    3 projects | dev.to | 30 Mar 2025
  • Database management in a single PHP file

    6 projects | news.ycombinator.com | 17 Mar 2025
  • Fix 105 Common WordPress Issues Using Simple Code Snippets

    2 projects | dev.to | 15 Jan 2025
  • Easy Model v1.1.3: A Hard-Earned Update with Many New Features and Improvements 💪

    1 project | dev.to | 6 Dec 2024
  • Boost your workflow with Easy Model v1.1.2 💼

    1 project | dev.to | 1 Dec 2024
  • Unlock the Power of the New Easy Model – Available Today! 🎉

    1 project | dev.to | 22 Nov 2024
  • 🎉 The key evolution of the Easy Model package is here with v1.0.8 🎉

    1 project | dev.to | 1 Nov 2024
  • A note from our sponsor - CodeRabbit
    coderabbit.ai | 21 Apr 2025
    Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR. Learn more →

Index

What are some of the best open-source Database projects in PHP? This list will help you:

# Project Stars
1 Doctrine 10,034
2 dbal 9,576
3 Adminer 6,644
4 laravel-backup 5,785
5 ProxyManager 4,967
6 Medoo 4,868
7 Doctrine Extensions 4,071
8 PHP-CRUD-API 3,675
9 Eloquent 2,715
10 RedBean 2,314
11 Baum 2,240
12 Idiorm 2,004
13 upscheme 1,954
14 laravel-tags 1,677
15 laravel 1,601
16 Propel 1,269
17 mysqldump-php 1,264
18 Cycle ORM 1,247
19 Part-DB-server 1,159
20 laravel-eloquent-query-cache 1,089
21 totum-mit 963
22 SleekDB 938
23 Doctrine2 Behaviors 916

Sponsored
CodeRabbit: AI Code Reviews for Developers
Revolutionize your code reviews with AI. CodeRabbit offers PR summaries, code walkthroughs, 1-click suggestions, and AST-based analysis. Boost productivity and code quality across all major languages with each PR.
coderabbit.ai

Did you know that PHP is
the 14th most popular programming language
based on number of references?