PHP Database

Open-source PHP projects categorized as Database

Top 23 PHP Database Projects

  • GitHub repo Doctrine

    Doctrine Object Relational Mapper (ORM)

    Project mention: Symfony 5 - PHP 7.4 - Should I initialize all my nullable properties to null? | reddit.com/r/symfony | 2021-04-08
  • GitHub repo Adminer

    Database management in a single PHP file

    Project mention: CloudBeaver – Database Management from Browser | news.ycombinator.com | 2021-04-11

    I have still been using Adminer[0] via a docker image to quickly run an admin interface in a browser.

    This looks a lot nicer. I remember the DBeaver name but I've not used it in a long time. I'll be using this instead of Adminer on my next project to give it a whirl.

    [0] https://www.adminer.org

  • GitHub repo Medoo

    The lightweight PHP database framework to accelerate development

  • GitHub repo ProxyManager

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

    Project mention: I am willing to help maintain older branches of this package | news.ycombinator.com | 2020-12-27
  • GitHub repo Doctrine Extensions

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

  • GitHub repo PHP-CRUD-API

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

    Project mention: SpaceScience.tech Public API for history of all votes and messages. | reddit.com/r/Second | 2021-04-01

    you can see more about its api at /openapi and https://github.com/mevdschee/php-crud-api

  • GitHub repo Eloquent

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

    Project mention: IMHO: JSX > PHP Templating | reddit.com/r/PHP | 2021-03-20

    In this case, getting started might be rough unless you know Laravel well, because there's not even a readme there (in contrast to e.g. https://github.com/illuminate/database#illuminate-database which has a clear guide how to use it)

  • GitHub repo Baum

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

  • GitHub repo RedBean

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

    Project mention: Looking for suggestions for ActiveRecord-like ORM class | reddit.com/r/PHP | 2021-03-16

    This is the thread you're looking for: https://github.com/gabordemooij/redbean/issues/450

  • GitHub repo Idiorm

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

    Project mention: Looking for suggestions for ActiveRecord-like ORM class | reddit.com/r/PHP | 2021-03-16

    For simple stuff I normally use idiorm https://github.com/j4mie/idiorm

  • GitHub repo Propel

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

  • GitHub repo laravel-tags

    Add tags and taggable behaviour to your Laravel app

  • GitHub repo Cycle ORM

    PHP DataMapper, ORM (by cycle)

    Project mention: Laravel isn't working for us - What Frameworks are worth taking a look at... | reddit.com/r/PHP | 2021-03-26

    It uses the (H)MVC model, anti-leak DI container, DataMapper ORM (https://github.com/cycle/orm), Symfony components, and RoadRunner (https://github.com/spiral/roadrunner) as an app server (which we also created).

  • GitHub repo Doctrine2 Behaviors

    Doctrine2 behavior traits

  • GitHub repo laravel-options

    Global key-value store in the database

    Project mention: Where to store user api token for 3rd party (xero) api | reddit.com/r/laravel | 2021-01-31

    I like to use the laravel-options package for global tokens: https://github.com/appstract/laravel-options

  • GitHub repo EasyDB

    Easy-to-use PDO wrapper for PHP projects.

  • GitHub repo Spot2

    Spot v2.x DataMapper built on top of Doctrine's Database Abstraction Layer

  • GitHub repo laravel-eloquent-query-cache

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

    Project mention: Laravel-query-cache adds macros for easily caching your queries | reddit.com/r/laravel | 2021-03-05

    I didn't want to use the query to cache it because I still want to have control of the key, it's mainly an alias for Cache::remember. If you want that kind of cache, there are already some packages out there (like this https://github.com/renoki-co/laravel-eloquent-query-cache)

  • GitHub repo Aura.Sql

    SQL database access through PDO.

  • GitHub repo Atlas.Orm

    A data mapper implementation for your persistence model in PHP.

    Project mention: Objection to ORM Hatred | news.ycombinator.com | 2021-02-09

    > People always seem to ignore the third option: using an ORM that embraces SQL!

    I had a similar revelation several years ago, based on the distinctions between a "domain model" and "persistence model" described by Mehdi Khalili, resulting in Atlas for PHP: http://atlasphp.io

  • GitHub repo Aura.SqlQuery

    Independent query builders for MySQL, PostgreSQL, SQLite, and Microsoft SQL Server.

    Project mention: A simple code to automate prepared statements for SQL code. Hope will help someone. | reddit.com/r/PHP | 2020-12-29

    As a (far better) alternative way of doing things, you might want to look at existing query builder libraries such as Aura.SqlQuery

  • GitHub repo ATK Data

    ATK Data - Data Access Framework for high-latency databases (Cloud SQL/NoSQL). (by atk4)

  • GitHub repo Pomm

    PHP Object Model Manager for Postgresql

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). The latest post mention was on 2021-04-11.

Index

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

Project Stars
1 Doctrine 8,490
2 Adminer 4,682
3 Medoo 4,308
4 ProxyManager 4,265
5 Doctrine Extensions 3,507
6 PHP-CRUD-API 2,698
7 Eloquent 2,205
8 Baum 2,159
9 RedBean 2,139
10 Idiorm 2,006
11 Propel 1,157
12 laravel-tags 1,035
13 Cycle ORM 831
14 Doctrine2 Behaviors 791
15 laravel-options 625
16 EasyDB 623
17 Spot2 601
18 laravel-eloquent-query-cache 545
19 Aura.Sql 482
20 Atlas.Orm 433
21 Aura.SqlQuery 378
22 ATK Data 244
23 Pomm 157