nucleos/setlistfm-bundle

此包为使用symfony框架调用setlist.fm API提供服务。

安装: 556

依赖: 0

建议: 0

安全: 0

星标: 3

关注者: 2

分支: 3

开放问题: 3

类型:symfony-bundle

1.3.0 2024-08-14 16:27 UTC

README

Latest Stable Version Latest Unstable Version License

Total Downloads Monthly Downloads Daily Downloads

Continuous Integration Code Coverage Type Coverage

此库提供用于Setlist.fm PHP API的symfony包。

安装

打开命令行,进入项目目录,然后执行以下命令以下载此库的最新稳定版本

composer require nucleos/setlistfm-bundle
# To define a default http client and message factory
composer require symfony/http-client nyholm/psr7

启用包

然后,通过将其添加到项目config/bundles.php文件中注册的包列表中,来启用该包

// config/bundles.php

return [
    // ...
    Nucleos\SetlistFmBundle\NucleosSetlistFmBundle::class => ['all' => true],
];

配置包

创建一个名为nucleos_setlistfm.yaml的配置文件

# config/packages/nucleos_setlistfm.yaml

nucleos_setlistfm:
    api:
        key:    "%setlistfm_api.key%"

    http:
        client: 'httplug.client'
        message_factory: 'nyholm.psr7.psr17_factory'

许可证

此库采用MIT许可证