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.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

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:

  1. Ensure you have allowed your local direct URL in Bexio Developer Portal, e.g. http://localhost:8000/auth.php
  2. Fill $clientId and $clientSecret in both samples/auth.php and samples/sample.php with your Bexio API credentials.
  3. Fire up the local dev server (see below).
  4. Access http://localhost:8000/auth.php in your browser.
  5. Authenticate with your Bexio login to provide access to the app via access token.
  6. Bexio will redirect you back to http://localhost:8000/auth.php which will present: Sucessfully authenticated. Proceed to sample.php
  7. 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

PHP Build Version
Package Version
Requires php Version ^8.2
ext-json Version *
jumbojett/openid-connect-php Version ^1.0
guzzlehttp/guzzle Version ^7.9
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package onlime/bexio-api-client contains the following files

Loading the files please wait ....