PHPackages                             germania-kg/opening-hours - 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. germania-kg/opening-hours

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

germania-kg/opening-hours
=========================

Interfaces and implementation for Opening Hours and Times

1.1.5(3y ago)065MITPHPPHP ^7.2|^8.0CI failing

Since Oct 10Pushed 3y ago2 watchersCompare

[ Source](https://github.com/GermaniaKG/OpeningTimes)[ Packagist](https://packagist.org/packages/germania-kg/opening-hours)[ RSS](/packages/germania-kg-opening-hours/feed)WikiDiscussions master Synced today

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

[![](https://camo.githubusercontent.com/cac3140c0c6e758f67a1ba689683ced67aa2d534e2187d6e03c5c721ffe3b976/68747470733a2f2f7374617469632e6765726d616e69612d6b672e636f6d2f6c6f676f732f67612d6c6f676f2d323031362d7765622e7376677a)](https://camo.githubusercontent.com/cac3140c0c6e758f67a1ba689683ced67aa2d534e2187d6e03c5c721ffe3b976/68747470733a2f2f7374617469632e6765726d616e69612d6b672e636f6d2f6c6f676f732f67612d6c6f676f2d323031362d7765622e7376677a)

---

Germania KG · Opening Hours
===========================

[](#germania-kg--opening-hours)

[![Packagist](https://camo.githubusercontent.com/bae93389d27161bf66863b8fea82a1b676add4cf39925746f3726f8feb009a29/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6765726d616e69612d6b672f6f70656e696e672d686f7572732e7376673f7374796c653d666c6174)](https://packagist.org/packages/germania-kg/opening-hours)[![PHP version](https://camo.githubusercontent.com/1557b9f23525664bbfac864614fd19fdfdb0919066d6923ae1e2ff2e4ddec7b9/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f6765726d616e69612d6b672f6f70656e696e672d686f7572732e737667)](https://packagist.org/packages/germania-kg/opening-hours)[![Build Status](https://camo.githubusercontent.com/f4013f3bcd9c305be248597607ffcf4a421a9aa8c22617a6d3d84bbe07ea8b8c/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4765726d616e69614b472f4f70656e696e6754696d65732e7376673f6c6162656c3d5472617669732532304349)](https://travis-ci.org/GermaniaKG/OpeningTimes)[![Scrutinizer Code Quality](https://camo.githubusercontent.com/294dea9bc14154e47b7273869a3d50c9f2b9ae81528ae2c759a2858f2276ff6d/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f4f70656e696e6754696d65732f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/OpeningTimes/?branch=master)[![Code Coverage](https://camo.githubusercontent.com/d3ebc59f59ada31f2554cef9ebaa4513b2f05f84ab8f5084e096fa11081dbb85/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f4f70656e696e6754696d65732f6261646765732f636f7665726167652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/OpeningTimes/?branch=master)[![Build Status](https://camo.githubusercontent.com/8fd1078ef214b12b821aa2d6f3c00fafc35be33197a2caf3460ab8d3cd458205/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f4765726d616e69614b472f4f70656e696e6754696d65732f6261646765732f6275696c642e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/GermaniaKG/OpeningTimes/build-status/master)

Installation with Composer
--------------------------

[](#installation-with-composer)

```
$ composer require germania-kg/opening-hours
```

Usage
-----

[](#usage)

**OpeningTimesInterface**

```
interface Germania\OpeningTimes\OpeningTimesInterface

// Textual description regarding the opening times
public function getDescription() : ?string;
public function setDescription( string $text = null);

// Set information for certain days
public function getDay( string $day ) : ?string;
public function setDay( string $day, string $times = null );

// Common day interceptors, getter and setter
public function getMonday()    : ?string;
public function getTuesday()   : ?string;
public function getWednesday() : ?string;
public function getThursday()  : ?string;
public function getFriday()    : ?string;
public function getSaturday()  : ?string;
public function getSunday()    : ?string;
```

**Class OpeningTimes**

```
use Germania\OpeningTimes\OpeningTimes;

$open = new OpeningTimes;

$open->setDescription("nach Vereinbarung");
$open->getDescription(); // "nach Vereinbarung"

$open->setDay("monday", "09 to 18");
$open->getDay("monday"); // "09 to 18"

$open->getMonday(); // null
echo $open->setMonday("whole day")->getMonday(); // "whole day"

// and also these Setters:
// - setMonday()
// - setTuesday()
// - setWednesday()
// - setThursday()
// - setFriday()
// - setSaturday()
// - setSunday()
```

Issues
------

[](#issues)

See [full issues list.](https://github.com/GermaniaKG/OpeningTimes/issues)

Roadmap
-------

[](#roadmap)

Fill in planned or desired features

Development
-----------

[](#development)

```
$ git clone https://github.com/GermaniaKG/OpeningTimes.git
$ cd OpeningTimes
$ composer install
```

Unit tests
----------

[](#unit-tests)

Either copy `phpunit.xml.dist` to `phpunit.xml` and adapt to your needs, or leave as is. Run [PhpUnit](https://phpunit.de/) test or composer scripts like this:

```
$ composer test
# or
$ vendor/bin/phpunit
```

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity8

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity70

Established project with proven stability

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

Recently: every ~190 days

Total

13

Last Release

1412d ago

PHP version history (2 changes)1.0.0PHP ^7.2

1.1.3PHP ^7.2|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/ba1899945696f873f95de5e2b8f7519960f1b4e59f61e607b4cbbd8880d244e1?d=identicon)[germania-kg](/maintainers/germania-kg)

---

Top Contributors

[![tomkyle](https://avatars.githubusercontent.com/u/412560?v=4)](https://github.com/tomkyle "tomkyle (36 commits)")

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/germania-kg-opening-hours/health.svg)

```
[![Health](https://phpackages.com/badges/germania-kg-opening-hours/health.svg)](https://phpackages.com/packages/germania-kg-opening-hours)
```

PHPackages © 2026

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