PHPackages                             imper86/allegro-api-bundle - 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. imper86/allegro-api-bundle

ActiveSymfony-bundle[API Development](/categories/api)

imper86/allegro-api-bundle
==========================

Allegro rest/soap api symfony bundle

v3.0.2(6y ago)026MITPHPPHP ^7.1CI failing

Since Sep 21Pushed 6y ago1 watchersCompare

[ Source](https://github.com/imper86/allegro-api-bundle)[ Packagist](https://packagist.org/packages/imper86/allegro-api-bundle)[ RSS](/packages/imper86-allegro-api-bundle/feed)WikiDiscussions master Synced 2w ago

READMEChangelogDependencies (10)Versions (13)Used By (0)

allegro-api-bundle
==================

[](#allegro-api-bundle)

This is simple symfony4 bundle for [imper86/allegroapi](https://github.com/imper86/allegroapi)

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

[](#installation)

```
composer require imper86/allegro-api-bundle
```

Add your config in config/packages directory. Example config:

```
imper86_allegro_api:
    sandbox: true
    client_id: '%env(ALLEGRO_CLIENT_ID)%'
    client_secret: '%env(ALLEGRO_CLIENT_SECRET)%'

    #budle's default is "logger". You can put null here, or your logger service
    logger_service_id: yourlogger

    #you can define how many times client will try to execute request on failure
    client_default_max_retries: 3

    #your entity manager service
    entity_manager: default

    #this route is built in bundle. you can use your own if you want
    redirect_route: allegro_api_handle_code
```

Add bundle's routes in config/routes

```
imper86_allegro_api:
    resource: '@Imper86AllegroApiBundle/Resources/config/routes.xml'
```

Add bundle to bundles.php

```
Imper86\AllegroApiBundle\Imper86AllegroApiBundle::class => ['all' => true],
```

This bundle use doctrine/orm to persist allegro account info, and store tokens, so please make migrations, or update schema

```
./bin/console make:migration
```

Usage
-----

[](#usage)

### Authorization

[](#authorization)

Once you have your setup ready you can start auth code grant process going to route: http(s)://your.app/allegro-api/start

You'll be then redirected to allegro.pl to confirm authorization.

After that you'll come back to redirect\_route specified in config. If you leave default value, bundle will handle response, and will get and store your token pair.

If you want to modify the response of AllegroApiController::handleCode please write subscriber/listener for [Imper86\\AllegroApiBundle\\Event\\AuthCodeEvent](src/Event/AuthCodeEvent.php)

### Using client

[](#using-client)

To get your client, inject service [AllegroClientManagerInterface](src/Manager/AllegroClientManagerInterface.php)and use **build** method to create api client ([AllegroClientInterface](src/Service/AllegroClientInterface.php)).

If you wish to use client credentials grant, skip Authorization part, and just use **build** method with *null* parameter instead of AllegroAccount object.

Bundle will handle tokens, and soap sessionId's for you, so you can use requests without (**null**) token.

### TokenBundleServiceInterface

[](#tokenbundleserviceinterface)

Inject [this](src/Service/TokenBundleServiceInterface.php) service if you need *TokenBundleInterface* object, refresh token, or sessionId.

Is that all?
------------

[](#is-that-all)

This bundle is on very early stage, so please expect many updates in future, because I know that many things in here should be done better.

Maintenance
-----------

[](#maintenance)

Currently maintained version is v3. If you use v1 or v2 you won't receive any bundle updates.

Contributing
------------

[](#contributing)

Any help will be very appreciated :)

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity61

Established project with proven stability

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

Recently: every ~15 days

Total

12

Last Release

2403d ago

Major Versions

v1.1.3 → v2.0.02019-10-02

v2.0.0 → v3.0.02019-10-05

v2.x-dev → v3.0.12019-10-05

### Community

Maintainers

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

---

Top Contributors

[![imper86](https://avatars.githubusercontent.com/u/16724155?v=4)](https://github.com/imper86 "imper86 (14 commits)")

---

Tags

allegroallegro-apiallegro-plbundlephpsymfonysymfony-bundle

### Embed Badge

![Health badge](/badges/imper86-allegro-api-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/imper86-allegro-api-bundle/health.svg)](https://phpackages.com/packages/imper86-allegro-api-bundle)
```

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k17.5M378](/packages/easycorp-easyadmin-bundle)[sulu/sulu

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

1.3k1.4M196](/packages/sulu-sulu)[2lenet/crudit-bundle

The easy like Crud'it Bundle.

1615.6k12](/packages/2lenet-crudit-bundle)[open-dxp/opendxp

Content &amp; Product Management Framework (CMS/PIM)

9317.2k55](/packages/open-dxp-opendxp)[rcsofttech/audit-trail-bundle

Enterprise-grade, high-performance Symfony audit trail bundle. Automatically track Doctrine entity changes with split-phase architecture, multiple transports (HTTP, Queue, Doctrine), and sensitive data masking.

1175.2k](/packages/rcsofttech-audit-trail-bundle)

PHPackages © 2026

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