PHP SQL

Open-source PHP projects categorized as SQL

Top 23 PHP SQL Projects

  1. countries-states-cities-database

    🌍 Discover our global repository of countries, states, and cities! 🏙️ Get comprehensive data in JSON, SQL, PSQL, SQLSERVER, MONGODB, SQLITE, XML, YAML, and CSV formats. Access ISO2, ISO3 codes, country code, capital, native language, timezones (for countries), and more. #countries #states #cities

    Project mention: Open-Source Database for Countries, States, and Cities in Multiple Formats | news.ycombinator.com | 2024-10-01
  2. InfluxDB

    InfluxDB – Built for High-Performance Time Series Workloads. InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.

    InfluxDB logo
  3. Leantime

    Leantime is a goals focused project management system for non-project managers. Building with ADHD, Autism, and dyslexia in mind.

    Project mention: Show HN: Leantime – Open-Source Project Management for Non-Project Managers | news.ycombinator.com | 2025-04-08
  4. upscheme

    Database migrations and schema updates made easy

  5. mysqldump-php

    PHP version of mysqldump cli that comes with MySQL

  6. fluentpdo

    A PHP SQL query builder using PDO

  7. laravel-purity

    An elegant way to filter and sort queries in Laravel

  8. sql-parser

    A validating SQL lexer and parser with a focus on MySQL dialect. (by phpmyadmin)

  9. SaaSHub

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

    SaaSHub logo
  10. lessql

    LessQL: A lightweight and performant PHP ORM alternative

  11. Vulnerable-Web-Application

    OWASP Vulnerable Web Application Project https://github.com/hummingbirdscyber

  12. KLiK-SocialMediaWebsite

    Complete PHP-based Login/Registration system, Profile system, Chat room, Forum system and Blog/Polls/Event Management System.

  13. ATK Data

    Data Access PHP Framework for SQL & high-latency databases (by atk4)

  14. event-management

    helps to register an users for on events conducted in college fests with simple logic with secured way

  15. singlestoredb-laravel-driver

    The official SingleStore Laravel driver.

  16. laravel-showsql

    A Laravel package to output a specific sql to your favourite debugging tool. The supported log output is Laravel Telescope, Laravel Log, Ray, Clockwork, Laravel Debugbar and your browser.

  17. db

    Yii Database Library (by yiisoft)

  18. Gangster-Legends-V2

    A free to use text-based PBBG / MMORPG script

  19. client

    PHP client for Tarantool. (by tarantool-php)

  20. to-raw-sql

    Get raw SQL from Laravel Query Builder and Eloquent Builder

  21. Simple MySQLi Class

    :gem: Simple MySQLi Abstraction Layer + Doctrine/DBAL support

  22. model-required-fields

    Get the required model fields, excluding primary keys, nullable fields, and fields with defaults.

    Project mention: "Model Required Fields" package | dev.to | 2024-07-27

    https://github.com/watheqAlshowaiter/model-required-fields.

  23. arca-orm

    Low code , Zero Configuration ORM that creates models, config, database and tables on the fly.

  24. backup-tables

    Backup single or multiple database tables with ease.

    Project mention: "Backup Tables" package | dev.to | 2024-08-24

    package link with examples and features in detail: https://github.com/WatheqAlshowaiter/backup-tables

  25. Luminosity

    Luminosity – a modern style blogging platform (by cmd05)

  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 SQL discussion

Log in or Post with

PHP SQL related posts

  • Show HN: Leantime – Open-Source Project Management for Non-Project Managers

    1 project | news.ycombinator.com | 8 Apr 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
  • It's launch day! 🚀

    3 projects | dev.to | 7 Nov 2024
  • 🎉 The key evolution of the Easy Model package is here with v1.0.8 🎉

    1 project | dev.to | 1 Nov 2024
  • New release day ✨

    2 projects | dev.to | 18 Oct 2024
  • A note from our sponsor - InfluxDB
    www.influxdata.com | 15 May 2025
    InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now. Learn more →

Index

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

# Project Stars
1 countries-states-cities-database 8,258
2 Leantime 5,351
3 upscheme 2,038
4 mysqldump-php 1,265
5 fluentpdo 933
6 laravel-purity 499
7 sql-parser 457
8 lessql 410
9 Vulnerable-Web-Application 374
10 KLiK-SocialMediaWebsite 357
11 ATK Data 275
12 event-management 235
13 singlestoredb-laravel-driver 228
14 laravel-showsql 212
15 db 139
16 Gangster-Legends-V2 69
17 client 67
18 to-raw-sql 55
19 Simple MySQLi Class 45
20 model-required-fields 39
21 arca-orm 34
22 backup-tables 33
23 Luminosity 28

Sponsored
InfluxDB – Built for High-Performance Time Series Workloads
InfluxDB 3 OSS is now GA. Transform, enrich, and act on time series data directly in the database. Automate critical tasks and eliminate the need to move data externally. Download now.
www.influxdata.com

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