MasterLeaf Documentation
Complete enterprise deployment guides, server configurations, database setup, payment webhooks, and production architectures for your purchased source code platforms.
Quickstart & Unzipping Package
Get your purchased platform running in under 5 minutes.
Immediately after checkout, you receive an automated instant ZIP download containing 100% full unencrypted PHP/Laravel source code, database migrations, configuration files, and asset repositories.
# 1. Extract the MasterLeaf Package
unzip MasterLeaf-Enterprise-Commerce.zip -d /var/www/masterleaf
# 2. Assign Web Server Permissions
cd /var/www/masterleaf
sudo chown -R www-data:www-data .
sudo chmod -R 775 storage bootstrap/cache uploads
# 3. Configure Database Credentials
cp .env.example .env
nano .env
Server Requirements & PHP Extensions
Required environments for optimal speed and reliability.
PHP 8.1, 8.2, or 8.3 with OPcache enabled for maximum throughput.
MySQL 8.0+ or MariaDB 10.5+ with InnoDB storage engine.
pdo_mysql, curl, mbstring, gd, zip, bcmath, openssl, json
Nginx 1.20+, Apache 2.4+ (with mod_rewrite enabled), or LiteSpeed.
sudo apt update && sudo apt install -y php8.3 php8.3-fpm php8.3-mysql php8.3-curl \
php8.3-mbstring php8.3-gd php8.3-zip php8.3-bcmath php8.3-intl php8.3-xml
Web Server Virtual Host Configurations
Clean URL rewrites for Nginx & Apache.
server {
listen 80;
server_name yourdomain.com;
root /var/www/masterleaf/public;
add_header X-Frame-Options "SAMEORIGIN";
add_header X-Content-Type-Options "nosniff";
index index.php index.html;
charset utf-8;
location / {
try_files $uri $uri/ /index.php?$query_string;
}
location ~ \.php$ {
fastcgi_pass unix:/var/run/php/php8.3-fpm.sock;
fastcgi_param SCRIPT_FILENAME $realpath_root$fastcgi_script_name;
include fastcgi_params;
}
}
MySQL Schema Import & Migrations
Normalized database structures with sample dummy data.
Every package includes an optimized `.sql` schema with normalized foreign key relationships and index keys. You can import via phpMyAdmin or standard MySQL CLI:
# Create Database
mysql -u root -p -e "CREATE DATABASE masterleaf_db CHARACTER SET utf8mb4 COLLATE utf8mb4_unicode_ci;"
# Import SQL Dump
mysql -u root -p masterleaf_db < database/schema.sql
PayU & PhonePe Webhook Gateways
Secure automated transaction settlement.
The platform includes pre-built drivers for Indian & Global payment providers with SHA-512 checksum validation and automated webhook listeners.
/webhook.php and /phonepe-callback.php without CSRF blockage.
Package Directory & File Structure
Well-organized modular codebase.
masterleaf-platform/
├── app/ # Controllers, Models, Middleware & Services
├── config/ # Database, Mail, and Gateway Credentials
├── database/ # Normalized SQL schemas & seeders
├── includes/ # Reusable UI components & layouts
├── public/ # Web root: index.php, assets, images
│ ├── assets/ # Tailored Vanilla CSS, JS scripts, fonts
│ └── uploads/ # User and merchant uploaded files
├── routes/ # Clean REST API endpoints & web routes
└── storage/ # Logs, session data, and cache store
Production Hardening & SSL Security
Industry-standard defenses against OWASP Top 10.
- Prepared PDO Statements: 100% protection against SQL Injection throughout all queries.
- XSS Output Encoding: All user variables sanitized via htmlspecialchars with UTF-8 flags.
- Encrypted Session Storage: Cookies secured with HttpOnly, Secure, and SameSite=Lax attributes.
Lifetime Commercial Ownership
Zero recurring SaaS fees. Complete white-label freedom.
Your single one-time payment grants you perpetual commercial rights to deploy the platform on your own cloud servers, modify the code, integrate custom business logic, and rebrand it for your enterprise or agency clients.