<p align="center">
<a href="https://medoo.in" target="_blank"><img src="https://cloud.githubusercontent.com/assets/1467904/19835326/ca62bc36-9ebd-11e6-8b37-7240d76319cd.png"></a>
</p>
<p align="center">
<a href="https://packagist.org/packages/catfan/medoo"><img alt="Total Downloads" src="https://poser.pugx.org/catfan/medoo/downloads"></a>
<a href="https://packagist.org/packages/catfan/medoo"><img alt="Latest Stable Version" src="https://poser.pugx.org/catfan/medoo/v/stable"></a>
<a href="https://packagist.org/packages/catfan/medoo"><img alt="License" src="https://poser.pugx.org/catfan/medoo/license"></a>
<a href="https://opencollective.com/medoo"><img alt="Backers on Open Collective" src="https://opencollective.com/Medoo/backers/badge.svg"></a>
<a href="https://opencollective.com/medoo"><img alt="Sponsors on Open Collective" src="https://opencollective.com/Medoo/sponsors/badge.svg"> </a>
</p>
> The Lightest PHP database framework to accelerate development
## Features
* **Lightweight** - Less than 100 KB, portable with only one file
* **Easy** - Extremely easy to learn and use, friendly construction
* **Powerful** - Supports various common and complex SQL queries, data mapping, and prevent SQL injection
* **Compatible** - Supports all SQL databases, including MySQL, MSSQL, SQLite, MariaDB, PostgreSQL, Sybase, Oracle and more
* **Friendly** - Works well with every PHP frameworks, like Laravel, Codeigniter, Yii, Slim, and framework which supports singleton extension or composer
* **Free** - Under MIT license, you can use it anywhere whatever you want
## Requirement
PHP 5.4+ and PDO extension installed
## Get Started
### Install via composer
Add Medoo to composer.json configuration file.
```
$ composer require catfan/Medoo
```
And update the composer
```
$ composer update
```
```php
// If you installed via composer, just use this code to require 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.
On develop branch, each commits are started with `[fix]`, `[feature]` or `[update]` tag to indicate the change.
Keep it simple and keep it clear.
## License
Medoo is under the MIT license.
## Links
* Official website: [https://medoo.in](https://medoo.in)
* Documentation: [https://medoo.in/doc](https://medoo.in/doc)
没有合适的资源?快使用搜索试试~ 我知道了~
简单原生php MVC框架
共1083个文件
php:591个
test:325个
rst:95个
5星 · 超过95%的资源 需积分: 50 31 下载量 170 浏览量
2019-05-18
19:48:56
上传
评论 3
收藏 884KB ZIP 举报
温馨提示
简单原生php MVC框架 ,轻量级的PHP数据库框架, 提高开发效率!
资源推荐
资源详情
资源评论
收起资源包目录
简单原生php MVC框架 (1083个子文件)
twig.c 35KB
CHANGELOG 48KB
whoops.base.css 11KB
phpunit.xml.dist 987B
phpunit.xml.dist 835B
.php_cs.dist 695B
.editorconfig 224B
.gitattributes 482B
.gitignore 3KB
.gitignore 328B
.gitignore 69B
.gitignore 34B
.gitignore 7B
php_twig.h 1KB
layout.html 253B
index.html 128B
test.html 82B
index.html 82B
base.html 34B
named_absolute.html 20B
index.html 19B
index.html 17B
index.html 17B
index.html 13B
index.html 11B
index.html 11B
index.html 11B
index.html 5B
zepto.min.js 24KB
prettify.min.js 13KB
clipboard.min.js 9KB
whoops.base.js 6KB
installed.json 13KB
composer.json 1KB
composer.json 1KB
composer.json 1KB
composer.json 976B
composer.json 880B
composer.json 860B
composer.json 561B
composer.json 420B
LICENSE 1KB
LICENSE 1KB
LICENSE 1KB
LICENSE 1KB
LICENSE 1KB
LICENSE 1KB
composer.lock 15KB
config.m4 221B
README.md 3KB
README.md 1KB
LICENSE.md 1KB
LICENSE.md 1KB
CHANGELOG.md 649B
README.md 610B
bug_report.md 390B
README.md 371B
README.md 352B
CHANGELOG.md 267B
phar-sample.phar 7KB
CoreExtension.php 53KB
Environment.php 52KB
Medoo.php 34KB
ExpressionParser.php 32KB
TemplateTest.php 31KB
HtmlDumper.php 29KB
Mbstring.php 26KB
Template.php 25KB
PrettyPageHandler.php 23KB
EnvironmentTest.php 22KB
Lexer.php 20KB
CliDumper.php 19KB
upperCase.php 18KB
lowerCase.php 18KB
ModuleNode.php 16KB
AbstractCloner.php 16KB
SandboxTest.php 15KB
DateCasterTest.php 15KB
VarCloner.php 14KB
LexerTest.php 14KB
ExceptionCaster.php 14KB
ExpressionParserTest.php 14KB
Data.php 14KB
ClassLoader.php 13KB
Parser.php 13KB
CliDumperTest.php 12KB
Run.php 12KB
VarClonerTest.php 12KB
ReflectionCaster.php 12KB
CallExpression.php 11KB
CoreTest.php 11KB
escapingTest.php 10KB
DOMCaster.php 10KB
Error.php 10KB
TemplateHelper.php 9KB
FilesystemLoader.php 9KB
header.html.php 9KB
FilesystemTest.php 9KB
OptimizerNodeVisitor.php 9KB
Inspector.php 9KB
共 1083 条
- 1
- 2
- 3
- 4
- 5
- 6
- 11
资源评论
- 东方员外不是大强2019-10-21挺好的,感觉开发速度特别快,
info987623
- 粉丝: 57
- 资源: 2
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功