Download the PHP package marcincook/laravel-renteon-api-client without Composer

On this page you can find all versions of the php package marcincook/laravel-renteon-api-client. 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 laravel-renteon-api-client

Laravel Renteon API Client

A Laravel client for the Renteon REST API, with first-class support for multi-country setups (PL / ES / LT / …) and a manager-style facade familiar to Laravel developers.

Official Renteon API reference: https://demo.s2.renteon.com/en/Api/Help/Referenceex

Status

🚧 Early development — the API surface may still change before v1.0.0.

Requirements

Installation

Publish the config:

Configuration

Set environment variables for each country you operate in:

The same set of variables is available for RENTEON_ES_* and RENTEON_LT_*. Authentication is performed transparently: the first call exchanges your credentials for an access token (POST /token with a Base64(SHA512(…)) signature), then re-uses it for the rest of the request lifecycle.

Quick start

You can also use the Renteon facade:

Resources

Each resource maps to a slice of the Renteon REST API. Method signatures are kept close to the upstream model names so the official reference is your primary documentation.

Resource Key methods
offices() getOffices(bool $onlyActive = true), fetchOfficesFromApi(), clearCache()
countries() getCountries() (projected to {id, name}), clearCache()
cars() searchCars($filters), getAllCars($filters), getCar($id)
carCategories() searchCarCategories($filters), getCarCategory($id)
addressBook() searchAddressBook($filters), findByEmail($email), getAddressBook($id), createAddressBook($payload), updateAddressBook($id, $payload)
bookings() availability(...), create(...), calculate(...), save(...), getByNumber($number), cancel($number), checkOut($number, $officeCode), searchBookings(...), getBookingsForMonth($y, $m), getBookingById($id)
carActivities() searchCarActivities($filters), getCarActivityDefinitions()
finance() searchFinanceDocuments($filters), searchExportInvoices($filters), findExportInvoiceByInvoiceId($id), getCachedExPaymentTypes(), getCachedExportInvoiceDocumentTypes()
reports() getRealizationByOffice($params) — uses the separate report-token flow

Booking flow example

The typical "public-facing booking site → Renteon" pipeline looks like this:

Verified gotchas (production, confirmed with Renteon)

Hard-won lessons from a live integration — get these wrong and ExBooking/Save returns an opaque 500 "Nullable object must have a value":

Scope note: this ExBooking/* (External) API is fine when the CMS owns pricing and overrides amounts. For a Renteon-priced, multi-instance storefront, Renteon recommends the Aggregator API (aggregator.renteon.com, HTTP Basic) instead.

Customer booking history

getBookingsByClient() returns a customer's full history. ClientId is the only search filter that actually narrows to one customer (ClientIds/AddressBookId are ignored). The rich export projection (Number, dates, office, car category, Total/TotalDeposit/TotalDomestic, BookingSubTypeCode, IsCancelled, Client*) is enough to render a "my bookings" view without a per-booking call.

Email lookup caveat: AddressBook::findByEmail() is unreliable — Renteon has no email search filter, so it pages the address book and matches client-side and can miss the customer on a large base. Store the Renteon ClientId locally (per customer) when you create the booking, and look up history by that id.

Reports

Reports::getRealizationByOffice() uses a different authentication flow — set either RENTEON_REPORT_TOKEN (a raw bearer token captured from the Renteon panel) or RENTEON_REPORT_USERNAME/RENTEON_REPORT_PASSWORD/RENTEON_REPORT_OFFICE_ID. If neither is set, the client falls back to the country token.

Caching

Dictionary endpoints (offices, countries, payment types, document types) are cached using the Laravel cache repository, keyed per country. TTL defaults to 24h and is configurable via RENTEON_DICT_CACHE_TTL (seconds). Use the clearCache() method on each resource to invalidate.

Error handling

All HTTP failures bubble up as exceptions:

The two top-level dictionary getters (getOffices, getCountries) deliberately swallow API failures and log a warning — they're used in dropdowns where a transient outage shouldn't break the page.

Testing

License

MIT — see LICENSE.


All versions of laravel-renteon-api-client with dependencies

PHP Build Version
Package Version
Requires php Version ^8.3
illuminate/cache Version ^11.0|^12.0|^13.0
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
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 marcincook/laravel-renteon-api-client contains the following files

Loading the files please wait ...