This library gives you a starting point for working with the simPRO RESTful API using PHP. It provides a means of authenticating, sending requests and receiving responses. This readme assumes that you have read through each step of the Getting Started section of our API documentation.
You can view and download this code from the simPRO Github Repo.
Instructions for how to use each of the grant types are detailed below.
How to install
```composer require simpro/restclient-php```
Client Credentials Grant
If your application authenticates using a client credentials grant, then see our client credentials example.
Resource Owner Credentials Grant
If your application authenticates using a resource owner credentials grant, then see our resource owner example.
Authorisation Code Grant
If your application authenticates using an authorisation code grant, then see our authorisation code.
If your application authenticates using an API Key, then see our API key example.
Implicit Code Grant
Please see our documentation for instructions.
Once you have your provider loaded you can test creating, reading, updating and deleting data using our workflow example.
Still have questions?
Feel free to ask us a question on our API Support Forum if you are unable to get your application up and running using our API.