2017 © Pedro Peláez
 

library engine

A framework for defining recurring windows of availability, and "subtracting" bookings/appointments from them.

image

bookingbat/engine

A framework for defining recurring windows of availability, and "subtracting" bookings/appointments from them.

  • Wednesday, June 26, 2013
  • by joshribakoff
  • Repository
  • 3 Watchers
  • 14 Stars
  • 146 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 3 Forks
  • 1 Open issues
  • 3 Versions
  • 0 % Grown

The README.md

Latest Stable Version Total Downloads Build Status, (*1)

Introduction

A framework for defining recurring windows of availability, and "subtracting" bookings/appointments from them. Has features for multiple windows of availability within one day, automatically 'fixes' overlapping windows, and can enforce padding between bookings., (*2)

Example

Lets set the availability window from 9-11am, and 11:30am-4pm, (*3)

$availability = new Availability(array(
    array(
        'start' => '09:00:00',
        'end' => '11:00:00'
    ),
    array(
        'start' => '11:30:00',
        'end' => '16:00:00'
    ),
));

Now we'll add a booking from 3:30-4pm & get back the adjusted availability, (*4)

$newAvailability = $availability->addBooking(array(
    'start' => '15:30',
    'end' => '16:00'
));

$newAvailability will show the actual availability is 9-11am, and 11:30-3:30pm:, (*5)

array(
    array(
        'start' => '09:00:00',
        'end' => '11:00:00'
    ),
    array(
        'start' => '11:30:00',
        'end' => '15:30:00'
    ),
);

The Versions

26/06 2013

dev-master

9999999-dev http://bookingbat.com

A framework for defining recurring windows of availability, and "subtracting" bookings/appointments from them.

  Sources   Download

OSL 3.0

The Requires

  • php >=5.3.3

 

The Development Requires

by Josh Ribakoff

23/06 2013

0.2.0

0.2.0.0 http://bookingbat.com

A framework for defining recurring windows of availability, and "subtracting" bookings/appointments from them.

  Sources   Download

OSL 3.0

The Requires

  • php >=5.3.3

 

by Josh Ribakoff

19/06 2013

0.1.0

0.1.0.0 https://github.com/bookingbat/availability

A framework for defining recurring windows of availability, and "subtracting" bookings/appointments from them.

  Sources   Download

BSD-3-Clause

The Requires

  • php >=5.3.3

 

by Josh Ribakoff