bookingbat / application
Installs: 24
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 1
Open Issues: 7
Language:CSS
Requires
- bookingbat/engine: 0.2.0
- zendframework/zendframework1: 1.12.*
Requires (Dev)
- phpunit/phpunit: 3.7.19
This package is not auto-updated.
Last update: 2024-11-04 15:36:20 UTC
README
Online Appointment Booking
Booking Bat allows you to take appointments from your website. Allow your customers to schedule appointments with Booking Bat!
Install
Create Project
Use composer to install the project
composer create-project --stability="dev" bookingbat/application
Install Database
Copy database-config.dist.ini
to database-config.ini
and edit in your appropriate database credentials. Then run install.sql
Email queue
The application sends emails for appointment confirmations & reminders. These are added to a queue which is then batched. To batch the queue hit the URL /email/send
. You may wish to add a cron job to batch out the email queue at predefined intervals.
Run Tests
To run the unit tests simply run
./test
Ensure xdebug is enabled for your CLI webserver. With xdebug present, ZF2 redirects do not run if a PHP warning was generated earlier. Without xdebug they do work. Therefore there may be a test failure in Travis CI (which uses xdebug) that you don't see locally, if you don't do this:
php --server=localhost:8000 --docroot="public" &
echo '<?php phpinfo();' > public/phpinfo.php
#find the php.ini path and load xdebug like you normally do
ps aux | grep php
# (find the PID of the webserver & kill it, then restart it)