Download the PHP package imoli-dev/efl-leasing-sdk without Composer

On this page you can find all versions of the php package imoli-dev/efl-leasing-sdk. 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 efl-leasing-sdk

Imoli EFL Leasing PHP SDK

Imoli EFL Leasing SDK is a PHP library that simplifies integrating EFL Leasing Online as a payment method in ecommerce platforms. It provides a PHP-friendly, testable abstraction over the official EFL Leasing Online sandbox and production APIs.

Public APIs follow SemVer from 1.0.0 onwards. Pre-1.0 releases may introduce breaking changes.

Installation

Install the package via Composer:

Requirements

Documentation

Local technical documentation for this SDK is available in the docs/ directory. Files and directories are numbered for correct ordering in documentation generators (e.g. Nuxt Content).

Architecture overview

External API documentation

The SDK is designed to follow the official EFL Leasing Online API contract. For details about endpoints, request/response schemas and authentication, refer to:

HTTP client adapters

When using Guzzle or Symfony HttpClient, you can use the provided adapters:

Install the corresponding package: composer require guzzlehttp/guzzle or composer require symfony/http-client.

Production usage

Configuration

Error handling

Limitations

Monitoring

Builders

All request models expose Model::builder() for fluent construction. You can mix builders with direct constructors:

Development

After cloning the repository, install dependencies:

Run the test suite:

Generate code coverage report (requires PCOV or Xdebug):

This prints a text report to the console and generates an HTML report in build/coverage/.

If you see Unable to load dynamic library 'pcov.so', PHP is configured to load PCOV but the extension is missing. Either remove extension=pcov.so from your php.ini (see php --ini for the config path), or install PCOV with pecl install pcov. Alternatively, use Xdebug for coverage.

Run integration tests (against the EFL sandbox API; requires EFL_API_KEY and EFL_PARTNER_ID environment variables):

Without these variables, integration tests are skipped. See the sandbox documentation for obtaining credentials.

You can also copy .env.example to .env and use your preferred dotenv loader (for example in your application or local tooling) to provide these variables to the SDK and integration tests.

Run static analysis:

Check coding standards:

Automatically fix coding standards where possible:

Typical backend flow

A typical leasing flow in an ecommerce backend can be implemented as:

  1. Initialise configuration and HTTP client
    • Create Config using Config::sandbox() or Config::production().
    • Provide an implementation of HttpClientInterface (or use NativeHttpClient as a starting point).
  2. Obtain auth token
    • Call EflClient::getAuthToken() with your partnerId to obtain a token that will be used as a Bearer token for subsequent calls.
  3. Start the leasing process
    • Call EflClient::startProcess() with positive/negative return URLs and the Bearer token to initialise the process and obtain the initial URL / identifier.
  4. Calculate offers
    • Build an AssetToCalculation basket using OfferItem and ItemDetail.
    • Call EflClient::calculateBasicOffer() to obtain a typed EsbCalculateBasicOfferRestReturn with offer variants. If you need raw JSON, use the corresponding CalculationApiClient method directly.
  5. Submit customer data and statements
    • Build CustomerData (including Company, Person, Address, EmailAddress, Phone, CustomerDataStatement).
    • Call EflClient::submitCustomerData() and the lower-level CustomerApiClient methods where needed.
  6. Identity verification and pay‑by‑link
    • Build VerificationInitializationParams and pass it to EflClient::initializeIdentityVerification() to obtain redirect URL and order UUID.
    • Poll status with EflClient::getIdentityVerificationStatus().
  7. Leads and contact forms
    • Build ContactData and send it via EflClient::sendContactForm() to register a lead in EFL systems.

Frontend plugins can then use the data and URLs returned by these methods to build the user experience specific to a given ecommerce platform.

Contributing

Contributions are welcome. Please ensure that:

License

This project is licensed under the MIT License. See the LICENSE file for details.


All versions of efl-leasing-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
ext-json Version *
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 imoli-dev/efl-leasing-sdk contains the following files

Loading the files please wait ...