PHPackages                             rozdol/loans - 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. rozdol/loans

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

rozdol/loans
============

Module to calculate loans

v1.0.27(2y ago)02611MITPHPPHP &gt;=5.6

Since Jun 20Pushed 1y ago1 watchersCompare

[ Source](https://github.com/rozdol/loans)[ Packagist](https://packagist.org/packages/rozdol/loans)[ RSS](/packages/rozdol-loans/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (10)Dependencies (2)Versions (29)Used By (1)

PHP Component to calculate loans and deposits
=============================================

[](#php-component-to-calculate-loans-and-deposits)

About
-----

[](#about)

Module to calculate loans.

Install
-------

[](#install)

cd to `your_project_root_dir`

```
composer require rozdol/loans
```

in Table or Model or Controller

```
use Rozdol\Loans\Loans;
$this->loans = new Loans();
$data=[...];
$result = $this->loan->calcLoan($data);
```

### Unit Test

[](#unit-test)

`cd loans`

```
composer update rozdol/loans
```

To test

```
./vendor/bin/phpunit tests/
```

Compose library Tutorial
------------------------

[](#compose-library-tutorial)

```
cd loans
composer update
git init
git .
git commit -m 'Initial commit'
```

Create github repo

```
git remote add origin git@github.com:rozdol/loans.git
git push origin master
```

- on github add new release (v1.0.0)
- On packagist Update Package
- Login to [packagist.org](https://packagist.org/)
- Submit `https://github.com/rozdol/loans`

### Ready to use in project

[](#ready-to-use-in-project)

cd to `your_project_root_dir`

```
composer require rozdol/loans:"v1.*"
```

in Table or Model or Controller

```
use Rozdol\Loans\Loans;
$this->loans = new Loans();
$date_normalized = $this->loans->F_date('01/01/20', 1); // 01.01.2020
```

#### Connecting Github to Packagist

[](#connecting-github-to-packagist)

In Github-&gt;Settings-&gt;Integrations..-&gt;Add-&gt;Packagist user: packagist user api\_key: packagist-&gt;User-&gt;Profile-&gt;Show API KEY Domain:

Test: New reslease in Github and check the version in Packagist

### Unit Tests

[](#unit-tests)

install local phpunit

```
composer require --dev phpunit/phpunit ^6
```

```
mkdir tests
cd tests
mkdir TestCase
cd TestCase
mkdir Funcs
```

edit `LoansTest.php`

`cd loans`

```
composer update rozdol/loans
```

To test

```
./vendor/bin/phpunit tests/
```

in GitHub `Project / Settings / Services / Add Packagist`

```
User: rozdol
Token: https://packagist.org/profile/ -> Your API Token
Domain: https://packagist.org
Active: true
Add Service: click
```

### Travis CI

[](#travis-ci)

```
git checkout -b travis
git add .travis.yml
git push origin travis
```

in GitHub `Project / Settings / Services / Add Packagist`

```
User: rozdol
Token: https://travis-ci.org/profile/rozdol -> Copy API Token
Domain: notify.travis-ci.org
Active: true
Add Service: click
```

[Got to Travis](https://travis-ci.org/) Press + , swipe activation

##### Detactach from original source

[](#detactach-from-original-source)

```
git remote -v
git remote remove origin
git remote add origin git@github.com:rozdol/loans.git
git push origin random_changes
```

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance34

Infrequent updates — may be unmaintained

Popularity11

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity68

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

Recently: every ~5 days

Total

28

Last Release

966d ago

### Community

Maintainers

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

---

Top Contributors

[![rozdol](https://avatars.githubusercontent.com/u/543388?v=4)](https://github.com/rozdol "rozdol (43 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/rozdol-loans/health.svg)

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

###  Alternatives

[reactivex/rxphp

Reactive extensions for php.

1.7k3.2M49](/packages/reactivex-rxphp)[yohang/finite

A simple PHP Finite State Machine

1.3k3.5M10](/packages/yohang-finite)[lavary/laravel-menu

A quick way to create menus in Laravel 5

1.2k2.0M44](/packages/lavary-laravel-menu)[hotwired-laravel/turbo-laravel

Turbo Laravel gives you a set of conventions to make the most out of the Hotwire stack (inspired by turbo-rails gem).

838481.6k3](/packages/hotwired-laravel-turbo-laravel)[gladcodes/keygen

A fluent PHP random key generator.

119668.9k2](/packages/gladcodes-keygen)[matomo/searchengine-and-social-list

Search engine and social network definitions used by Matomo (formerly Piwik)

74994.1k5](/packages/matomo-searchengine-and-social-list)

PHPackages © 2026

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