INSTALLATION GUIDE
1. PREREQUISITES
- Install PHP 8.2 or higher
- Install PostgreSQL 12 or higher
- Install Composer
- Enable pgsql PHP extension in php.ini
2. CREATE DATABASE
Run the following command in PostgreSQL:
psql -U postgres -c "CREATE DATABASE library_management ENCODING 'UTF8';"
3. CLONE/EXTRACT PROJECT
Navigate to your workspace and extract the project files
4. INSTALL PHP DEPENDENCIES
Open command prompt in the project directory and run:
composer install
5. CONFIGURE ENVIRONMENT FILE
- Copy .env.example to .env (if exists)
- Update .env with your database credentials:
database.default.hostname = localhost
database.default.database = library_management
database.default.username = postgres
database.default.password = YOUR_PASSWORD
database.default.DBDriver = Postgre
database.default.port = 5432
database.default.charset = utf8
6. RUN DATABASE MIGRATIONS
Execute migrations to create database tables:
php spark migrate
7. SEED TEST DATA (OPTIONAL)
Load initial test data with user roles:
php spark db:seed UserSeeder
8. START DEVELOPMENT SERVER
Start the CodeIgniter development server:
php spark serve
The application will be available at: http://localhost:8080
9. ACCESS APPLICATION
Open your web browser and go to: http://localhost:8080