This library is official PHP rentl.io api client. Api documentation can be found here
Rentlio is a cloud-based app tailor-made for vacation rentals owners, hostels and small hotels. Channel manager synchronization with Booking.com, Expedia, AirBnB and many others, lightspeed check-in with real-time ID cards & passport scanning feature, invoicing, statistics, guest profiles... Save time on administration, get rid of errors and stress. Focus more on sales and planning. Focus more on your guests.
To be able to use this lib, or rentlio api in general you first need to generate apiKey. You can do that inside developers section in rentlio web app.
Please create separate api key for each integration you are creating. This way you can easily invalidate some of api keys without affecting others. Also please keep you api keys private. Don't include to VCS or similar.
All client methods will return \Psr\Http\Message\ResponseInterface.
use Rentlio\Api\Client;
$client = new Client("put your api key here");
use Rentlio\Api\Client;
use Rentlio\Api\Request\CreateInvoiceItemForReservationRequest;
use Rentlio\Api\Request\Data\InvoiceItem;
$client = new Client("put your api key here");
$request = new CreateInvoiceItemForReservationRequest(45);
$invoiceItem = new InvoiceItem("cola", 13.99, 0.5);
$invoiceItem->addPDVTax(13);
$request->setInvoiceItem($invoiceItem);
$response = $client->send($request);
use Rentlio\Api\Client;
$client = new Client("put your api key here");
$response = $client->listAllServicesPaymentTypes();
echo $response->getBody()->getContents();
Rentlio php api client depends on guzzleHttp library
If you would like to contribute, fix bugs, please fork this repo and create Pull Request when you are done with development. All code should follow PSR and should be tested.
Mit