PHPackages                             forward-force/daxko-api-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. forward-force/daxko-api-sdk

ActiveLibrary[API Development](/categories/api)

forward-force/daxko-api-sdk
===========================

PHP Wrapper around Daxko API

1.2.2(4y ago)153.8k—3.1%MITPHPPHP ^7.4 | 8.\*

Since Feb 11Pushed 4y ago2 watchersCompare

[ Source](https://github.com/forward-force/daxko)[ Packagist](https://packagist.org/packages/forward-force/daxko-api-sdk)[ RSS](/packages/forward-force-daxko-api-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (5)Dependencies (5)Versions (6)Used By (0)

Daxko API - PHP SDK
===================

[](#daxko-api---php-sdk)

This is a wrapper around [Daxko API](https://docs.partners.daxko.com/). The API is very minimal, so this implementation is fairly simple.

Installation
------------

[](#installation)

Install via composer as follows:

```
composer require forward-force/daxko-api-sdk

```

Usage
-----

[](#usage)

### Authentication

[](#authentication)

Daxko client relies on the `access_token` returned by auth request to [Daxko authentication endpoint](https://api.partners.daxko.com/auth/token) to access the API.

Requesting `access_token` using Daxko client:

```
$apiToken = \ForwardForce\Daxko\Daxko::getToken(
    '',
    '',
    '',
    ''
);
```

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

```
$daxkoClient = new \ForwardForce\Daxko\Daxko($apiToken['access_token']);
```

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***

```
$apiToken = Daxko::refreshToken(
    '',
    '',
);
```

### Daxko Classes

[](#daxko-classes)

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

```
$classes = $daxkoClient->classes()
    ->all([
        'startDate' => '',
        'endDate' => '',
        'locationId' => '',
    ]);
```

***Get a single class by ID:***

```
$class = $daxkoClient->classes()->get('');
```

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

```
$name = $class->name; // the actual class name
```

### Handling errors

[](#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:

```
$class = $daxkoClient->classes()->get('');

 if ($class->hasErrors()) {
    var_dump($class->getErrors()));
}
```

Contributions
-------------

[](#contributions)

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

```
docker-compose up

```

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](phpdocker/README.md)

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

### Acknowledgments

[](#acknowledgments)

Thank you to [phpdocker.io](https://phpdocker.io) for making getting PHP environments effortless!

###  Health Score

32

—

LowBetter than 72% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity29

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity57

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 83.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~116 days

Total

4

Last Release

1574d ago

PHP version history (2 changes)1.1PHP ^7.4

1.2.2PHP ^7.4 | 8.\*

### Community

Maintainers

![](https://www.gravatar.com/avatar/c43db68a7e04c12abb3642479297b5080f47c3b436875c059ec278ec1655e78f?d=identicon)[teodortalov](/maintainers/teodortalov)

---

Top Contributors

[![teodortalov](https://avatars.githubusercontent.com/u/2781820?v=4)](https://github.com/teodortalov "teodortalov (5 commits)")[![hubersond](https://avatars.githubusercontent.com/u/22603770?v=4)](https://github.com/hubersond "hubersond (1 commits)")

---

Tags

apiforwardforcedaxko

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/forward-force-daxko-api-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/forward-force-daxko-api-sdk/health.svg)](https://phpackages.com/packages/forward-force-daxko-api-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k7.6M74](/packages/openai-php-laravel)[mailchimp/transactional

458.9M16](/packages/mailchimp-transactional)[get-stream/stream-chat

A PHP client for Stream Chat (https://getstream.io/chat/)

301.8M2](/packages/get-stream-stream-chat)[convertkit/convertkitapi

Kit PHP SDK for the Kit API

2167.1k1](/packages/convertkit-convertkitapi)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
