A lightweight web-based EPUB reader with scroll navigation, page transitions, dark mode, and font size adjustments.... Designed for a seamless e-reader experience directly in a browser, by connecting to the server PHP installed on a Raspeberry PI or other arm/pc home-server.
- 📚 Upload & Delete EPUBs from the server (
index_reader.php
) from /ebooks sub-folder (usually in /var/www) - 📖 Read EPUBs in the browser (
reader.php
) - 🔄 Navigation Buttons to scroll page by page
- 🌙 Dark Mode toggle (saves preference)
- 🔍 Font Size Adjustment (+/- buttons)
- 📜 Auto Page Switch when reaching bottom/top
- ⬆ Previous Page when reaching top
- 🎯 Mobile Optimized for small screen & preventing bad gesture (to avoid selecting by better handing)
- ...
- PHP 7.4+
- Web server (Apache, Nginx)
unzip
command installed
cd /var/www #or other place define in PHP config
git clone https://github.com/YOUR-USERNAME/epub-reader.git
cd epub-reader
Point your web server to the epub-reader
directory.
Simply open your browser and go to:
http://your-server/epub-reader/index_reader.php
- Click
Upload EPUB
- Select an
.epub
file from your device - The file will be stored in
/ebooks/
folder
- Choose a file from the dropdown
- Click
Open Book
- ⬅ Left Button → Scroll up (previous section)
- ➡ Right Button → Scroll down (next section)
- Next Page Loads when reaching the bottom
- Previous Page Loads when reaching the top
DARK
button → Toggle dark mode+INCR
/-DECR
→ Adjust font sizeNAV
button → Show/hide navigation buttons📚 MENU
→ Return to index for ebook selection
Feel free to fork, submit PRs, or suggest improvements! 🚀
MIT License - Free to use and modify.