2017 © Pedro Peláez
 

framework medoo

The lightest PHP database framework to accelerate development

image

shijianzhiwai/medoo

The lightest PHP database framework to accelerate development

  • Tuesday, March 6, 2018
  • by shijianzhiwai
  • Repository
  • 1 Watchers
  • 0 Stars
  • 15 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 957 Forks
  • 0 Open issues
  • 27 Versions
  • 7 % Grown

The README.md

说明

基于Medoo二次开发的数据库组件,用于支持阿里云的数据库的读写分离设定,支持更多的Raw写法。, (*1)

安装

composer require shijianzhiwai/medoo:1.5.4a

新增语法

$db = new \Medoo\Medoo([
    'database_type' => 'mysql',
    'database_name' => 'test',
    'server'        => '127.0.0.1',
    'username'      => 'root',
    'password'      => '123456',
    'charset'       => 'utf8',
    'port'          => 3306,
]);

//阿里云RDS读写分离下强制主库查询
$db->forceMaster()->select('test', '*', ['id' => 1]);

//新增的RAW写法 select 部分新增自定义select字段部分
//生成的语句 /*FORCE_MASTER*/SELECT `id` as asName FROM `test` WHERE `id` = 1
$db->forceMaster()->select('test', \Medoo\Medoo::raw('`id` as asName'),  ['id' => 1]);

测试

测试数据库:, (*2)

[
    'database_type' => 'mysql',
    'database_name' => 'test',
    'server'        => '127.0.0.1',
    'username'      => 'root',
    'password'      => '123456',
    'charset'       => 'utf8',
    'port'          => 3306,
]

SET NAMES utf8mb4;
SET FOREIGN_KEY_CHECKS = 0;

-- ----------------------------
--  Table structure for `test`
-- ----------------------------
DROP TABLE IF EXISTS `test`;
CREATE TABLE `test` (
  `id` int(10) unsigned NOT NULL AUTO_INCREMENT,
  `value` varchar(255) DEFAULT NULL,
  PRIMARY KEY (`id`)
) ENGINE=InnoDB AUTO_INCREMENT=14 DEFAULT CHARSET=latin1;

SET FOREIGN_KEY_CHECKS = 1;

cd Medoo
phpunit

License

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

The Versions

06/03 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
by Avatar shijianzhiwai

database sql postgresql lightweight mssql mysql mariadb sqlite oracle php framework

02/03 2018

v1.5.4a

1.5.4.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
by Avatar shijianzhiwai

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