awesome-repositories.com
Blog
MCP
awesome-repositories.com

Discover the best open-source repositories with AI-powered search.

ExploreCurated searchesOpen-source alternativesSelf-hosted softwareBlogSitemap
ProjectMCP serverAboutHow we rankPress
LegalPrivacyTerms
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
catfan avatar

catfan/Medoo

0
View on GitHub↗
4,943 stars·1,136 forks·PHP·MIT·16 viewsmedoo.in↗

Medoo

Medoo is a lightweight PHP database abstraction layer and SQL query builder. It serves as a minimal database wrapper that provides a unified API to execute queries across multiple SQL engines, translating PHP method calls into specific database dialects.

The project enables multi-dialect SQL interfacing, allowing a single codebase to interact with various backends including MySQL, MariaDB, PostgreSQL, SQLite, MSSQL, Oracle, and Sybase. It uses prepared statement parameterization to prevent injection attacks while maintaining a programmatic approach to constructing complex SQL statements.

The toolkit covers standard data manipulation operations, including record insertion, updates, deletions, and querying. It also provides capabilities for aggregate calculations, atomic transaction management, and raw SQL execution for complex logic.

Diagnostic tools are included for query execution inspection, allowing the logging of generated SQL and connection information for debugging purposes.

Features

  • Database Wrappers - Serves as a minimal database wrapper providing a unified interface for CRUD operations and aggregate calculations.
  • Relational Database Abstractions - Provides a unified, vendor-agnostic PHP interface for interacting with multiple relational database systems via PDO.
  • Array-Driven Query Construction - Provides a mechanism to define complex SQL queries and filters using PHP associative arrays.
  • Database Engine Abstractions - Implements a layer that decouples application logic from specific SQL engines to allow multi-backend support.
  • Database Record Querying - Enables retrieving records from tables using a variety of filters, limits, and column selections.
  • Prepared Statements - Uses prepared statements with parameterization to prevent SQL injection attacks.
  • Query Abstraction Layers - Provides a unified query abstraction layer for executing SQL across multiple engines using a single PHP API.
  • Record Deletion - Provides methods for removing one or multiple records from a table based on filtering criteria.
  • Record Insertion - Implements standard interfaces for inserting single or multiple data records into tables.
  • Record Updating - Provides fluent methods for modifying existing database records based on conditional filters.
  • SQL Database Engine Support - Supports a wide range of SQL engines including MySQL, PostgreSQL, SQLite, MSSQL, Oracle, and Sybase.
  • SQL Dialect Adapters - Provides a unified API that adapts queries to ensure compatibility across different SQL database implementations.
  • SQL Query Builders - Includes a programmatic utility for constructing and executing structured query language operations.
  • SQL Query Building - Enables programmatic construction of complex SQL statements with prepared statements to prevent injection.
  • Multi-Database Support - Enables building applications that remain portable across different SQL backends via a unified interface.
  • Aggregate Calculations - Provides built-in methods for performing aggregate calculations like sum, average, and count on database tables.
  • Atomic Batch Commits - Implements atomic batch commits to ensure a group of database mutations either succeed completely or roll back.
  • Database Transaction Management - Manages database transactions to ensure data integrity through atomic operations.
  • Raw SQL Execution - Allows the injection of raw SQL expressions into generated queries for complex logic.
  • Lightweight Integrations - Provides a minimal interface for adding basic database CRUD operations without the overhead of a full ORM.

Star history

Star history chart for catfan/medooStar history chart for catfan/medoo

How this analysis was created: This summary and feature list were written by an AI model that read the project's README and public documentation pages. Each feature links to the documentation it came from; stars, license and language come straight from the GitHub API. The model does not read the source code, and the analysis is refreshed when the project is re-analysed. Learn more on our About page.

AI search

Explore more awesome repositories

Describe what you need in plain English — the AI ranks thousands of curated open-source projects by relevance.

Start searching with AI

Open-source alternatives to Medoo

Similar open-source projects, ranked by how many features they share with Medoo.
  • uptrace/bunuptrace avatar

    uptrace/bun

    4,867View on GitHub↗

    Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping. It functions as a programmable SQL query builder, a database connection manager, and a tool for mapping database tables to Go structs. The project distinguishes itself through a multi-dialect SQL support system, allowing a single codebase to interact with different database engines via a consistent interface. It includes a built-in database observability tool for query interception, distributed tracing, and logging, as well as a schema migration tool for versioning structural c

    Godatabasegogolang
    View on GitHub↗4,867
  • go-pg/pggo-pg avatar

    go-pg/pg

    5,785View on GitHub↗

    pg is a PostgreSQL object-relational mapper (ORM) for Go that maps Go structs to database tables and provides a fluent query builder for constructing SQL statements programmatically. At its core, it automatically generates CREATE TABLE statements from Go struct definitions using struct tags and naming conventions, and builds queries through method chaining with placeholder-based parameter binding to prevent SQL injection. The library distinguishes itself through relation-aware join generation that automatically constructs JOIN clauses for has-one, has-many, many-to-many, and polymorphic assoc

    Go
    View on GitHub↗5,785
  • codeigniter4/codeigniter4codeigniter4 avatar

    codeigniter4/CodeIgniter4

    5,924View on GitHub↗

    CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web applications. It provides a lightweight toolkit with minimal configuration, organizing application logic into controllers, models, and views for clean separation of concerns. The framework includes a fluent query builder for constructing SQL statements programmatically, PSR-4 autoloading with namespace mapping, and a service-based dependency injection container for managing shared class instances. The framework distinguishes itself through its comprehensive set of built-in tools

    PHPcodeignitercodeigniter4framework-php
    View on GitHub↗5,924
  • seaql/sea-querySeaQL avatar

    SeaQL/sea-query

    1,725View on GitHub↗

    Sea-query is a database abstraction library for Rust that provides a fluent builder pattern for constructing type-safe SQL queries. It functions as a framework for defining and managing database schemas and queries through code, allowing developers to generate syntactically valid statements for multiple database engines without relying on manual string concatenation. The library distinguishes itself by using an abstract syntax tree to model queries, which enables engine-agnostic transformations and compilation into specific SQL dialects. This architecture supports cross-database portability,

    Rustdatabasehacktoberfestmariadb
    View on GitHub↗1,725
See all 30 alternatives to Medoo→

Frequently asked questions

What does catfan/medoo do?

Medoo is a lightweight PHP database abstraction layer and SQL query builder. It serves as a minimal database wrapper that provides a unified API to execute queries across multiple SQL engines, translating PHP method calls into specific database dialects.

What are the main features of catfan/medoo?

The main features of catfan/medoo are: Database Wrappers, Relational Database Abstractions, Array-Driven Query Construction, Database Engine Abstractions, Database Record Querying, Prepared Statements, Query Abstraction Layers, Record Deletion.

What are some open-source alternatives to catfan/medoo?

Open-source alternatives to catfan/medoo include: uptrace/bun — Bun is a type-safe object relational mapper for Go that prioritizes SQL-first query construction and result mapping.… go-pg/pg — pg is a PostgreSQL object-relational mapper (ORM) for Go that maps Go structs to database tables and provides a fluent… codeigniter4/codeigniter4 — CodeIgniter is a PHP web framework built on the Model-View-Controller pattern, designed for building full-stack web… seaql/sea-query — Sea-query is a database abstraction library for Rust that provides a fluent builder pattern for constructing type-safe… linq2db/linq2db — linq2db is a type-safe object-relational mapper that translates LINQ expressions into optimized SQL queries for… vincit/objection.js — Objection.js is an object-relational mapper for Node.js that maps SQL database tables to classes and rows to model…