All Projects → catfan → Medoo

catfan / Medoo

Licence: mit
The lightweight PHP database framework to accelerate the development.

Programming Languages

PHP
23972 projects - #3 most used programming language

Projects that are alternatives of or similar to Medoo

Dbbench
🏋️ dbbench is a simple database benchmarking tool which supports several databases and own scripts
Stars: ✭ 52 (-98.83%)
Mutual labels:  database, mysql, sqlite, mssql
Linq2db
Linq to database provider.
Stars: ✭ 2,211 (-50.46%)
Mutual labels:  database, mysql, sqlite, mssql
Next
Directus is a real-time API and App dashboard for managing SQL database content. 🐰
Stars: ✭ 111 (-97.51%)
Mutual labels:  database, mysql, sqlite, mssql
Phpmyfaq
phpMyFAQ - Open Source FAQ web application for PHP and MySQL, PostgreSQL and other databases
Stars: ✭ 494 (-88.93%)
Mutual labels:  database, mysql, sqlite, mssql
Pgloader
Migrate to PostgreSQL in a single command!
Stars: ✭ 3,754 (-15.89%)
Mutual labels:  database, mysql, sqlite, mssql
Prisma
Next-generation ORM for Node.js & TypeScript | PostgreSQL, MySQL, MariaDB, SQL Server, SQLite & MongoDB (Preview)
Stars: ✭ 18,168 (+307.08%)
Mutual labels:  database, mysql, sqlite, mssql
Directus
Open-Source Data Platform 🐰 — Directus wraps any SQL database with a real-time GraphQL+REST API and an intuitive app for non-technical users.
Stars: ✭ 13,190 (+195.54%)
Mutual labels:  database, mysql, sqlite, mssql
Dotmim.sync
A brand new database synchronization framework, multi platform, multi databases, developed on top of .Net Standard 2.0. https://dotmimsync.readthedocs.io/
Stars: ✭ 406 (-90.9%)
Mutual labels:  database, mysql, sqlite
Nut
Advanced, Powerful and easy to use ORM for Qt
Stars: ✭ 181 (-95.94%)
Mutual labels:  database, mysql, sqlite
Migrate
Database migrations. CLI and Golang library.
Stars: ✭ 2,315 (-48.13%)
Mutual labels:  database, mysql, sqlite
Php Crud Api
Single file PHP script that adds a REST API to a SQL database
Stars: ✭ 2,904 (-34.93%)
Mutual labels:  database, mysql, sqlite
Sqlboiler
Generate a Go ORM tailored to your database schema.
Stars: ✭ 4,497 (+0.76%)
Mutual labels:  database, mysql, mssql
Space Cloud
Open source Firebase + Heroku to develop, scale and secure serverless apps on Kubernetes
Stars: ✭ 3,323 (-25.54%)
Mutual labels:  database, mysql, mssql
Simple Crud
PHP library to provide magic CRUD in MySQL/Sqlite databases with zero configuration
Stars: ✭ 190 (-95.74%)
Mutual labels:  database, mysql, sqlite
Enumdb
Relational database brute force and post exploitation tool for MySQL and MSSQL
Stars: ✭ 167 (-96.26%)
Mutual labels:  database, mysql, mssql
Endb
Key-value storage for multiple databases. Supports MongoDB, MySQL, Postgres, Redis, and SQLite.
Stars: ✭ 208 (-95.34%)
Mutual labels:  database, mysql, sqlite
Mikro Orm
TypeScript ORM for Node.js based on Data Mapper, Unit of Work and Identity Map patterns. Supports MongoDB, MySQL, MariaDB, PostgreSQL and SQLite databases.
Stars: ✭ 3,874 (-13.2%)
Mutual labels:  database, mysql, sqlite
Db
Data access layer for PostgreSQL, CockroachDB, MySQL, SQLite and MongoDB with ORM-like features.
Stars: ✭ 2,832 (-36.54%)
Mutual labels:  database, mysql, sqlite
Node Orm2
Object Relational Mapping
Stars: ✭ 3,063 (-31.37%)
Mutual labels:  database, mysql, sqlite
Rdbc
Rust DataBase Connectivity (RDBC) :: Common Rust API for database drivers
Stars: ✭ 328 (-92.65%)
Mutual labels:  database, mysql, sqlite

Build Status Total Downloads Latest Stable Version License Backers on Open Collective Sponsors on Open Collective

The lightweight PHP database framework to accelerate development

Features

  • Lightweight - Portable with only one file.

  • Easy - Easy to learn and use, friendly construction.

  • Powerful - Supports various common and complex SQL queries, data mapping and prevents SQL injection.

  • Compatible - Supports MySQL, MSSQL, SQLite, MariaDB, PostgreSQL, Sybase, Oracle, and more.

  • Friendly - Works well with every PHP framework, like Laravel, Codeigniter, Yii, Slim, and framework that are supporting singleton extension or composer.

  • Free - Under the MIT license, you can use it anywhere, whatever you want.

Requirement

PHP 7.3+ and installed PDO extension.

Get Started

Install via composer

Add Medoo to composer.json configuration file.

$ composer require catfan/medoo

And update the composer

$ composer update
// Require Composer's autoloader.
require 'vendor/autoload.php';

// Using Medoo namespace.
use Medoo\Medoo;

// Connect the database.
$database = new Medoo([
    'type' => 'mysql',
    'host' => 'localhost',
    'database' => 'name',
    'username' => 'your_username',
    'password' => 'your_password'
]);

// Enjoy
$database->insert('account', [
    'user_name' => 'foo',
    'email' => '[email protected]'
]);

$data = $database->select('account', [
    'user_name',
    'email'
], [
    'user_id' => 50
]);

echo json_encode($data);

// [{
//    "user_name" : "foo",
//    "email" : "[email protected]",
// }]

Contribution Guides

For starting a new pull request, please make sure it's compatible with other databases and write a unit test as possible.

Run phpunit tests for unit testing and php-cs-fixer fix for fixing code style.

Each commit is started with [fix], [feature] or [update] tag to indicate the change.

Please keep it simple and keep it clear.

License

Medoo is under the MIT license.

Links

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].