微前端架构如何改变企业的开发模式与效率提升
706
2022-11-04
PHP轻量级数据库框架,PHP更简单高效的数据库操作方式
Juggler
PHP lightweight database (MySQL) framework
中文介绍
Main Features
Common database operation functionsWHERE combination conditions varySupports transaction callback operationsSupport for split - sheet callback processing dataSupports cache query dataSupports multiple table queriesSupport multiple data bindingsData security filtering guaranteeIntroduction, packaging is easier
Requirement
PHP 5.5+Support the PDO, extension pdo_mysql installed
Get Started
Install via composer
$ composer require upfor/juggler
'127.0.0.1', 'port' => 3306, 'dbname' => 'db_name', 'username' => 'your_username', 'password' => 'your_password', 'charset' => 'utf8', 'prefix' => 'db_pre_',);$db = new Juggler($config);// SELECT `user_id`, `username` FROM `user` WHERE `user_id` >= 20$data = $db->table('user')->field(array('user_id', 'username'))->where('user_id|>=', 20)->getList();echo json_encode($data);
License
Juggler is under the MIT license.
版权声明:本文内容由网络用户投稿,版权归原作者所有,本站不拥有其著作权,亦不承担相应法律责任。如果您发现本站中有涉嫌抄袭或描述失实的内容,请联系我们jiasou666@gmail.com 处理,核实后本网站将在24小时内删除侵权内容。
发表评论
暂时没有评论,来抢沙发吧~