PHP code example of yaroslawww / laravel-iprosoftware-api

1. Go to this page and download the library: Download yaroslawww/laravel-iprosoftware-api library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

yaroslawww / laravel-iprosoftware-api example snippets


use LaravelIproSoftwareApi\IproSoftwareFacade as IproSoftware;

/** @var \LaravelIproSoftwareApi\IproApiResponse $response */
$response = IproSoftware::getBookingRulesList();

$bookingRules = $response->json();

use LaravelIproSoftwareApi\IproSoftwareFacade

IproSoftwareFacade::mergeMethods([
  'getReport' => ['get', 'property/%s/reports/1'],
  'getTasks' => ['get', 'tasks'],
]);

/** @var \LaravelIproSoftwareApi\IproApiResponse $response */
$response = IproSoftwareFacade::getReport($selectedProperty->getKey());

use LaravelIproSoftwareApi\IproSoftwareFacade

$propertyId = 22;

/** @var \LaravelIproSoftwareApi\IproApiResponse $response */
$response = IproSoftwareFacade::httpClient()->get("property/$propertyId/reports/1", [
  'query' => [
    'foo' => 'bar',
  ],
]);
bash
php artisan vendor:publish --provider="LaravelIproSoftwareApi\ServiceProvider"