Download the PHP package forward-force/daxko-api-sdk without Composer

On this page you can find all versions of the php package forward-force/daxko-api-sdk. 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 daxko-api-sdk

Daxko API - PHP SDK

This is a wrapper around Daxko API. The API is very minimal, so this implementation is fairly simple.

Installation

Install via composer as follows:

Usage

Authentication

Daxko client relies on the access_token returned by auth request to Daxko authentication endpoint to access the API.

Requesting access_token using Daxko client:

The access_token returned by getToken can then be used to create a new client instance:

To avoid requesting a new token everytime a new client is needed, the token can be stored(encrypted) in some data store(Redis, Session, etc..).

Refreshing the access_token using refresh_token from a previous authentication

Daxko Classes

Get all classes for a given location and specific date range:

Get a single class by ID:

Getting the value of a given field is as easy as accessing the class instance property:

Handling errors

All Daxko entities inherit from DaxkoEntity class, which provide a hasErrors() and getErrors() method that can be used to verify if the client receive a successful response from the API:

Contributions

To run locally, you can use the docker container provided here. You can run it like so:

Then you can ssh into the php-fpm container. Please note, you need to set your DAXKO API key and SECRET as environmental variables $DAXKO_TOKEN and $DAXKO_SECRET respectively. However, the secret is not needed at this time you could set it to anything.

xdebug is fully configured to work as cli, hookup your favorite IDE to it and debug away!

There is auto-generated documentation as to how to run this library on local, please take a look at phpdocker/README.md

If you find an issue, have a question, or a suggestion, please don't hesitate to open a github issue.

Acknowledgments

Thank you to phpdocker.io for making getting PHP environments effortless!


All versions of daxko-api-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.4 | 8.*
ext-json Version *
guzzlehttp/guzzle Version ^7.2
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 forward-force/daxko-api-sdk contains the following files

Loading the files please wait ....