A minimalist, single-file wiki engine powered by PHP and SQLite. Designed to be simple, fast, and easy to deploy.
- Single File: The entire application logic, styling, and scripting are contained within
wiki.php. - SQLite Backend: Data is stored in a local
db/wiki.dbfile. No database server configuration required. - Smart Editor: A custom-built editor with live syntax highlighting for a seamless writing experience.
- Version Control: Full history of changes for every page, including diff views and one-click restoration.
- Wiki Links: Easily connect your thoughts using
[[Page Name]]syntax. - Responsive & Dark Mode: Beautifully themed for both light and dark system preferences.
- PHP 7.4 or higher
- PHP sqlite3 extension
- PHP mbstring extension
The easiest way to get started is using PHP's built-in development server. By using wiki.php as the router, it will
handle all page requests automatically:
php -S localhost:8000 wiki.phpOnce started, navigate to http://localhost:8000 in your web browser.
To deploy, simply upload wiki.php to any PHP-enabled web server. Ensure the server has write permissions to the
directory so it can create and update the wiki.db file.
For production servers like Nginx or Apache, you should configure them to route all non-existent file requests to
wiki.php.