All Projects → Sage → sageone_api_php_sample

Sage / sageone_api_php_sample

Licence: MIT License
Sage One API PHP Sample

Programming Languages

PHP
23972 projects - #3 most used programming language
CSS
56736 projects
hack
652 projects
shell
77523 projects
Dockerfile
14818 projects

Sage Business Cloud Accounting API Sample application (PHP)

Sample PHP project that integrates with Sage Accounting via the Sage Accounting API.

Setup

Clone the repo:

git clone https://github.com/Sage/sageone_api_php_sample.git

Switch to the project directory to run the subsequent commands:

cd sageone_api_php_sample

Run the app locally

Start a local PHP server:

php -S localhost:8080

Then follow the instructions in the browser.

Run the app in Docker

Build the image:

./script/setup.sh

Start the container:

./script/start.sh

If you need, stop.sh will stop the container:

./script/stop.sh

Usage

You can now access http://localhost:8080/, authorize and make an API call. Depending on your setup, it could also be http://192.168.99.100:8080/ or similar.

License

This sample application is available as open source under the terms of the MIT licence.

Copyright (c) 2019 Sage Group Plc. All rights reserved.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].