PHP Portable Data Object ( PDO ) has a driver for SQLite database as pdo_sqlite. We can check the support for the driver by using phpinfo().
Use phpinfo() to get PHP installation details, code is here
<?Php
echo phpinfo();
?>
pdo_sqlite
Part of the output is shown here with PDO SQLite support.
To check for different database PDO driver support we can use this code.
var_dump(PDO::getAvailableDrivers());
If SQLite dirver support is missing then follow the instructions at php.ini here to enable the support. ( restart if php.ini is changed )
sqlite3 support
Check phpinfo() to know about sqlite3 library support.
Update or enable sqlite3 library support in your php.ini file.