Skip to content

About

A clean, elegant SQLite browser and editor for PHP 8. Open source and self-hosted in one PHP file.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

SQLite Lantern

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.

SQLite Lantern table browser showing records, compact row actions, and a highlighted SQL query

What you can do

  • 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.

How to install

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.php

Copy 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.

Credits and license

SQLite Lantern is based on phpLiteAdmin. See the original credits and copyright notices.

You may copy, modify, and redistribute SQLite Lantern under the GNU GPL v3 or later. The software is provided without warranty.

About

A clean, elegant SQLite browser and editor for PHP 8. Open source and self-hosted in one PHP file.

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages