library_erp/
├── index.php ← Main dashboard (open this in browser)
├── setup.php ← Run once to create DB tables + seed data
├── database.sql ← Full schema + seed data (used by setup.php)
├── .htaccess ← Apache rewrite rules
├── api/
│ └── index.php ← REST API (handles all AJAX requests)
└── includes/
└── db.php ← Database config & PDO connection
Edit includes/db.php and setup.php — update:
define('DB_HOST', 'localhost');
define('DB_NAME', 'library_erp');
define('DB_USER', 'root'); // your MySQL username
define('DB_PASS', ''); // your MySQL passwordUpload the entire library_erp/ folder to your web server (Apache/Nginx with PHP 7.4+).
Visit: http://yourserver.com/library_erp/setup.php
This creates all tables and seeds sample data.
After setup succeeds, delete setup.php from your server.
Visit: http://yourserver.com/library_erp/
- PHP 7.4+ with PDO and PDO_MySQL extensions
- MySQL 5.7+ or MariaDB 10.3+
- Apache with mod_rewrite (or Nginx with rewrite rules)
✅ Dashboard with live stats, batch occupancy, expense tracker
✅ Student enrollment with discount system
✅ Batch management (add/edit/delete)
✅ Seat allocation with fee-status color coding
✅ Attendance (mark/save by date per student)
✅ Books catalog (add/delete, ISBN, shelf)
✅ Book issue & return with auto fine calculation
✅ Fee collection (Cash/UPI/NEFT/Split modes)
✅ Invoice generation & print
✅ Expense tracking
✅ WhatsApp messaging (opens wa.me links with pre-filled messages)
✅ Staff management with role-based permissions
✅ Notifications system
✅ Reports (Monthly/Fee/Books/Attendance/Expense/Student)
✅ Analytics dashboard
✅ Settings (library info, fine rate, loan days)