Introduction to the official website:
The most lightweight PHP database framework that can speed up development
Why choose Medoo and its main features:
- Lightweight – Single file, only 20KB
- Easy to use – very easy to learn and work with
- powerful – supports a variety of common and complex SQL queries
- Compatibility – support for very many database types such as MySQL, MSSQL, SQLite, MariaDB, Sybase, Oracle, PostgreSQL, etc.
- Security – Preventing SQL injection
- Free – based on the MIT license, you can use it anywhere
Start using
Download the Medoo and put it in the directory you want, then use it in three steps:
//Include Medoorequire_once' Medoo.php '; //Initialize$database=NewMedoo ([' Database_type ' = ' mysql ', ' database_name ' = ' ' name ', ' server ' = ' localhost ', ' username ' and ' Your_u ' Sername ', ' password ' = ' your_password ', ' charset ' = ' UTF8 ']); //Enjoy$database->insert (' account ', [ ' user_name ' + ' foo ', ' email ' + ' [email protected] ', ' age ' = ', ' lang ' + = [' en ', ' fr ', ' JP ', ' CN ']]); //Or Initialize from file and then$database=NewMedoo ();
For more information on how to use it, please refer to its documentation .
Recommend a lightweight PHP database framework –medoo