PHPackages                             parcelado-lara/payment-plan-php - 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. [Payment Processing](/categories/payments)
4. /
5. parcelado-lara/payment-plan-php

ActiveLibrary[Payment Processing](/categories/payments)

parcelado-lara/payment-plan-php
===============================

A PHP library for calculating payment plans for Parcelado Lara.

v3.2.0(5mo ago)05MITPHPPHP &gt;=8.1

Since Aug 2Pushed 5mo agoCompare

[ Source](https://github.com/ParceladoLara/payment-plan-php-sdk)[ Packagist](https://packagist.org/packages/parcelado-lara/payment-plan-php)[ Docs](https://github.com/ParceladoLara/payment-plan-php-sdk)[ RSS](/packages/parcelado-lara-payment-plan-php/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (9)Dependencies (1)Versions (10)Used By (0)

Lara Payment Plan PHP SDK
=========================

[](#lara-payment-plan-php-sdk)

This is the Lara Payment Plan SDK, the core of the Lara Credit Proposal System.

About
-----

[](#about)

This SDK, like other Lara Payment Plan SDKs, is a wrapper around the Lara Payment Plan Rust library. Currently, the library is available for Linux and Windows. MacOS support is planned for the future.

Requirements
------------

[](#requirements)

- PHP 8.1 or higher
- FFI extension enabled

Installation
------------

[](#installation)

To install the Lara Payment Plan PHP SDK, you can use Composer:

```
composer require parcelado-lara/payment-plan-php
```

The SDK needs to download the compiled Rust library, so you may need to allow the package manager to download it.

Usage
-----

[](#usage)

To use the Lara Payment Plan PHP SDK, you can import it into your project as follows:

### calculate

[](#calculate)

Calculates a number of payment plans without down payment given a set of `Params`. Returns a `Response[]` consisting of plans from 1 installment up to the number of installments requested, so that you can choose the one that best fits your needs. If the `installmentAmount` of the plan is less than the `minInstallmentAmount` it will not be included in the response.

```
