PHP code example of planetacodigo / pla

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

    

planetacodigo / pla example snippets



use phpLiteAdmin\phpLiteAdmin;

$phpLiteAdmin = new phpLiteAdmin();
$phpLiteAdmin->setPassword('admin');
$phpLiteAdmin->setDirectory('.');
$phpLiteAdmin->setDatabases([
    [
        'path'=> 'database1.sqlite',
        'name'=> 'Database 1'
    ],
    [
        'path'=> 'database2.sqlite',
        'name'=> 'Database 2'
    ]
]);

$phpLiteAdmin->web();