PHPackages                             ddb/stuart-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. ddb/stuart-api-bundle

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

ddb/stuart-api-bundle
=====================

Bundle to communicate with the stuart API

1.1.10(7y ago)076MITPHPPHP ^7.1.3

Since Dec 14Pushed 7y ago1 watchersCompare

[ Source](https://github.com/ddbBundle/StuartApiBundle)[ Packagist](https://packagist.org/packages/ddb/stuart-api-bundle)[ RSS](/packages/ddb-stuart-api-bundle/feed)WikiDiscussions master Synced 4w ago

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

StuartApiBundle
===============

[](#stuartapibundle)

Simple bundle using the stuart php library to integrate with symfony

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

[](#configuration)

```
stuart_api:
  private_key: "stuart super private key"
  public_key: "stuart public key"
  environment: "SANDBOX" // OR "PRODUCTION"
  vat_rate: 20
    authorized_webhook_ips:
      sandbox:
        - "34.254.62.41"
        - "54.194.139.211"
      production:
        - "108.128.110.19"
        - "54.171.243.90"
        - "52.51.60.65"
```

Functions
---------

[](#functions)

### StuartApi

[](#stuartapi)

Used to create and dispatch jobs

- public function createJobObjectFromRequest(Request $request)
- public function createJobObject(
- public function addJob(Job $job)

### StuartApiController

[](#stuartapicontroller)

These function have routes exposed and return a JSONResponse

- nextPickupSlot($city = "Bordeaux") : Get the next available pickup slot for the city
- validateJob(Request $request)
- priceJob(Request $request)

### Events

[](#events)

StuartApiEvents.php defines constants for the event names

#### WebhookEvent.php

[](#webhookeventphp)

This event redispatches any requests on the /webhook route. You can register an EventSubscriberInterface in your application to listen to these events and update your orders accordingly.

Only Request coming from the whitelisted ips in the configuration will be allowed through and only for the corresponding environment.

```
namespace App\EventSubscriber;

use DdB\StuartApiBundle\Event\StuartApiEvents;
use DdB\StuartApiBundle\Event\WebhookEvent;
use Symfony\Component\EventDispatcher\EventSubscriberInterface;

class StuartWebhookSubscriber implements EventSubscriberInterface
{
    public function onStuartApiWebhook(WebhookEvent $event)
    {
        $request = $event->getRequest();
        //Do something with the request
    }

    public static function getSubscribedEvents()
    {
        return [
           StuartApiEvents::WEBHOOK_API => 'onStuartApiWebhook',
        ];
    }
}
```

Translations
------------

[](#translations)

All the errors returned by the Stuart API can be translated using the Errors.(lang).yaml files inside Resources/translations

###  Health Score

28

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity64

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

Recently: every ~1 days

Total

12

Last Release

2627d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0480f4640e4b77d81842082e7b73e903428b52b68f58e244cdc0108a72939004?d=identicon)[DennisdeBest](/maintainers/DennisdeBest)

---

Top Contributors

[![DennisdeBest](https://avatars.githubusercontent.com/u/15683927?v=4)](https://github.com/DennisdeBest "DennisdeBest (33 commits)")

### Embed Badge

![Health badge](/badges/ddb-stuart-api-bundle/health.svg)

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

###  Alternatives

[easycorp/easyadmin-bundle

Admin generator for Symfony applications

4.3k18.3M414](/packages/easycorp-easyadmin-bundle)[sylius/sylius

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

8.5k6.0M766](/packages/sylius-sylius)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.8M647](/packages/shopware-core)[pimcore/pimcore

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

3.8k3.9M530](/packages/pimcore-pimcore)[sulu/sulu

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

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

The easy like Crud'it Bundle.

1617.3k14](/packages/2lenet-crudit-bundle)

PHPackages © 2026

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