Booking App
booking system for wordpress
by Mohamed ElBarrah · github.com/mohamed-elbarrah/booking-plugin
★ 1stars
1forks
Install
No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:
wp plugin install https://github.com/mohamed-elbarrah/booking-plugin/archive/refs/heads/main.zipBooking App is an admin-first bookings plugin scaffold.
Installation
- Upload the
Booking-appfolder to the/wp-content/plugins/directory. - Run
composer installin the plugin folder (optional) andcomposer dump-autoload. - Activate the plugin through the 'Plugins' screen in WordPress.
📁 Directory Structure
Booking-app/
├── booking-app.php # Entry point (plugin header + bootstrap)
├── AI_RULES.md # Architecture spec & development roadmap
├── composer.json
├── uninstall.php
│
├── includes/ # All PHP classes (13 files)
│ ├── class-plugin.php # Singleton orchestrator
│ ├── class-admin.php # Admin panel + admin REST routes
│ ├── class-frontend.php # Public shortcode + public REST routes
│ ├── class-availability-engine.php ← recently worked on
│ ├── class-booking-service.php
│ ├── class-service-manager.php
│ ├── class-settings.php
│ ├── class-stats-service.php
│ ├── class-timezone-handler.php ← recently added
│ ├── class-logger.php
│ ├── class-bookings-table.php
│ ├── class-services-table.php
│ └── class-consultation-cpt.php
│
├── templates/
│ ├── shortcode-booking.php # Public booking UI (frontend)
│ ├── overview.php # Admin dashboard
│ ├── services.php # Admin services manager page
│ └── settings.php # Admin settings page (tabbed)
│
├── assets/
│ ├── css/
│ │ ├── frontend.css # Public booking app styles
│ │ └── admin.css # Admin panel styles
│ └── js/
│ ├── frontend-booking.js # 4-step public booking wizard (345 lines)
│ ├── admin-services.js # Service CRUD via REST (228 lines)
│ └── admin-settings.js # Settings tabs + break time logic (97 lines)
│
└── logs/ # Secured log directory (.htaccess: deny all)