alpifra/daxium-php

A basic PHP client interracting with the Daxium Air API V1.3 services.

Installs: 25

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

pkg:composer/alpifra/daxium-php

dev-master 2023-10-18 11:50 UTC

This package is auto-updated.

Last update: 2026-01-18 17:16:00 UTC


README

A basic and stand-alone PHP client interracting with the Daxium Air API V1.3 services. For more information about the API please see the documentation.

Installation

The recommended way to install Daxium API PHP client is through composer:

composer require alpifra/daxium-php

But you can also install through the Github repository:

{
    "requires": {
        "alpifra/daxium-php": "dev-master",
        ...
    }
    "repositories": [
        {
            "type": "vcs",
            "url": "https://github.com/Alpifra/daxium-php.git"
        }
    ],
}

Usage

Instanciate client

<?php

$client = new Alpifra\DaxiumPHP\Daxium(
    '***CLIENT_ID***',
    '***CLIENT_SECRET***',
    '***USERNAME***',
    '***PASSWORD***',
);

All various client

<?php

$listClient       = new Alpifra\DaxiumPHP\Client\Listing('***CLIENT_ID***', '***CLIENT_SECRET***', '***USERNAME***', '***PASSWORD***');
$reportClient     = new Alpifra\DaxiumPHP\Client\Report('***CLIENT_ID***', '***CLIENT_SECRET***', '***USERNAME***', '***PASSWORD***');
$structureClient  = new Alpifra\DaxiumPHP\Client\Structure('***CLIENT_ID***', '***CLIENT_SECRET***', '***USERNAME***', '***PASSWORD***');
$submissionClient = new Alpifra\DaxiumPHP\Client\Submission('***CLIENT_ID***', '***CLIENT_SECRET***', '***USERNAME***', '***PASSWORD***');
$taskClient       = new Alpifra\DaxiumPHP\Client\Task('***CLIENT_ID***', '***CLIENT_SECRET***', '***USERNAME***', '***PASSWORD***');
$userClient       = new Alpifra\DaxiumPHP\Client\User('***CLIENT_ID***', '***CLIENT_SECRET***', '***USERNAME***', '***PASSWORD***');

Contribution

This package only implement the Daxium API services that I need, but you're welcome to contribute to this repository with your own implementation by sending me a PR. Happy coding !