Skip to content
This repository has been archived by the owner on Jan 18, 2024. It is now read-only.

PHP code example for integrating with the REST API

License

Notifications You must be signed in to change notification settings

simPRO-Software/simpro-restapi-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

5 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

simPRO PHP Rest Client

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. 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 example.

API Key

If your application authenticates using an API Key, then see our API key example.

Implicit Code Grant

If your application authenticates using an implicit code grant, then you cannot perform this using PHP. Implicit grants are specifically designed for javascript clients. However, the workflow is similar to authorisation code grant. Please see our documentation for instructions.

Workflow example

Once you have your provider loaded, find an example of creating, reading, updating and deleting data here.

Still have questions?

Feel free to ask us a question on our support forum if you are unable to get your application up and running using our API.

About

PHP code example for integrating with the REST API

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages