setono/budbee-bundle

Use Budbee in your Symfony application

Installs: 2 938

Dependents: 1

Suggesters: 0

Security: 0

Stars: 0

Watchers: 1

Forks: 0

Open Issues: 0

Type:symfony-bundle

v1.1.0 2024-03-06 11:00 UTC

This package is auto-updated.

Last update: 2024-11-06 12:44:26 UTC


README

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');

        // ...
    }
}