PHPackages                             ricardokovalski/interest-console - 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. [CLI &amp; Console](/categories/cli)
4. /
5. ricardokovalski/interest-console

ActiveProject[CLI &amp; Console](/categories/cli)

ricardokovalski/interest-console
================================

A console application for calculate interest with ricardokovalski/interest-calculation.

v1.0.0(4y ago)13MITPHPPHP &gt;=5.6

Since Jun 21Pushed 4y ago1 watchersCompare

[ Source](https://github.com/ricardokovalski/interest-console)[ Packagist](https://packagist.org/packages/ricardokovalski/interest-console)[ Docs](https://github.com/ricardokovalski/interest-console)[ RSS](/packages/ricardokovalski-interest-console/feed)WikiDiscussions main Synced 3w ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

ricardokovalski/interest-console
================================

[](#ricardokovalskiinterest-console)

 **Uma aplicação PHP para calcular Juros utilizando a biblioteca ricardokovalski/interest-calculation.**

 [![Source Code](https://camo.githubusercontent.com/e528ef2d019269d3ae92942a3a5e7c4ae024c06c58bb9bc982f1fdab53690233/687474703a2f2f696d672e736869656c64732e696f2f62616467652f736f757263652d7269636172646f6b6f76616c736b692f696e7465726573742d2d636f6e736f6c652d626c75652e737667)](https://github.com/ricardokovalski/interest-console) [![PHP Programming Language](https://camo.githubusercontent.com/cab1c40991c77e8b5c990f35e62a75ab8e5e5c5c8feeb6b15c348403e218616b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d2533453d352e362d3737376262332e737667)](https://php.net) [![Source Code](https://camo.githubusercontent.com/32ccd11453af3871cb5f62436cdeb1673fd3f46e32da57d02b2fe468ed7b0ca6/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f72656c656173652f7269636172646f6b6f76616c736b692f696e7465726573742d636f6e736f6c652e737667)](https://github.com/ricardokovalski/interest-console/releases) [![Author](https://camo.githubusercontent.com/13ee1d4743665be497ac24068eef02fea52c9a2ad0e8855cea8805d534ff5dad/687474703a2f2f696d672e736869656c64732e696f2f62616467652f617574686f722d407269636172646f6b6f76616c736b692d626c75652e737667)](https://github.com/ricardokovalski) [![Read License](https://camo.githubusercontent.com/074b89bca64d3edc93a1db6c7e3b1636b874540ba91d66367c0e5e354c56d0ea/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e737667)](https://github.com/ricardokovalski/interest-console/blob/main/LICENSE)

Sobre
=====

[](#sobre)

ricardokovalski/interest-console é uma aplicação PHP que serve para calcular juros utilizando a biblioteca ricardokovalski/interest-calculation.

Instalação
==========

[](#instalação)

Instale este pacote como uma dependência usando [Composer](https://getcomposer.org).

```
composer require ricardokovalski/interest-console
```

Exemplos
========

[](#exemplos)

Se instalado em sua aplicação, você pode executar o aplicativo de console a partir da linha de comando:

```
$ ./vendor/bin/interest
```

Se instalado globalmente usando o Composer, certifique-se de que a instalação global do Composer esteja em seu PATH(geralmente é em algum lugar ~/.composer/vendor/bin). Então, você pode executá-lo:

```
$ interest
```

Esteja ciente de que alguns sistemas podem já ter um aplicativo de linha de comando chamado interest instalado, portanto, isso pode criar um conflito se algo usando seu PATH esperar a outra interest ferramenta.

Veja a seguir a estrutura de argumentos para o comando.

```
$ ./vendor/bin/interest calculate {first argument} {second argument} {third argument} {fourteen argument} onde:
```

First argument é o tipo de juros que queremos calcular. Atualmente suportamos Financial (Financiamento), Compound (Composto) e Simple (Simples). Second argument é juros do tipo float. Ex.: 1.99, 2.75, e assim por diante. Third argument é o total da compra a ser calculado. Tipo float. Ex.: 50.76, 345.08, 1000.45, e assim por diante. Fourteen argument é a parcela que queremos calcular. Tipo int.

Então vejamos um exemplo abaixo. Para calcular o juros de financiamento com uma taxa de 2.99 e uma compra de 350.90 na segunda parcela:

```
$ ./vendor/bin/interest calculate Financial 2.99 350.90 2
// 366.71513681364
```

A opção -r ou --reverse indica que podemos obter o valor do juros reverso.

```
$ ./vendor/bin/interest calculate Financial 2.99 350.90 2 -r
// 15.133085468258
```

Para obter ajuda, basta digitar ./vendor/bin/interest e ler as informações de ajuda.

Copyright and License
---------------------

[](#copyright-and-license)

The ricardokovalski/interest-console library is copyright © [Ricardo Kovalski](https://github.com/ricardokovalski)and licensed for use under the terms of the MIT License (MIT). Please see [LICENSE](LICENSE) for more information.

###  Health Score

22

—

LowBetter than 21% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

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

Total

2

Last Release

1824d ago

### Community

Maintainers

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

---

Top Contributors

[![ricardokovalski](https://avatars.githubusercontent.com/u/13839909?v=4)](https://github.com/ricardokovalski "ricardokovalski (18 commits)")

---

Tags

calculator-applicationconsoleconsole-applicationinterestinterest-ratesconsoleinterest

###  Code Quality

TestsPHPUnit

Code StylePHP CS Fixer

### Embed Badge

![Health badge](/badges/ricardokovalski-interest-console/health.svg)

```
[![Health](https://phpackages.com/badges/ricardokovalski-interest-console/health.svg)](https://phpackages.com/packages/ricardokovalski-interest-console)
```

###  Alternatives

[psy/psysh

An interactive shell for modern PHP.

9.8k582.3M821](/packages/psy-psysh)

PHPackages © 2026

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