setono/budbee-bundle

在您的 Symfony 应用程序中使用 Budbee

安装次数: 2,813

依赖项: 1

建议者: 0

安全: 0

星星: 0

关注者: 1

分支: 0

开放问题: 0

类型:symfony-bundle

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

This package is auto-updated.

Last update: 2024-09-06 12:15:47 UTC


README

Latest Version Software License Build Status

将 Budbee PHP SDK 集成到您的 Symfony 应用程序中。

安装

要安装此包,只需运行

composer require setono/budbee-bundle

使用方法

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

        // ...
    }
}