Download the PHP package onlime/bexio-api-client without Composer
On this page you can find all versions of the php package onlime/bexio-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download onlime/bexio-api-client
More information about onlime/bexio-api-client
Files in onlime/bexio-api-client
Informations about the package bexio-api-client
Bexio API PHP Client
The bexio API Client Library enables you to work with the bexio API. This is an early version and is still in development.
See the bexio API documentation for more information how to use the API.
Installation
You can use Composer or download the library.
Require this package with composer:
Include the autoloader:
Examples
A fully working example can be found in
samples/
directory.
Authenticate to get access and refresh tokens:
Init client:
Get contacts:
Usage:
- Ensure you have allowed your local direct URL in Bexio Developer Portal, e.g.
http://localhost:8000/auth.php
- Fill
$clientId
and$clientSecret
in bothsamples/auth.php
andsamples/sample.php
with your Bexio API credentials. - Fire up the local dev server (see below).
- Access http://localhost:8000/auth.php in your browser.
- Authenticate with your Bexio login to provide access to the app via access token.
- Bexio will redirect you back to http://localhost:8000/auth.php which will present: Sucessfully authenticated. Proceed to sample.php
- Once you access http://localhost:8000/sample.php, you should be already authenticated (using the current token stored in
client_tokens.json
) and your contacts are listed.
Authors
Author of this awesome package is Philip Iezzi (Onlime GmbH).
Large parts of this package were ported from the original christianruhstaller/bexio-api-php-client. Credits go to Christian Ruhstaller, the bolloon guy.
This fork was detached from the original repository in March 2022, as the codebases have diverged quite a bit. Beware: Both projects currently don't represent a full-featured Bexio API client library, both being limited to just a subset of all API methods.
License
This package is licenced under the MIT license however support is more than welcome.
All versions of bexio-api-client with dependencies
ext-json Version *
jumbojett/openid-connect-php Version ^1.0
guzzlehttp/guzzle Version ^7.9