PHP code example of hidejec / liquido-orm

1. Go to this page and download the library: Download hidejec/liquido-orm 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/ */

    

hidejec / liquido-orm example snippets

bash
bash

# File name: dbconfig.liquido.php

  
  	define( "DB_DSN", "mysql:host=localhost;dbname=Database_Name" );
  	define( "DB_USERNAME", "Database_Username" );
  	define( "DB_PASSWORD", "Database_Password" );
 
bash
  $customer = Customer::withId(1);
  
  echo $customer["Username"]; # Prints the username of the customer