zangra / geodis-bundle
Geodis 标签的扩展包
2.3
2024-06-25 12:39 UTC
Requires
- php: ^7.0
- doctrine/doctrine-bundle: *
- guzzlehttp/guzzle: ^6.2
- symfony/framework-bundle: >=2.1
README
关于
Geodis 标签的 Symfony 扩展包。
描述
- GeodisBundle 为在 Symfony 应用程序内管理和生成 Geodis 标签提供了一种简单的方法。
安装
要安装 GeodisBundle,使用 Composer
composer require zangra/geodis-bundle
要求
- PHP ^7.0
- Symfony 框架扩展包 >=2.1
- Doctrine 扩展包
- Guzzle HTTP 客户端 ^6.2
配置
- 将扩展包添加到 config/bundles.php 文件中
return [ // Other bundles... GeodisBundle\GeodisBundle::class => ['all' => true], ];
使用
- 要使用 GeodisBundle,您需要设置必要的配置和服务。例如
# config/packages/geodis.yaml geodis: api_key: '%env(GEODIS_API_KEY)%'