wundii / afterbuy-sdk-symfony-bundle
A Symfony Bundle for modern Afterbuy Programming Interface Software Development Kit - optimized for PHP 8.2+
Installs: 25
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=8.2
- ext-dom: *
- ext-json: *
- ext-reflection: *
- ext-simplexml: *
- ext-xml: *
- symfony/config: ^6.4 || ^7.0
- symfony/console: ^6.4 || ^7.0
- symfony/dependency-injection: ^6.4||^7.0
- symfony/http-kernel: ^6.4||^7.0
- wundii/afterbuy-sdk: dev-main || ^0.24 || ^1.0
Requires (Dev)
- ext-libxml: *
- phpstan/phpstan: ^2.0
- phpstan/phpstan-strict-rules: ^2.0
- phpunit/phpunit: ^11.4
- rector/rector: ^2.0
- symfony/var-dumper: ^7.0
- symfony/yaml: ^7.0
- symplify/easy-coding-standard: ^12.3
- wundii/phplint: ^0.3
README
A Symfony bundle providing seamless integration for the wundii/afterbuy-sdk.
Afterbuy API Documentation
Supported Requests with Examples
- CreateShopOrder
- GetAfterbuyTime
- GetListerHistory
- GetMailTemplates
- GetPaymentServices
- GetProductDiscounts
- GetShippingCost
- GetShippingServices
- GetShopCatalogs
- GetShopProducts
- GetSoldItems
- GetStockInfo
- GetTranslatedMailTemplate
- UpdateCatalogs
- UpdateShopProducts
- UpdateSoldItems
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