2017 © Pedro Peláez
 

framework medoo

The lightest PHP database framework to accelerate development

image

jiaojie/medoo

The lightest PHP database framework to accelerate development

  • Wednesday, January 10, 2018
  • by jiaojie1989
  • Repository
  • 1 Watchers
  • 0 Stars
  • 9 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 952 Forks
  • 0 Open issues
  • 29 Versions
  • 0 % Grown

The README.md

, (*1)

Total Downloads Latest Stable Version License , (*2)

The Lightest PHP database framework to accelerate development, (*3)

Features

  • Lightweight - Less than 100 KB, portable with only one file, (*4)

  • Easy - Extremely easy to learn and use, friendly construction, (*5)

  • Powerful - Supports various common and complex SQL queries, data mapping, and prevent SQL injection, (*6)

  • Compatible - Supports all SQL databases, including MySQL, MSSQL, SQLite, MariaDB, PostgreSQL, Sybase, Oracle and more, (*7)

  • Friendly - Works well with every PHP frameworks, like Laravel, Codeigniter, Yii, Slim, and framework which supports singleton extension or composer, (*8)

  • Free - Under MIT license, you can use it anywhere whatever you want, (*9)

Requirement

PHP 5.4+ and PDO extension installed, (*10)

Get Started

Install via composer

Add Medoo to composer.json configuration file., (*11)

$ composer require catfan/Medoo

And update the composer, (*12)

$ composer update
// If you installed via composer, just use this code to requrie autoloader on the top of your projects.
require 'vendor/autoload.php';

// Using Medoo namespace
use Medoo\Medoo;

// Initialize
$database = new Medoo([
    'database_type' => 'mysql',
    'database_name' => 'name',
    'server' => 'localhost',
    'username' => 'your_username',
    'password' => 'your_password'
]);

// Enjoy
$database->insert('account', [
    'user_name' => 'foo',
    'email' => 'foo@bar.com'
]);

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

echo json_encode($data);

// [
//     {
//         "user_name" : "foo",
//         "email" : "foo@bar.com",
//     }
// ]

Contribution Guides

For most of time, Medoo is using develop branch for adding feature and fixing bug, and the branch will be merged into master branch while releasing a public version. For contribution, submit your code to the develop branch, and start a pull request into it., (*13)

On develop branch, each commits are started with [fix], [feature] or [update] tag to indicate the change., (*14)

Keep it simple and keep it clear., (*15)

License

Medoo is under the MIT license., (*16)

The Versions

10/01 2018

dev-master

9999999-dev https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

10/01 2018

v1.5.4.3

1.5.4.3 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

10/01 2018

v1.5.4.1

1.5.4.1 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

10/01 2018

v1.5.4.2

1.5.4.2 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

08/01 2018

v1.5.4

1.5.4.0 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

08/01 2018

dev-develop

dev-develop https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

25/12 2017

v1.5.3

1.5.3.0 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

01/12 2017

v1.5.2

1.5.2.0 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

24/11 2017

v1.5.1

1.5.1.0 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

21/11 2017

v1.5a

1.5.0.0-alpha https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

20/11 2017

v1.5

1.5.0.0 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

24/06 2017

v1.4.5

1.4.5.0 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

02/06 2017

v1.4.4

1.4.4.0 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

22/05 2017

v1.4.3

1.4.3.0 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

16/05 2017

v1.4.2

1.4.2.0 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

12/05 2017

v1.4.1

1.4.1.0 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

10/05 2017

v1.4

1.4.0.0 https://medoo.in

The lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

17/02 2017

v1.2.1

1.2.1.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

08/02 2017

v1.2

1.2.0.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.4
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

07/07 2016

v1.1.2

1.1.2.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

28/06 2016

v1.1.1

1.1.1.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

26/06 2016

v1.1

1.1.0.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

14/02 2016

v1.0.2

1.0.2.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

05/10 2015

v1.0

1.0.0.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

11/02 2015

v0.9.8

0.9.8.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

04/12 2014

v0.9.7

0.9.7.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql lightweight mssql mysql sqlite php framework

15/08 2014

v0.9.6.2

0.9.6.2 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql mssql mysql sqlite

08/06 2014

v0.9.6

0.9.6.0 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql mssql mysql sqlite

28/04 2014

v0.9.5.3

0.9.5.3 http://medoo.in

The Lightest PHP database framework to accelerate development

  Sources   Download

MIT

The Requires

  • php >=5.1
  • ext-pdo *

 

by Angel Lai

database sql mssql mysql sqlite