alxxc / simple-api-client-bundle
Symfony SimpleApiClientBundle
dev-master
2017-12-10 14:01 UTC
Requires
- php: >=7.0.12
- guzzlehttp/guzzle: ~6.0
- symfony/config: ~3.4
- symfony/dependency-injection: ~3.4
- symfony/serializer: ~3.4
- symfony/yaml: ~3.4
Requires (Dev)
- phpunit/phpunit: ~6.5
- symfony/symfony: ~3.4
This package is not auto-updated.
Last update: 2024-09-29 05:09:13 UTC
README
关于
Symfony3 扩展包,用于获取存储在预定义格式中的 JSON 编码位置数据。
安装
在 composer.json 中要求 alxxc/simple-api-client-bundle
包并更新您的依赖项。
$ composer require alxxc/simple-api-client-bundle:dev-master
将 SimpleApiClientBundle 添加到您的应用程序内核中(如果需要的话)
public function registerBundles() { $bundles = [ ... new SimpleApiClientBundle\SimpleApiClientBundle(), ... ]; ... }
使用方法
该扩展包提供 simple_api_client.client 服务,用于加载数据位置。
$container->get('simple_api_client.client')->loadLocations($url);