Skip to content

Setono/BudbeeBundle

Repository files navigation

Budbee bundle for Symfony

Latest Version Software License Build Status

Integrates the Budbee PHP SDK into your Symfony application.

Installation

To install this bundle, simply run:

composer require setono/budbee-bundle

Usage

<?php

use Setono\Budbee\Client\ClientInterface;

require_once __DIR__ . '/../vendor/autoload.php';

final class YourService
{
    private ClientInterface $client;

    public function __construct(ClientInterface $client)
    {
        $this->client = $client;
    }

    public function __invoke(): void
    {
        // do something with the client
        $boxes = $this->client->boxes()->getAvailableLockers('DK', '1159');

        // ...
    }
}