PHPackages                             scientistpun/leasecalculator - 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. scientistpun/leasecalculator

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

scientistpun/leasecalculator
============================

test

00PHP

Since Feb 22Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ScientistPun/LeaseCalculator)[ Packagist](https://packagist.org/packages/scientistpun/leasecalculator)[ RSS](/packages/scientistpun-leasecalculator/feed)WikiDiscussions master Synced today

READMEChangelogDependenciesVersions (1)Used By (0)

LeaseCalculator
===============

[](#leasecalculator)

房屋租赁租金计算器

**功能描述：**1.根据租赁市场以及相关信息计算周期、周期时长、收租日、租金等信息 2.允许选择动态账期和固定账期 3.可以选择是否提前收租（当固定账期是只能选择固定日收租） 4.可设置分割日，分割日前提前收租 5.可规定超过一定天数后需要缴纳全月的租金 6.可设置月内每天的租金（默认是按照租金除以当月的日数作为日租金）

**实现说明：**1.日期计算方面使用Carbon类计算日期

### 例子

[](#例子)

```
// 固定账期
$comupte = new \Lease\ComputeRentCycle();
$comupte->setOptions([
    'starttime'     => $start,              // 开始时间
    'endtime'       => $end,                // 结束时间
    'rent'          => $rent,               // 租金
    'rentday'       => $rentday,            // 固定收租日
    ]);

// 动态账期，提前日
$comupte = new \Lease\ComputeRentCycle(['mode'=>1, 'forward'=>1]);
$comupte->setOptions([
    'starttime'     => $start,              // 开始时间
    'endtime'       => $end,                // 结束时间
    'rent'          => $rent,               // 租金
    'forwardday'    => $forwardday,         // 提前天数
    ]);

// 动态账期，固定日
$comupte = new \Lease\ComputeRentCycle(['mode'=>1]);
$comupte->setOptions([
    'starttime'     => $start,              // 开始时间
    'endtime'       => $end,                // 结束时间
    'rent'          => $rent,               // 租金
    'rentday'       => $rentday,            // 固定收租日
    ]);

```

###  Health Score

14

—

LowBetter than 2% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity0

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity27

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![ScientistPun](https://avatars.githubusercontent.com/u/22999568?v=4)](https://github.com/ScientistPun "ScientistPun (9 commits)")

### Embed Badge

![Health badge](/badges/scientistpun-leasecalculator/health.svg)

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

###  Alternatives

[yannickl88/features-bundle

Symfony bundle for managing feature tags

1985.5k](/packages/yannickl88-features-bundle)

PHPackages © 2026

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