PHPackages                             acendy/acendy-api-client - 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. acendy/acendy-api-client

ActiveLibrary[API Development](/categories/api)

acendy/acendy-api-client
========================

Acendy API Client

1.0.0(8mo ago)0166MITPHPPHP &gt;=8.2CI passing

Since Sep 8Pushed 8mo agoCompare

[ Source](https://github.com/mystoreno/acendy-api-client)[ Packagist](https://packagist.org/packages/acendy/acendy-api-client)[ RSS](/packages/acendy-acendy-api-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)Used By (0)

Acendy API Client
=================

[](#acendy-api-client)

The **Acendy API Client** is a PHP library for interacting with the Acendy API.

For detailed API specifications, refer to the official documentation at .

Getting Started
---------------

[](#getting-started)

To use the Acendy API Client, you need an API token for authentication. Follow these steps:

1. **Obtain an API Token**: Log in to  and generate an API token. This token authenticates all requests made through the client.
2. **Review the API Docs**: Visit  for comprehensive details on endpoints, authentication, and request/response formats.
3. **Set up the client**: Use the token, your store's unique identifier, and the API base URL to initialize the client (see **Installation** and **Usage Examples** below).

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

[](#installation)

```
composer require acendy/acendy-api-client
```

Using the library requires a PSR-18 compatible HTTP Client like GuzzleHTTP. If you don't have one, install Guzzle + PSR-7:

```
composer require guzzlehttp/guzzle guzzlehttp/psr7
```

### Usage examples

[](#usage-examples)

Below are examples demonstrating how to use the Acendy API Client. These assume you have Guzzle installed.

#### Initializing the Client

[](#initializing-the-client)

Instantiate the AcendyApiClient with your API credentials and HTTP dependencies:

```
require_once __DIR__ . '/vendor/autoload.php';

use Acendy\Api\Client\AcendyApiClient;

use GuzzleHttp\Client;
use GuzzleHttp\Psr7\HttpFactory;

$client = new AcendyApiClient(
    baseURL: 'https://api.mystore.no/',
    token: 'your-api-token',
    storeName: 'your-store-name',
    httpClient: new Client(),
    requestFactory: new HttpFactory(),
    streamFactory: new HttpFactory()
);
```

#### Simple example: get all customers

[](#simple-example-get-all-customers)

Retrieve a list of all customers without additional parameters:

```
$customers = $client->customers()->getAllCustomers();
print_r($customers);
```

#### Simple example: get customer by id

[](#simple-example-get-customer-by-id)

Retrieve a single customer:

```
$customer = $client->customers()->getCustomerById('123456');
print_r($customer);
```

#### Basic example: get orders with pagination

[](#basic-example-get-orders-with-pagination)

Fetch orders with basic pagination using the QueryParameters class:

```
use Acendy\Api\Client\QueryParameters;

$queryParams = new QueryParameters(
    pageNumber: 1,
    pageSize: 5
);
$paginatedOrders = $client->orders()->getAllOrders($queryParams);
print_r($paginatedOrders);
```

#### Advanced example: Get orders with full query parameters

[](#advanced-example-get-orders-with-full-query-parameters)

Perform a complex query on customers with filters, sorting, includes, and field selection:

```
use Acendy\Api\Client\QueryParameters;

$queryParams = new QueryParameters(
    pageNumber: 1,
    pageSize: 50,
    filters: [
        'customer.id' => '123456',
        'order-status.id' => '1',
        'currency' => 'NOK'
    ],
    sort: ['-created_at'],
    include: ['customer', 'order-status', 'order-products'],
    fields: ['customer_address_name', 'currency', 'created_at'],
);

$orders = $client->orders()->getAllOrders($queryParams);
print_r($orders);
```

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance60

Regular maintenance activity

Popularity14

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity49

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

252d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/15e35661d5b0e0331d098438bb895f82b606fd7dad509a77191e70de43b6ca1a?d=identicon)[cowbellerina](/maintainers/cowbellerina)

---

Top Contributors

[![cowbellerina](https://avatars.githubusercontent.com/u/1409675?v=4)](https://github.com/cowbellerina "cowbellerina (17 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Type Coverage Yes

### Embed Badge

![Health badge](/badges/acendy-acendy-api-client/health.svg)

```
[![Health](https://phpackages.com/badges/acendy-acendy-api-client/health.svg)](https://phpackages.com/packages/acendy-acendy-api-client)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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