PHPackages                             sukohi/cutoff - 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. sukohi/cutoff

ActiveLibrary

sukohi/cutoff
=============

1.0.0(10y ago)017PHPPHP &gt;=5.4.0

Since Dec 9Pushed 10y ago1 watchersCompare

[ Source](https://github.com/SUKOHI/Cutoff)[ Packagist](https://packagist.org/packages/sukohi/cutoff)[ RSS](/packages/sukohi-cutoff/feed)WikiDiscussions master Synced 1mo ago

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

Cutoff
======

[](#cutoff)

A Laravel package to manage cutoff day. (As of now, only for Laravel 4)

Installation
============

[](#installation)

Add this package name in composer.json

```
"require": {
  "sukohi/cutoff": "1.*"
}

```

Execute composer command.

```
composer update

```

Register the service provider in app.php

```
'providers' => [
    ...Others...,
    'Sukohi\Cutoff\CutoffServiceProvider',
]

```

Also alias

```
'aliases' => [
    ...Others...,
    'Cutoff' => 'Sukohi\Cutoff\Facades\Cutoff',
]

```

Usage
=====

[](#usage)

*Next Cutoff Date*

```
$base_dt = new Carbon('2015-2-28');
$cutoff_day = 25;
echo Cutoff::nextDate($base_dt, $cutoff_day)->toDateString();   // 2015-03-25

```

*Prev Cutoff Date*

```
$base_dt = new Carbon('2015-2-28');
$cutoff_day = 25;
echo Cutoff::prevDate($base_dt, $cutoff_day)->toDateString();   // 2015-01-25

```

*Range*

```
$year = 2015;
$month = 2;
$day = 31;
Cutoff::range($year, $month, $day);  // start => 2015-02-01, end => 2015-02-28 23:59:59

```

License
=======

[](#license)

This package is licensed under the MIT License.

Copyright 2015 Sukohi Kuhoh

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity59

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

Total

2

Last Release

3804d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2980d59b309d45df3f2e6e51b1d336614da063240b8f76f873f287cd745ec5db?d=identicon)[Sukohi](/maintainers/Sukohi)

---

Top Contributors

[![SUKOHI](https://avatars.githubusercontent.com/u/5362394?v=4)](https://github.com/SUKOHI "SUKOHI (1 commits)")

### Embed Badge

![Health badge](/badges/sukohi-cutoff/health.svg)

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

###  Alternatives

[fumeapp/modeltyper

Generate TypeScript interfaces from Laravel Models

196277.9k](/packages/fumeapp-modeltyper)[slowlyo/owl-admin

基于 laravel、amis 开发的后台框架~

61214.2k26](/packages/slowlyo-owl-admin)

PHPackages © 2026

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