Accelerated development of the lightest PHP database framework Medoo

Source: Internet
Author: User
Tags mssql php database sqlite

Why Choose Medoo?
-Very light weight
Only 15KB, just include.
-Simple
Very easy to learn, quick to get started.
-Powerful
supports a variety of common SQL queries.
-compatible
supports a variety of data: MySQL, MSSQL, SQLite, MariaDB, Oracle, Sybase, PostgreSQL.
-Safety
Prevent SQL injection
-Free
MIT protocol, you can make any changes.

Must be PHP 5.1 or more, very, very special, extremely, highly recommended: Use PHP 5.4 or later and turn on PDO support. You can install databases such as Mysql,mssql,sqlite, or more.

Note: In PHP 5.4+, you can use [] as an abbreviated syntax for an array. All Medoo sample code uses [] to replace array ().

Download medoo.min.php, put it in the right directory, start using it, it's so easy!

Official tutorial: Http://medoo.in/api/new
The Chinese can be consulted: http://medoo.lvtao.net/doc.php

Methods for standalone configuration

Require ' medoo.php ';

$database = new Medoo ([
Required
' Database_type ' = ' mysql ',
' database_name ' = ' name ',
' Server ' = ' localhost ',
' Username ' = ' your_username ',
' Password ' = ' Your_password ',
' CharSet ' = ' utf8 ',

Optional
' Port ' = 3306,
Driver_option for connection, read more from http://www.php.net/manual/en/pdo.setattribute.php
' option ' = [
Pdo::attr_case = Pdo::case_natural
]
]);

$database->insert ("Account", [
"User_name" = "foo",
"Email" = "[email protected]"
]);

Accelerated development of the lightest 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.