PHPackages                             integration-kit/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. [HTTP &amp; Networking](/categories/http)
4. /
5. integration-kit/bundle

ActiveSymfony-bundle[HTTP &amp; Networking](/categories/http)

integration-kit/bundle
======================

Standardize external API consumption in Symfony

v1.0.0(4mo ago)02MITPHPPHP &gt;=8.2

Since Dec 22Pushed 3mo agoCompare

[ Source](https://github.com/julien-lin/Symfony-IntegrationKitBundle)[ Packagist](https://packagist.org/packages/integration-kit/bundle)[ RSS](/packages/integration-kit-bundle/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (8)Versions (2)Used By (0)

IntegrationKitBundle
====================

[](#integrationkitbundle)

**Standardize external API consumption in Symfony, without reinventing the wheel.**

Value Proposition
-----------------

[](#value-proposition)

This bundle provides a minimal abstraction layer to standardize external API calls (Stripe, Slack, CRM, webhooks...) in Symfony business code. It relies on `HttpClient`, `EventDispatcher` and `Messenger` without replacing them, and ensures that each integration is testable, traceable and normalized.

**Key points:**

- The bundle does not impose any business model and does not encapsulate HttpClient
- Each integration uses HttpClient directly and exposes typed business methods
- Execution goes through typed Command objects (no magic strings, no dynamic reflection)

Target Audience
---------------

[](#target-audience)

**For:**

- Teams that multiply external integrations (3+ different APIs)
- Projects where API call traceability is critical (logs, metrics, errors)
- Codebases where you want to avoid HTTP code duplication (retries, timeouts, authentication)
- Teams that want to test integrations without real HTTP calls

**NOT for:**

- Projects with a single external integration (unnecessary overhead)
- Teams that prefer total control over each HTTP call
- Projects where each API requires very specific HTTP logic
- Applications that don't need standardized traceability

Usage Example (30 lines)
------------------------

[](#usage-example-30-lines)

```
// 1. Define a typed Command (execution contract)
final class SlackNotifyCommand implements IntegrationCommand
{
    public function __construct(
        public readonly string $email,
        public readonly string $name
    ) {}

    public function integrationName(): string
    {
        return 'slack';
    }
}

// 2. Define an explicit Handler (typed mapping, no reflection)
final class SlackNotifyHandler implements IntegrationHandlerInterface
{
    public function __construct(
        private HttpClientInterface $httpClient,
        private string $webhookUrl
    ) {}

    public function supports(): string
    {
        return SlackNotifyCommand::class;
    }

    public function handle(IntegrationCommand $command): void
    {
        assert($command instanceof SlackNotifyCommand);

        $response = $this->httpClient->request('POST', $this->webhookUrl, [
            'json' => ['text' => "User {$command->email} ({$command->name}) registered"]
        ]);

        if (200 !== $response->getStatusCode()) {
            throw new IntegrationException('slack', 'Notification failed');
        }
    }
}

// 3. Use it in business code (strong typing, auto-completion)
class UserService
{
    public function __construct(
        private IntegrationExecutor $executor
    ) {}

    public function notifyUserRegistered(User $user): void
    {
        // Typed command = compile-time safety, refactoring safe
        $this->executor->execute(new SlackNotifyCommand(
            $user->getEmail(),
            $user->getName()
        ));
    }
}
```

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

[](#installation)

```
composer require integration-kit/bundle
```

Configuration
-------------

[](#configuration)

The bundle works without YAML configuration. Just register your integrations and handlers:

```
# config/services.yaml
services:
    App\Integration\SlackIntegration:
        tags:
            - { name: 'integration_kit.integration', name: 'slack' }

    App\Integration\SlackNotifyHandler:
        arguments:
            $webhookUrl: '%env(SLACK_WEBHOOK_URL)%'
        tags:
            - { name: 'integration_kit.handler', command: 'App\Integration\SlackNotifyCommand' }
```

Complete Documentation
----------------------

[](#complete-documentation)

See [README.fr.md](README.fr.md) for complete documentation in French, or [EXEMPLE\_USAGE.md](EXEMPLE_USAGE.md) for a comprehensive usage guide with examples.

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 80% of packages

Maintenance78

Regular maintenance activity

Popularity2

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity47

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

Unknown

Total

1

Last Release

148d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/e92f8ec82d7c7caf71b6b8a80d24654e66115d80b736bc481952e92eddd61f16?d=identicon)[Julien Linard](/maintainers/Julien%20Linard)

---

Top Contributors

[![julien-lin](https://avatars.githubusercontent.com/u/58387563?v=4)](https://github.com/julien-lin "julien-lin (1 commits)")

---

Tags

apisymfonybundlehttp clientintegrationintegration-kitexternal-integration

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/integration-kit-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/integration-kit-bundle/health.svg)](https://phpackages.com/packages/integration-kit-bundle)
```

###  Alternatives

[lexik/jwt-authentication-bundle

This bundle provides JWT authentication for your Symfony REST API

2.6k58.7M210](/packages/lexik-jwt-authentication-bundle)[sulu/sulu

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

1.3k1.3M152](/packages/sulu-sulu)[pentatrion/vite-bundle

Vite integration for your Symfony app

2755.3M13](/packages/pentatrion-vite-bundle)[cypresslab/patch-manager

A library to manage patch requests

16117.4k](/packages/cypresslab-patch-manager)

PHPackages © 2026

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