- PHP 7.4 or higher (PHP 8+ recommended)
- MySQL / MariaDB database
- Apache or Nginx Web Server
- Enabled PHP Extensions:
- mysqli
- pdo_mysql (optional for future updates)
- openssl
- mbstring
- json
- curl
- mod_rewrite enabled (optional for clean URLs)
/public → Public root where index and modules are accessed
/app → MVC application files
/app/controllers → Controller files
/app/models → Data models
/app/views → Views/templates
/app/config → Application configuration + database connection
/database → Contains installation SQL file
The SQL file required for database setup is located at:
/database/phppayroll_install.sql
- Download the PHPPayroll source code and extract it to your web directory.
- Create a new MySQL database (UTF8MB4 recommended).
- Import the SQL file:
/database/phppayroll_install.sql - Open:
Update database credentials:
/app/config/database.phpDB_HOST, DB_NAME, DB_USER, DB_PASS - Open:
Update company and payroll system settings if required.
/app/config/config.php
After successful installation, open your browser:
http://localhost/your-payroll-folder/public/
Example:
http://localhost/phppayroll/public/
Online server:
https://yourdomain.com/public/
Default credentials after installation:
- Email: admin@phppayroll.com
- Password: 123456
If login fails, verify the
password_hashfield in the
phppayroll_userstable isVARCHAR(255)and not truncated.
/public/uploads→ Writable for uploads (if enabled)/app/logs→ Writable for system logs (if enabled)
- Delete
/database/phppayroll_install.sqlafter installation. - Change admin password immediately after first login.
- Keep database configuration private and secure.
- Do not expose
/app/configfolder via the web.
max_execution_time = 300memory_limit = 512Mupload_max_filesize = 32Mpost_max_size = 32M
- Website: https://www.phppayroll.com
- Live Demo: https://www.phppayroll.com/demo/
- Download: https://www.phppayroll.com/download/
- Documentation: https://www.phppayroll.com/documentation/
- Features: https://www.phppayroll.com/features/
- Contact: https://www.phppayroll.com/contact/
PHPPayroll is licensed under the MIT Open Source License.
You may use, modify, rebrand, and deploy commercially while preserving this notice.
Thank you for choosing PHPPayroll Open Source!