PHPackages                             bramdeleeuw/silverstripe-openinghours - 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. bramdeleeuw/silverstripe-openinghours

ActiveSilverstripe-vendormodule[Utility &amp; Helpers](/categories/utility)

bramdeleeuw/silverstripe-openinghours
=====================================

Add opening hours to a DataObject

1.1.2(3y ago)63774BSD-3-ClausePHP

Since Dec 22Pushed 2y ago1 watchersCompare

[ Source](https://github.com/TheBnl/silverstripe-openinghours)[ Packagist](https://packagist.org/packages/bramdeleeuw/silverstripe-openinghours)[ RSS](/packages/bramdeleeuw-silverstripe-openinghours/feed)WikiDiscussions master Synced today

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

OpeningHours for SilverStripe
=============================

[](#openinghours-for-silverstripe)

Add opening hours to a data object. I suggest adding [silverstripe-australia/addressable](https://github.com/silverstripe-australia/silverstripe-addressable) to add opening hours and address data to a Store site. In the future i would suggest using [bramdeleeuw/silverstripe-schema](https://github.com/TheBnl/silverstripe-schema) to add schema data, like store information, to your site but it's still a work in progress.

To add the opening hours, simply extens on the object that you want to use them on.

```
YourObject:
  extensions:
    - 'Broarm\OpeningHours\OpeningHours'
```

The object comes packed with some methods you can use to display the opening hours with:

```
// Returns the opening hours as a summarized list, this means days with similar opening hours are combined e.g "Mon – Tue"
$openingHourHolder->getOpeningHoursSummarized()

// Returns todays opening hours
$openingHourHolder->getOpeningHoursToday()

// Return the short localized version for the current day (in the loop)
$openingHour->getShortDay();

// Return the short localized version for the current day (in the loop)
$openingHour->getFullDay();

// Return the concatnated days list as a range, only used when looping over the summarized days loop.
$openingHour->getConcatenatedDays();

// Returns true when the From and Till data are equal (shop is closed for that day)
$openingHour->IsClosed();

// Returns true when the current time falls between the opening hours
$openingHour->IsOpenNow();
```

###  Health Score

34

—

LowBetter than 75% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity20

Limited adoption so far

Community11

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 84.6% 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 ~161 days

Recently: every ~366 days

Total

15

Last Release

1227d ago

Major Versions

0.2 → 1.0.02018-01-11

0.2.1 → 1.0.62018-09-08

0.2.2 → 1.1.02019-08-27

### Community

Maintainers

![](https://www.gravatar.com/avatar/6131c03b7f5ba6b10fef192c90d68d57508e84c007a13321df6960b8298e19d1?d=identicon)[TheBnl](/maintainers/TheBnl)

---

Top Contributors

[![TheBnl](https://avatars.githubusercontent.com/u/1334195?v=4)](https://github.com/TheBnl "TheBnl (22 commits)")[![RVXD](https://avatars.githubusercontent.com/u/1586761?v=4)](https://github.com/RVXD "RVXD (4 commits)")

---

Tags

pagesilverstripelayoutslice

### Embed Badge

![Health badge](/badges/bramdeleeuw-silverstripe-openinghours/health.svg)

```
[![Health](https://phpackages.com/badges/bramdeleeuw-silverstripe-openinghours/health.svg)](https://phpackages.com/packages/bramdeleeuw-silverstripe-openinghours)
```

###  Alternatives

[silverstripe/userforms

UserForms enables CMS users to create dynamic forms via a drag and drop interface and without getting involved in any PHP code

1371.1M85](/packages/silverstripe-userforms)[dnadesign/silverstripe-elemental

Elemental pagetype and collection of Elements

1141.1M309](/packages/dnadesign-silverstripe-elemental)[symbiote/silverstripe-advancedworkflow

Adds configurable workflow support to the CMS, with a GUI for creating custom workflow definitions.

46302.4k9](/packages/symbiote-silverstripe-advancedworkflow)[silverstripe/sharedraftcontent

Share draft page content with non-CMS users

21424.1k12](/packages/silverstripe-sharedraftcontent)

PHPackages © 2026

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