PHPackages                             librecodecoop/impostos - 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. librecodecoop/impostos

ActiveLibrary

librecodecoop/impostos
======================

Cálculo de impostos de INSS e IRPF

v0.2.1(2mo ago)2410↓100%AGPL-3.0-or-laterPHPCI passing

Since Mar 6Pushed 2mo ago7 watchersCompare

[ Source](https://github.com/LibreCodeCoop/impostos)[ Packagist](https://packagist.org/packages/librecodecoop/impostos)[ GitHub Sponsors](https://github.com/librecodecoop)[ RSS](/packages/librecodecoop-impostos/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (1)Versions (13)Used By (0)

Cálculo de impostos
===================

[](#cálculo-de-impostos)

Impostos suportados:

- INSS
- IRPF

Informações úteis
-----------------

[](#informações-úteis)

### INSS

[](#inss)

- **TODO**: Identificar qual a fonte dos dados da tabela do INSS e corrigir os cálculos.

### IRPF

[](#irpf)

- Calculadora de teste:
- Fonte de dados:

Exemplo
-------

[](#exemplo)

```
$bruto = 5000;
$ano = 2024;
$mes = 1;
$dependentes = 0;

$inss = (new INSS($ano))->calcula($bruto);
$IRPF = new IRPF($ano, $mes);
$base = $IRPF->calculaBase($bruto, $inss, $dependentes);
$paraReter = $IRPF->calcula($base, $dependentes);
$tipoDeducaoAtual = $IRPF->getTipoDeducao();

echo "INSS: R$ $inss\n";
echo "Base de cálculo IRPF: R$ $base\n";
echo "Tipo de dedução atual: $tipoDeducaoAtual\n";
echo "Será retido o valor de: R$ $paraReter\n";
```

Saída:

```
INSS: R$ 1000
Base de cálculo IRPF: R$ 4000
Tipo de dedução atual: tradicional
Será retido o valor de: R$ 248.27

```

###  Health Score

40

—

FairBetter than 88% of packages

Maintenance87

Actively maintained with recent releases

Popularity19

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity38

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.

###  Release Activity

Cadence

Every ~146 days

Recently: every ~92 days

Total

6

Last Release

62d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/63850983d19281fbefc41791cc4675f9c6cca0c858f9cc485ea47af88468d4ac?d=identicon)[librecodecoop](/maintainers/librecodecoop)

---

Top Contributors

[![vitormattos](https://avatars.githubusercontent.com/u/1079143?v=4)](https://github.com/vitormattos "vitormattos (24 commits)")

---

Tags

composer-libraryimpostoimpostosinssirpfphpreceita-federalimpostosIRPFINSS

### Embed Badge

![Health badge](/badges/librecodecoop-impostos/health.svg)

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

PHPackages © 2026

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