PHPackages                             bookingbat/engine - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. bookingbat/engine

ActiveLibrary[Framework](/categories/framework)

bookingbat/engine
=================

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

0.2.0(12y ago)151772[1 issues](https://github.com/bookingbat/engine/issues)1OSL 3.0PHPPHP &gt;=5.3.3

Since Jun 19Pushed 12y ago4 watchersCompare

[ Source](https://github.com/bookingbat/engine)[ Packagist](https://packagist.org/packages/bookingbat/engine)[ Docs](http://bookingbat.com)[ RSS](/packages/bookingbat-engine/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependenciesVersions (3)Used By (1)

[![Latest Stable Version](https://camo.githubusercontent.com/65b7f87c7a69c7120b4899629f4a352b97adca499fdfe6e3fd25515e1b2cdfd1/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6b696e676261742f656e67696e652f76657273696f6e2e706e67)](https://packagist.org/packages/bookingbat/engine)[![Total Downloads](https://camo.githubusercontent.com/3d2cbb3cf76c2012d6d819fc5a01cd9268103437407048153d08c0896dffda1a/68747470733a2f2f706f7365722e707567782e6f72672f626f6f6b696e676261742f656e67696e652f642f746f74616c2e706e67)](https://packagist.org/packages/bookingbat/engine)[![Build Status](https://camo.githubusercontent.com/d341eb29bfe65dc0e207a9877b160e7f884913eedc8d94541a173be46b377fdc/68747470733a2f2f7472617669732d63692e6f72672f626f6f6b696e676261742f656e67696e652e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/bookingbat/engine)

Introduction
============

[](#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.

Example
=======

[](#example)

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

```
$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 &amp; get back the adjusted availability

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

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

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

```

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~4 days

Total

2

Last Release

4708d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4021306?v=4)[Josh Ribakoff](/maintainers/joshribakoff)[@joshribakoff](https://github.com/joshribakoff)

---

Top Contributors

[![joshribakoff](https://avatars.githubusercontent.com/u/4021306?v=4)](https://github.com/joshribakoff "joshribakoff (34 commits)")

### Embed Badge

![Health badge](/badges/bookingbat-engine/health.svg)

```
[![Health](https://phpackages.com/badges/bookingbat-engine/health.svg)](https://phpackages.com/packages/bookingbat-engine)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
