PHP code example of phpnomad / sqlite-integration
1. Go to this page and download the library: Download phpnomad/sqlite-integration 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/ */
phpnomad / sqlite-integration example snippets
use PHPNomad\Di\Container\Container;
use PHPNomad\Loader\Bootstrapper;
use PHPNomad\SQLite\Integration\Initializer as SQLiteIntegration;
$container = new Container();
$bootstrapper = new Bootstrapper(
$container,
new SQLiteIntegration()
);
$bootstrapper->load();
bash
PHPNOMAD_SQLITE_DSN="sqlite:/var/lib/myapp/data.db" php bin/...