Download the PHP package sirma-ics/ics-api-sdk without Composer
On this page you can find all versions of the php package sirma-ics/ics-api-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download sirma-ics/ics-api-sdk
More information about sirma-ics/ics-api-sdk
Files in sirma-ics/ics-api-sdk
Package ics-api-sdk
Short Description Package implementing ics-api via Guzzle
License GPL-3.0-or-later
Informations about the package ics-api-sdk
Sirma ICS API SDK
Requires PHP 7.0+
Set up:
Run composer install to include the required components.
Create or update your .env file to include the following key variables:
SIRMAICS_API_URL - which should point to the Sirma ICS API('https://ics-api.ics365.com') SIRMAICS_API_USERNAME - the username used to authenticate for Sirma ICS API SIRMAICS_API_PASSWORD - the password used to authenticate for Sirma ICS API SIRMAICS_API_CERT_PATH - path to the SSL certificate file provided for authorization to the API SIRMAICS_API_KEY_PATH - - path to the SSL key file provided for authorization to the API
Usage: Initiate the class you need to use for your purpose as listed:
- class NomenclaturesRequests will return the API nomenclatures, required parameters for every request are specified in the documentation:
-
class ShortRequests is used for calculation or issuing using less parameters(used for already registered vehicles), required parameters for every request are specified in the documentation:
- the required parameters for calculation using endpoint shortCalc: here
-
class LongRequests is used for calculation or issuing using full information, required parameters for every request are specified in the documentation:
- the required parameters for calculation using endpoint longCalc: here
- the required parameters for issuing a policy using endpoint longIssue (listed in the part for /liability/policy-short): here
- the required parameters for issuing a policy and payment for first installment using endpoint longIssueWithPayment: here
- class PolicyRequests requests for already registered policies, required parameters for every request are specified the documentation:
- endpoint policyNote issues a payment for a policy with specified installment number, the required parameters are listed: here
- endpoint policyFullInfo give full information about a policy, the required parameters are listed: here
- endpoint policyPrint returns a pdf format for an issued policy and it's additional prints by given hash, the required parameters are listed: here
Use the package by requiring it:
Sample usage of the package would be:
For more information and access to the API, please write to [email protected]