Green Cash β South African salary advance loan platform
# GreenCash
**Salary advance loans for salaried South Africans.** Apply online, 100% digital, available 24 hours.
π **Production:**
greencash.co.za
---
## Stack
| Layer | Tech |
|---|---|
| Server | PHP 8.2 (procedural), Apache, mod_rewrite |
| Database | MySQL 8 (PDO with prepared statements) |
| Customer-facing UI | Vanilla HTML + CSS + JS |
| Admin / Broker portals | Bootstrap 5 |
| Mail | PHPMailer / native `mail()` |
| Hosting | Afrihost shared cPanel |
No build step, no Node toolchain β the customer-facing site is plain files served by Apache.
---
## Local development
You need PHP 8.2+, MySQL, and Apache. The easiest path is XAMPP for Windows/Mac.
1. Clone into your Apache `htdocs/` (or document root):
```bash
git clone
github.com
cd greencash
```
2. Create your local environment file:
```bash
cp includes/env.example.php includes/env.php
```
Edit `includes/env.php` with your local DB credentials and `APP_URL`.
3. Import the schema:
```bash
mysql -u root greencash < database/greencash.sql
```
(Create the DB first: `CREATE DATABASE greencash CHARACTER SET utf8mb4;`)
4. Visit `
localhost` in a browser.
---
## Project layout
```
greencash/
βββ index.php Landing page (hero, calculator-replacement, products, employers, apply, FAQ)
βββ apply.php Multi-step loan application POST handler
βββ login.php, verify-otp.php Admin/broker authentication
βββ track-application.php Self-service application status lookup
βββ contact.php Public contact form + complaints procedure
βββ partnership-enquiry.php Employers band modal POST handler
βββ application-submitted.php Post-submission confirmation
βββ privacy-policy.php
βββ terms-and-conditions.php
βββ 404.php, 500.php
βββ admin/ Admin panel (Bootstrap 5)
βββ assets/ css/, js/, img/ (logos, favicons, OG card)
βββ includes/ Shared header/footer β¦