PHPackages                             apiera/php-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. [Utility &amp; Helpers](/categories/utility)
4. /
5. apiera/php-sdk

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

apiera/php-sdk
==============

Apiera PHP SDK composer library.

2.0.0(1y ago)115[5 issues](https://github.com/apiera-as/apiera-php-sdk/issues)MITPHPPHP ^8.3CI passing

Since Jan 22Pushed 1y agoCompare

[ Source](https://github.com/apiera-as/apiera-php-sdk)[ Packagist](https://packagist.org/packages/apiera/php-sdk)[ RSS](/packages/apiera-php-sdk/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (12)Versions (9)Used By (0)

Apiera PHP SDK
==============

[](#apiera-php-sdk)

A PHP SDK for interacting with the Apiera API. Built with PHP 8.3, utilizing PSR standards and Guzzle HTTP client.

Requirements
------------

[](#requirements)

- PHP 8.3 or higher
- Composer

Package dependencies will be installed automatically via Composer.

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

[](#installation)

Install via Composer:

```
composer require apiera/php-sdk
```

Configuration Options
---------------------

[](#configuration-options)

The SDK can be configured with the following options:

```
$apieraConfig = new \Apiera\Sdk\Configuration(
    baseUrl: 'https://api.example.com', // The base URL of the API
    userAgent: 'MyAppName/1.0', // Replace with your application user agent
    oauthDomain: 'your-oauth-domain.com', // OAuth2 authentication domain
    oauthClientId: 'your-oauth-client-id', // OAuth2 client ID
    oauthClientSecret: 'your-oauth-client-secret', // OAuth2 client secret
    oauthCookieSecret: 'your-oauth-cookie-secret', // OAuth2 cookie secret
    oauthAudience: 'your-oauth-audience', // OAuth2 audience
    oauthOrganizationId: 'your-organization-id', // OAuth2 organization ID
    cache: $yourCacheInstance, // Pass a CacheItemPoolInterface object
    timeout: 15, // Optional: Request timeout (default: 10 seconds)
    debugMode: true, // Optional: Enable or disable debug mode (default: false)
    options: [], // Optional: Pass your custom Guzzle handlers or middlewares
    defaultIntegration: 'integration-iri', // Optional: Pass a default integration iri reference
    defaultInventoryLocation: 'inventory-location-iri', // Optional: Pass a default inventory location iri reference
    defaultStore: 'store-iri' // Optional: Pass a default store iri reference
);
```

Using the SDK
-------------

[](#using-the-sdk)

[`ApieraSdk`](src/ApieraSdk.php) is a centralized class providing access to all available API resources:

```
$apieraSdk = new \Apiera\Sdk\ApieraSdk($apieraConfig);

$categoryRequest = new \Apiera\Sdk\DTO\Request\Category\CategoryRequest(
    name: 'Hardware',
    store: '/api/v1/stores/520413a8-509a-4048-96e6-81751e315c5d',
    description: 'Some category description',
    parent: '/api/v1/stores/520413a8-509a-4048-96e6-81751e315c5d/categories/520413a8-509a-4048-96e6-81751e315c5d2'
);

$categoryResponse = $apieraSdk->category()->create($categoryRequest);

// Do something with $categoryResponse
```

More examples can be found [here](docs/examples.md)

Support
-------

[](#support)

For support, please contact  or visit our [documentation](https://app.swaggerhub.com/apis-docs/FREDRIKTVERAAEN/apiera-organization-api/1.2.0).

License
-------

[](#license)

This project is licensed under the MIT License - see the [LICENSE](LICENSE.md) file for details

###  Health Score

27

—

LowBetter than 49% of packages

Maintenance25

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity58

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 ~17 days

Total

4

Last Release

429d ago

Major Versions

0.2.0 → 1.0.02025-02-11

1.0.0 → 2.0.02025-03-15

### Community

Maintainers

![](https://www.gravatar.com/avatar/d6a0a89ea1e546fb500ca8fe825198814b818c3091e5051d158b8f8bb11492cf?d=identicon)[fredrik-tveraaen-apiera](/maintainers/fredrik-tveraaen-apiera)

---

Top Contributors

[![fredrik-tveraaen-apiera](https://avatars.githubusercontent.com/u/109967326?v=4)](https://github.com/fredrik-tveraaen-apiera "fredrik-tveraaen-apiera (7 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/apiera-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/apiera-php-sdk/health.svg)](https://phpackages.com/packages/apiera-php-sdk)
```

###  Alternatives

[sylius/sylius

E-Commerce platform for PHP, based on Symfony framework.

8.4k5.6M651](/packages/sylius-sylius)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[google/cloud-core

Google Cloud PHP shared dependency, providing functionality useful to all components.

343121.4M79](/packages/google-cloud-core)[tempest/framework

The PHP framework that gets out of your way.

2.1k23.1k9](/packages/tempest-framework)[aimeos/aimeos-base

Aimeos base layer for abstracting from host environments

2.1k134.0k1](/packages/aimeos-aimeos-base)[sulu/sulu

Core framework that implements the functionality of the Sulu content management system

1.3k1.3M152](/packages/sulu-sulu)

PHPackages © 2026

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