PHPackages                             gpaddis/timeslot - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. gpaddis/timeslot

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

gpaddis/timeslot
================

A PHP library for managing timeslots.

v0.2(8y ago)56014[1 PRs](https://github.com/gpaddis/timeslot/pulls)MITPHP

Since Sep 19Pushed 5y ago1 watchersCompare

[ Source](https://github.com/gpaddis/timeslot)[ Packagist](https://packagist.org/packages/gpaddis/timeslot)[ RSS](/packages/gpaddis-timeslot/feed)WikiDiscussions master Synced 2d ago

READMEChangelogDependencies (2)Versions (4)Used By (0)

Timeslot
========

[](#timeslot)

A simple yet flexible timeslot management API.

[![Build Status](https://camo.githubusercontent.com/73b869a3fde218cb5d88d3906bee673634a2d581bd02d9ce1d1f20c32e274522/68747470733a2f2f7472617669732d63692e6f72672f677061646469732f74696d65736c6f742e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/gpaddis/timeslot)

**Warning: this library is in development and might change significantly before v1.0 is released.**

**Timeslot** uses [Carbon](https://github.com/briannesbitt/Carbon) to manage date and time. You can create a new timeslot passing it a Carbon instance, a DateTime instance or a valid datetime string instead. The complete syntax is `new Timeslot($start, $hours, $minutes)`. Fluent methods, getters and setters are available as well.

To get started, read the documentation in the [library wiki](https://github.com/gpaddis/timeslot/wiki/).

Examples
--------

[](#examples)

```
// Create a 30-minutes timeslot from a string starting at 15:00
$timeslot = new Timeslot('2017-08-19 15:00:00', 0, 30);

// Get its start and end time as datetime strings (Carbon)
$timeslot->start()->toDateTimeString(); // 2017-08-19 15:00:00
$timeslot->end()->toDateTimeString();   // 2017-08-19 15:29:59

// Create a TimeslotCollection based on the $timeslot, containing 4 timeslots
$collection = TimeslotCollection::create($timeslot, 4);

// A TimeslotCollection has a start and end time as well...
$collection->start()->toDateTimeString(); // 2017-08-19 15:00:00
$collection->end()->toDateTimeString();   // 2017-08-19 16:59:59 (2 hours later)

// ...and you can get the single timeslots if you want.
$collection->get(1)->start()->toDateTimeString(); // 2017-08-19 15:30:00 (second timeslot in the collection)
```

[Check the wiki](https://github.com/gpaddis/timeslot/wiki/) for a full description of all available methods.

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity55

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 ~3 days

Total

2

Last Release

3156d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/17858de4f7a60f8cf85710013e1e4c87b167c7fb0457d59902f6e645c1192a7d?d=identicon)[gpaddis](/maintainers/gpaddis)

---

Top Contributors

[![gpaddis](https://avatars.githubusercontent.com/u/29100294?v=4)](https://github.com/gpaddis "gpaddis (57 commits)")

---

Tags

datetimetimeslot

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gpaddis-timeslot/health.svg)

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

###  Alternatives

[ashallendesign/short-url

A Laravel package for creating shortened URLs for your web apps.

1.4k1.9M4](/packages/ashallendesign-short-url)[solspace/craft-freeform

The most flexible and user-friendly form building plugin!

52664.9k12](/packages/solspace-craft-freeform)[intervention/zodiac

Zodiac Sign Calculator

58191.7k](/packages/intervention-zodiac)[erlandmuchasaj/laravel-gzip

Gzip your responses.

40129.3k2](/packages/erlandmuchasaj-laravel-gzip)[solspace/craft-calendar

The most powerful event management and calendaring plugin!

1830.8k1](/packages/solspace-craft-calendar)

PHPackages © 2026

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