The lightest PHP database framework to accelerate development

Version: 0.9.7 [14.8KB]
download
Love Medoo?

Why Medoo

Get Started

Download Medoo and put it into the directory you want.
Configure the user name and password on medoo.php.

/*
 medoo.php
*/
class medoo
{
	protected $database_type = 'mysql';
	protected $server = 'localhost';
	protected $username = 'your_username';
	protected $password = 'your_password';

Use it on your project with only 3 step!

// Include Medoo (configured)
require_once 'medoo.php';

// Initialize
$database = new medoo();

// Enjoy
$database->insert('account', [
	'user_name' => 'foo'
	'email' => 'foo@bar.com',
	'age' => 25,
	'lang' => ['en', 'fr', 'jp', 'cn']
]);

// Or initialize via independent configuration
$database = new medoo([
	'database_type' => 'mysql',
	'database_name' => 'name',
	'server' => 'localhost',
	'username' => 'your_username',
	'password' => 'your_password',
]);
* On PHP 5.4+, you can use [] as short array syntax.