PHPackages                             lubos/cakephp-interval - 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. lubos/cakephp-interval

ActiveCakephp-plugin[Framework](/categories/framework)

lubos/cakephp-interval
======================

Interval plugin for CakePHP

0.1.1(9y ago)1112MITPHPPHP &gt;=5.5.9

Since Jan 10Pushed 9y ago1 watchersCompare

[ Source](https://github.com/LubosRemplik/CakePHP-Interval)[ Packagist](https://packagist.org/packages/lubos/cakephp-interval)[ Docs](https://github.com/LubosRemplik/CakePHP-Interval)[ RSS](/packages/lubos-cakephp-interval/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (3)Used By (0)

Interval plugin for CakePHP
===========================

[](#interval-plugin-for-cakephp)

[![Build Status](https://camo.githubusercontent.com/8bd13f007cfc2614872052d44fbfce1f25101f8c74b7f80631be17ed8e9a991a/68747470733a2f2f7472617669732d63692e6f72672f4c75626f7352656d706c696b2f43616b655048502d496e74657276616c2e737667)](https://travis-ci.org/LubosRemplik/CakePHP-Interval)[![Latest Stable Version](https://camo.githubusercontent.com/bb9a1d293b8ea2b42b434f7f88374f368e80c99e9646e06418058a551c20553c/68747470733a2f2f706f7365722e707567782e6f72672f6c75626f732f63616b657068702d696e74657276616c2f762f737461626c652e737667)](https://packagist.org/packages/lubos/cakephp-interval)[![Total Downloads](https://camo.githubusercontent.com/a681d784830f95bdfcf832cf1ae49bb85233e92438394abd6ca5c37c6005f97a/68747470733a2f2f706f7365722e707567782e6f72672f6c75626f732f63616b657068702d696e74657276616c2f646f776e6c6f6164732e737667)](https://packagist.org/packages/lubos/cakephp-interval)[![Latest Unstable Version](https://camo.githubusercontent.com/562876c8d36d658534181d38bf1570ba6522bccfa5b384fd00e40e9aabaf7a41/68747470733a2f2f706f7365722e707567782e6f72672f6c75626f732f63616b657068702d696e74657276616c2f762f756e737461626c652e737667)](https://packagist.org/packages/lubos/cakephp-interval)[![License](https://camo.githubusercontent.com/4dfc51c8792d1659ec4f1ead3e002f7e60c20f830164f008c3c5ec6bb39da0c5/68747470733a2f2f706f7365722e707567782e6f72672f6c75626f732f63616b657068702d696e74657276616c2f6c6963656e73652e737667)](https://packagist.org/packages/lubos/cakephp-interval)

Installation
------------

[](#installation)

You can install this plugin into your CakePHP application using [composer](http://getcomposer.org).

The recommended way to install composer packages is:

```
composer require lubos/cakephp-interval

```

Load plugin in bootstrap.php file

```
bin/cake plugin load Interval

```

Usage
-----

[](#usage)

In human readable string, following can be used

w = week
d = day
h = hour
m = minute
s = second

```
$Interval = new \Interval\Interval\Interval();

// output 2w 6h
echo $Interval->toHuman((2 * 5 * 8 + 6) * 3600);

// output 36000
echo $Interval->toSeconds('1d 2h');
```

You can use `./src/Traits/IntervalTrait.php` or cakephp component / helper.

Helper example

```
// in AppView
$this->loadHelper('Interval', ['className' => '\Interval\View\Helper\IntervalHelper']);

// in Template, output 2w 6h

```

See ./tests/TestCase/Interval/IntervalTest.php for more examples

Bugs &amp; Features
-------------------

[](#bugs--features)

For bugs and feature requests, please use the issues section of this repository.

If you want to help, pull requests are welcome.
Please follow few rules:

- Fork &amp; clone
- Code bugfix or feature
- Follow [CakePHP coding standards](https://github.com/cakephp/cakephp-codesniffer)
- Unit tests

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community4

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

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

Total

2

Last Release

3411d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/ed9f8a00a3f474c6e003435f23d0873f000ab024fc4b8989f1009a14af1eb7d7?d=identicon)[LubosRemplik](/maintainers/LubosRemplik)

---

Tags

plugincakephpinterval

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/lubos-cakephp-interval/health.svg)

```
[![Health](https://phpackages.com/badges/lubos-cakephp-interval/health.svg)](https://phpackages.com/packages/lubos-cakephp-interval)
```

###  Alternatives

[cakephp/bake

Bake plugin for CakePHP

11211.2M158](/packages/cakephp-bake)[friendsofcake/bootstrap-ui

Bootstrap front-end framework support for CakePHP

3492.1M32](/packages/friendsofcake-bootstrap-ui)[jeremyharris/cakephp-lazyload

An association lazy-loader for CakePHP

61591.9k2](/packages/jeremyharris-cakephp-lazyload)[cakephp/queue

Queue plugin for CakePHP

36257.9k12](/packages/cakephp-queue)[cakedc/mixer

A plugin to discover and manage CakePHP plugins and generate skeleton application code.

4521.2k1](/packages/cakedc-mixer)[cakephp/twig-view

Twig powered View for CakePHP

155.1M10](/packages/cakephp-twig-view)

PHPackages © 2026

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