Recommend a lightweight PHP database framework –medoo

Source: Internet
Author: User
Tags php database sql injection

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.