Skip to content

Commit

Permalink
Merge remote-tracking branch 'refs/remotes/origin/develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
catfan committed Feb 8, 2017
2 parents 2601ffd + 7d9c774 commit a2c092f
Show file tree
Hide file tree
Showing 5 changed files with 453 additions and 300 deletions.
2 changes: 1 addition & 1 deletion LICENSE
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[MIT LICENSE]

Copyright (c) 2016 Angel Lai, http://medoo.in
Copyright (c) 2017 Angel Lai, http://medoo.in

Permission is hereby granted, free of charge, to any person obtaining
a copy of this software and associated documentation files (the
Expand Down
24 changes: 16 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
![](https://raw.githubusercontent.com/catfan/Medoo/develop/src/medoo-logo.png)
![](https://cloud.githubusercontent.com/assets/1467904/19835326/ca62bc36-9ebd-11e6-8b37-7240d76319cd.png)

## [Medoo](http://medoo.in)

[![Total Downloads](https://poser.pugx.org/catfan/medoo/downloads)](https://packagist.org/packages/catfan/medoo)
[![Latest Stable Version](https://poser.pugx.org/catfan/medoo/v/stable)](https://packagist.org/packages/catfan/medoo)
[![License](https://poser.pugx.org/catfan/medoo/license)](https://packagist.org/packages/catfan/medoo)

> The Lightest PHP database framework to accelerate development
## Main Features

* **Lightweight** - 20KB around with only one file.
* **Lightweight** - 26KB around with only one file.

* **Easy** - Extremely easy to learn and use, friendly construction.

* **Powerful** - Support various common and complex SQL queries.
* **Powerful** - Support various common and complex SQL queries, data mapping, and prevent SQL injection.

* **Compatible** - Support various SQL database, including MySQL, MSSQL, SQLite, MariaDB, Sybase, Oracle, PostgreSQL and more.
* **Compatible** - Support all SQL databases, including MySQL, MSSQL, SQLite, MariaDB, Sybase, Oracle, PostgreSQL and more.

* **Security** - Prevent SQL injection.
* **Friendly** - Work well with every PHP frameworks, like Laravel, Codeigniter, Yii, Slim, and framework which supports singleton extension.

* **Free** - Under MIT license, you can use it anywhere if you want.

## Requirement

PHP 5.4+ and PDO extension installed

## Get Started

### Install via composer
Expand All @@ -36,11 +44,11 @@ $ composer update
// If you installed via composer, just use this code to requrie autoloader on the top of your projects.
require 'vendor/autoload.php';

// Or if you just download the medoo.php into directory, require it with the correct path.
require_once 'medoo.php';
// Using Medoo namespace
use Medoo\Medoo;

// Initialize
$database = new medoo([
$database = new Medoo([
'database_type' => 'mysql',
'database_name' => 'name',
'server' => 'localhost',
Expand Down
6 changes: 4 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
{"name": "Angel Lai", "email": "[email protected]"}
],
"require": {
"php": ">=5.1",
"php": ">=5.4",
"ext-pdo": "*"
},
"suggest": {
Expand All @@ -21,6 +21,8 @@
"ext-pdo_sqlite": "For SQLite databases"
},
"autoload": {
"files": ["medoo.php"]
"psr-4": {
"Medoo\\": "/src"
}
}
}
Loading

0 comments on commit a2c092f

Please sign in to comment.