Professional PHP-based business card generator with visual template editor. Full multi-tenant SaaS platform where companies can manage employees, create branded templates, and generate downloadable business cards instantly.
- ✅ Multi-Tenant Architecture - Complete company isolation
- ✅ Visual Template Editor - Drag-and-drop template customization
- ✅ Bilingual Support - English & Arabic
- ✅ Database Ready - MySQL/PostgreSQL support with JSON fallback
- ✅ Billing Integration - Amwal Pay & Stripe ready
- ✅ Subscription Plans - Free, Pro, Enterprise tiers
- ✅ Employee Management - CSV/Excel import support
- ✅ Card Generation - PNG export with HTML2Canvas
- ✅ Installation Wizard - Complete 7-step setup process
- PHP: 7.4+ with PDO extension
- Database: MySQL 5.7+ / MariaDB 10.2+ OR PostgreSQL 10+
- Web Server: Apache/Nginx or PHP built-in server
- Optional: Composer (for Excel support via PhpSpreadsheet)
-
Clone the repository:
git clone https://github.com/zaabi1995/business-card-generator.git cd business-card-generator -
Set up database:
- Create a MySQL or PostgreSQL database
- Note the database credentials
-
Run the installation wizard:
- Navigate to
/installin your browser - Follow the 7-step wizard:
- ✅ Requirements check
- ✅ Database configuration
- ✅ Database migration
- ✅ Site configuration
- ✅ Billing configuration (optional)
- ✅ Admin account creation
- ✅ Complete!
- Navigate to
-
Access your application:
- 🏠 Homepage:
http://your-domain/ - 🏢 Create company:
http://your-domain/company/register.php - ⚙️ Admin panel:
http://your-domain/admin/
- 🏠 Homepage:
See DOCUMENTATION.md for detailed manual installation instructions.
See DOCUMENTATION.md for complete configuration guide including:
- Database settings
- Billing integration (Amwal Pay/Stripe)
- Webhook setup
- Security configuration
- Register: Navigate to
/company/register.php - Login: Navigate to
/company/login.php - Manage employees: Navigate to
/admin/employees.php - Create templates: Navigate to
/admin/index.php - Manage billing: Navigate to
/admin/billing.php
- Go to homepage
- Enter company code and email
- Generate and download business card
📚 Full usage guide: See DOCUMENTATION.md
# Start PHP built-in server
php -S 127.0.0.1:8000
# Or use your preferred web server
# Apache/Nginx configuration examples in docs/DOCUMENTATION.mdThen open http://127.0.0.1:8000
├── admin/ # Admin panel
│ ├── index.php # Template management
│ ├── employees.php # Employee CRUD
│ ├── billing.php # Billing management
│ └── ...
├── company/ # Company management
├── install/ # Installation wizard (7-step)
├── webhooks/ # Payment webhooks
├── database/ # Schema & migrations
├── includes/ # Core classes
│ ├── Database.php # Database connection
│ ├── DatabaseAdapter.php # DB/JSON adapter
│ ├── Billing.php # Billing integration
│ └── functions.php # Helper functions
└── config.example.php # Configuration template
📚 Full project structure: See DOCUMENTATION.md
| Plan | Employees | Templates | Storage | Price |
|---|---|---|---|---|
| Free | 10 | 2 | 100MB | $0/month |
| Pro | 100 | 10 | 1GB | $29.99/month |
| Enterprise | Unlimited | Unlimited | Unlimited | $99.99/month |
- ✅
config.phpcontains sensitive data and is excluded from Git - ✅ Password hashing (bcrypt)
- ✅ SQL injection prevention (PDO prepared statements)
- ✅ Input sanitization
⚠️ CSRF protection (recommended - see DOCUMENTATION.md)⚠️ Rate limiting (recommended - see DOCUMENTATION.md)
Security Policy: See SECURITY.md for reporting vulnerabilities.
📖 Complete Documentation - Comprehensive guide covering:
- 📋 Installation & Setup
- 🏗️ Architecture & Design
- ⚙️ Configuration
- 📖 Usage Guide
- 🗄️ Database Structure
- 💳 Billing Integration
- 🔒 Security
- 🛠️ Development
- 🗺️ Roadmap
- 🐛 Troubleshooting
Quick Links:
Integration Guides:
- Payments: Paymob Oman is the current gateway (see
includes/Payment.php). Amwal Pay is legacy, archived at docs/archived/AMWAL_PAY_INTEGRATION.md. - Accounting: BHD-ERP is current. Odoo is legacy, archived at docs/archived/ODOO_INTEGRATION.md.
- WhatsApp Integration
- Deployment Checklist
Contributions are welcome! Please read our Contributing Guide for details on:
- Code of conduct
- Development setup
- Pull request process
- Coding standards
This project is licensed under the MIT License - see the LICENSE file for details.
- Bug Reports: Open an issue
- Feature Requests: Suggest a feature
- Questions: Check Documentation or open a discussion
If you find this project useful, please consider giving it a star ⭐
Current Version: 2.0
Status: ✅ Production Ready (90%)
Last Updated: December 2024
Made with ❤️ for businesses who need professional business cards instantly