ricardokovalski/interest-calculation
Composer 安装命令:
composer require ricardokovalski/interest-calculation
包简介
SDK com regras para cálculo de juros.
README 文档
README
Uma biblioteca PHP com as regras para cálculo de juros.
Sobre
ricardokovalski/interest-calculation é uma biblioteca PHP que contém as regras para cálculo de juros Simples, Compostos e Financiamento.
Instalação
Instale este pacote como uma dependência usando Composer.
composer require ricardokovalski/interest-calculation
Uso básico
Juros de Financiamento
use RicardoKovalski\InterestCalculation\Types\Financial; $interest = new Financial(0.98); // Adiciona um valor ao TotalCapital $interest->appendTotalCapital(227.49); // Adiciona um valor ao InterestValue $interest->appendInterestValue(1.55); // Reseta o valor de TotalCapital para 0.00 $interest->resetTotalCapital(); // Reseta o valor de TotalCapital para 200.00 $interest->resetTotalCapital(200.00); // Reseta o valor de InterestValue para 0.00 $interest->resetInterestValue(); // Reseta o valor de InterestValue para 2.75 $interest->resetInterestValue(2.75); // Obter o valor de TotalCapital $interest->getTotalCapital(); // Obter o valor de InterestValue $interest->getInterestValue(); // Obter o valor de InterestRates $interest->getInterestRates(); // Verifica se o valor de InterestValue está zerado $interest->interestValueIsZeroed(); // Obter valor do juros da 2ª parcela $interest->getValueCalculatedByInstallment(2); // Obter valor do juros reverso da 12ª parcela $interest->getReverseInterestByNumberInstallments(12);
Outros tipos de Juros
Para juros compostos, utilize a classe Compound.
use RicardoKovalski\InterestCalculation\Types\Compound; $interest = new Compound(3.69);
Para juros simples, utilize a classe Simple.
use RicardoKovalski\InterestCalculation\Types\Simple; $interest = new Simple(2.99);
Copyright and License
The ricardokovalski/interest-calculation library is copyright © Ricardo Kovalski and licensed for use under the terms of the MIT License (MIT). Please see LICENSE for more information.
ricardokovalski/interest-calculation 适用场景与选型建议
ricardokovalski/interest-calculation 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 117 次下载、GitHub Stars 达 1, 最近一次更新时间为 2021 年 05 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「calculation」 「calculator」 「interest」 「interest-rates」 「interest-calculation」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 ricardokovalski/interest-calculation 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 ricardokovalski/interest-calculation 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 ricardokovalski/interest-calculation 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A library to calculate effective interest rate. Also know as XIRR or effective APR.
Calculation of the nearest distance to the seas: Azov, Baltic, Caspian and Black
Use this Contao module to highlight the points of interest of your products. Just a click to open a brief description of each point, allowing your user to get a deep and fast understanding of your product features.
PHP library for payment schedule calculations, using various strategies and configurations.
EU VAT calculation, the way it should be. Revived fork of spaze/vat-calculator which was a standalone & modernized fork of mpociot/vat-calculator, with some new features.
Client library for Avalara's AvaTax suite of business tax calculation and processing services. Uses the REST v2 API. Updated to use Guzzle 7 for Laravel compatibility.
统计信息
- 总下载量: 117
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 11
- 依赖项目数: 2
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-05-11