Download the PHP package ricardokovalski/installments-calculator without Composer

On this page you can find all versions of the php package ricardokovalski/installments-calculator. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package installments-calculator

ricardokovalski/installments-calculator

Uma biblioteca PHP para calcular juros de parcelamentos.

Source Code PHP Programming Language Source Code Author Read License

Sobre

ricardokovalski/installments-calculator é uma biblioteca PHP que serve para calcular juros de parcelamentos.

Instalação

Instale este pacote como uma dependência usando Composer.

Uso básico

InstallmentCalculationConfig

Para obtermos uma coleção com as parcelas calculadas, inicialmente devemos instanciar um objeto InstallmentCalculationConfig. Esse objeto requer um tipo de juros em seu construtor.

Com a classe InterestCalculation, podemos instanciar um tipo de juros qualquer, ou seja, Financial, Compound e Simple.

Ainda no objeto InstallmentCalculationConfig, podemos modificar algumas configurações padrões, por exemplo:

No exemplo acima, resetamos o tipo de juros para Compound, sendo que inicialmente, InstallmentCalculationConfig havia sido instanciada com o tipo Financial.

Além de resetar o tipo de juros, podemos definir o número máximo de pacelas. Por padrão, esse número máximo de parcelas é 12.

No exemplo acima, acabamos de resetar o número máximo de pacelas para 6.

Outras opções que temos disponível é de limitar o parcelamento em uma valor mínimo e se este estiver configurado para limitar, podemos definir o valor limite. Por padrão, já está habilitado esse limite no valor de 5.00.

No exemplo anterior, adicionamos mais 5.00 ao valor limite, ou seja, agora as parcelas serão calculadas até que a última parcela não seja inferior à 10.00. Caso queira que não se tenha esse limite configurado, basta desativar.

InstallmentCalculation

Para obter uma coleção de parcelas calculadas.

Formatters

MonetaryFormatterConfig

MonetaryFormatter

Exemplo completo

Copyright and License

The ricardokovalski/installments-calculator library is copyright © Ricardo Kovalski and licensed for use under the terms of the MIT License (MIT). Please see LICENSE for more information.


All versions of installments-calculator with dependencies

PHP Build Version
Package Version
Requires php Version >=5.6
ext-json Version *
ricardokovalski/interest-calculation Version v1.0.2
ricardokovalski/money-formatter Version v1.0.2
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ricardokovalski/installments-calculator contains the following files

Loading the files please wait ....