wundii/afterbuy-sdk-symfony-bundle

A Symfony Bundle for modern Afterbuy Programming Interface Software Development Kit - optimized for PHP 8.2+

1.0.2 2025-06-18 07:40 UTC

This package is auto-updated.

Last update: 2025-06-20 06:09:39 UTC


README

PHP-Tests PHPStan VERSION PHP Rector ECS PHPUnit codecov PSR3 Downloads

A Symfony bundle providing seamless integration for the wundii/afterbuy-sdk.

Afterbuy API Documentation

Supported Requests with Examples

Installation

Require the bundle and its dependencies with composer:

composer require wundii/afterbuy-sdk-symfony-bundle

Include the bundle in your bundles.php:

return [
    // ...
    Wundii\AfterbuySdk\SymfonyBundle\AfterbuySdkBundle::class => ['all' => true],
];

Create a Symfony configuration file config/packages/afterbuy_sdk.yaml with the command:

bin/console afterbuy-sdk:default-config

Configuration File

The following setting options are available

afterbuy_sdk:
  afterbuy_global:
    accountToken: <your_account_token> / "%env(...)%"
    partnerToken: <your_partner_token> / "%env(...)%"
    endpointEnum: sandbox
    errorLanguageEnum: DE
  logger_interface: <your_logger_interface_class_string>
  validatorBuilder: <your_validatorBuilder_class_string>

when@test:
  afterbuy_sdk:
    afterbuy_global:
      endpointEnum: sandbox

when@prod:
  afterbuy_sdk:
    afterbuy_global:
      endpointEnum: prod

After modifying the configuration, it is recommended to clear the cache

bin/console cache:clear