SQLite Lantern is an open-source SQLite browser and editor for PHP 8. Its clean web interface lets you browse tables, edit records, and run SQL against your .sqlite and .db files. It runs on your own server from a single PHP file.
Try the live demo with a sample database. Changes stay in your browser and reset when you reload.
- Browse, sort, and search rows in SQLite tables and views.
- Add, edit, and delete records.
- Create tables and views, edit columns, and manage indexes and triggers.
- Switch between database files, import and export SQL or CSV, and download a copy of a database file.
Use PHP 8.3 with the pdo_sqlite or sqlite3 extension enabled. Download sqlite-lantern.php from the latest release or build it from source.
git clone https://github.com/uaimedna/sqlite-lantern.git
cd sqlite-lantern
php build.phpCopy sqlite-lantern.php to a directory served by PHP. Create phpliteadmin.config.php next to it with your own password and the absolute path to the folder that contains your SQLite files.
<?php
$password = 'replace-with-a-long-unique-password';
$directory = '/absolute/path/to/your/databases';Keep your database folder outside the web root. Give PHP read access to the database files and their folder. For editing, give PHP write access to both as well. Open sqlite-lantern.php over HTTPS and sign in.
To try the install locally, run php -S 127.0.0.1:8000 from the folder containing the installed files and open SQLite Lantern on localhost.
SQLite Lantern is a fork of phpLiteAdmin. See the original credits and copyright notices.
Licensed under the GNU GPL v3 or later.
