PHPackages                             cedcommerce/allegro-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. cedcommerce/allegro-sdk

ActiveLibrary

cedcommerce/allegro-sdk
=======================

simple interface for Allegro REST API

1.0.1(4y ago)1459MITPHP

Since Nov 10Pushed 4y ago2 watchersCompare

[ Source](https://github.com/cedcommerce/allegro-sdk)[ Packagist](https://packagist.org/packages/cedcommerce/allegro-sdk)[ RSS](/packages/cedcommerce-allegro-sdk/feed)WikiDiscussions master Synced 4w ago

READMEChangelog (4)DependenciesVersions (12)Used By (0)

php-allegro-rest-api
====================

[](#php-allegro-rest-api)

Simple interface for Allegro REST API resources

Authorization and Tokens
------------------------

[](#authorization-and-tokens)

In order to use Allegro REST Api, you have to register your application and authorize it ().

### Authorization link

[](#authorization-link)

```
$api = new Api($clientId, $clientSecret, $apiKey, $redirectUri, null, null);
echo $api->getAuthorizationUri();
```

### Getting new token

[](#getting-new-token)

```
# example contents of your_redirect_uri.com/index.php
$code = $_GET['code'];
$api = new Api($clientId, $clientSecret, $apiKey, $redirectUri, null, null);
$response = $api->getNewAccessToken($code);
# response contains json with your access_token and refresh_token
```

### Refreshing existing token

[](#refreshing-existing-token)

```
$api = new Api($clientId, $clientSecret, $apiKey, $redirectUri, $accessToken, $refreshToken);
$response = $api->refreshAccessToken();
# response contains json with your new access_token and refresh_token
```

Example usage
-------------

[](#example-usage)

```
$api = new Api($clientId, $clientSecret, $apiKey, $redirectUri, $accessToken, $refreshToken);

// GET https://allegroapi.io/{resource}
// $api->{resource}->get();

// GET https://allegroapi.io/categories
$api->categories->get();

// GET https://allegroapi.io/{resource}/{resource_id}
// $api->{resource}({resource_id})->get();

// GET https://allegroapi.io/categories/2
$api->categories(2)->get();

// PUT https://allegroapi.io/{resource}/{resource_id}/{command-name}-command/{uuid}
// $api->{resource}({resource_id})->commands()->{command_name}($data);

// PUT https://allegroapi.io/offers/12345/change-price-commands/84c16171-233a-42de-8115-1f1235c8bc0f
$api->offers(12345)->commands()->change_price($data);
```

###  Health Score

32

—

LowBetter than 71% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community14

Small or concentrated contributor base

Maturity70

Established project with proven stability

 Bus Factor1

Top contributor holds 66.7% 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 ~178 days

Recently: every ~324 days

Total

11

Last Release

1681d ago

Major Versions

0.0.8 → 1.0.02020-03-28

### Community

Maintainers

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

---

Top Contributors

[![Wiatrogon](https://avatars.githubusercontent.com/u/11462938?v=4)](https://github.com/Wiatrogon "Wiatrogon (26 commits)")[![07adityasingh](https://avatars.githubusercontent.com/u/49195898?v=4)](https://github.com/07adityasingh "07adityasingh (6 commits)")[![serten-d](https://avatars.githubusercontent.com/u/36070617?v=4)](https://github.com/serten-d "serten-d (3 commits)")[![milindsingh](https://avatars.githubusercontent.com/u/13949703?v=4)](https://github.com/milindsingh "milindsingh (2 commits)")[![marcinc81](https://avatars.githubusercontent.com/u/900272?v=4)](https://github.com/marcinc81 "marcinc81 (1 commits)")[![shahbazcedcoss](https://avatars.githubusercontent.com/u/55618995?v=4)](https://github.com/shahbazcedcoss "shahbazcedcoss (1 commits)")

### Embed Badge

![Health badge](/badges/cedcommerce-allegro-sdk/health.svg)

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

PHPackages © 2026

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