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

ActiveSymfony-bundle

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

Bundle to communicate with the stuart API

1.1.10(6y ago)076MITPHPPHP ^7.1.3

Since Dec 14Pushed 6y 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 today

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

27

—

LowBetter than 51% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

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

2491d 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

[sylius/sylius

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

8.4k5.5M605](/packages/sylius-sylius)[pimcore/pimcore

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

3.7k3.6M355](/packages/pimcore-pimcore)[shopware/platform

The Shopware e-commerce core

3.3k1.5M3](/packages/shopware-platform)[sulu/sulu

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

1.3k1.3M128](/packages/sulu-sulu)[prestashop/prestashop

PrestaShop is an Open Source e-commerce platform, committed to providing the best shopping cart experience for both merchants and customers.

9.0k14.6k](/packages/prestashop-prestashop)[shopware/core

Shopware platform is the core for all Shopware ecommerce products.

595.0M341](/packages/shopware-core)

PHPackages © 2026

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