PHP code example of lmz / medoo

1. Go to this page and download the library: Download lmz/medoo library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

lmz / medoo example snippets


// Include Medoo

// Initialize
$database = new \lmz\medoo\medoo([
    'database_type' => 'mysql',
    'database_name' => 'name',
    'server' => 'localhost',
    'username' => 'your_username',
    'password' => 'your_password',
    'charset' => 'utf8'
]);

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

// Or initialize from file and then
$database = new medoo();