PHP code example of green-spot / pachira-eloquent

1. Go to this page and download the library: Download green-spot/pachira-eloquent 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/ */

    

green-spot / pachira-eloquent example snippets




Pachira::run([
  "view" => [
    "directory" => __DIR__ . "/views/"
  ],
  "eloquent" => [
    'driver'    => 'mysql',
    'host'      => 'localhost',
    'database'  => 'eloquent_test',
    'username'  => 'root',
    'password'  => '',
    'charset'   => 'utf8',
    'collation' => 'utf8_unicode_ci',
    'prefix'    => '',
  ]
]);