jongotlin/ratsit-bundle

安装次数: 5,725

依赖项: 0

建议者: 0

安全性: 0

星标: 1

关注者: 3

分支: 0

开放问题: 1

类型:symfony-bundle

2.1.3 2022-06-24 06:32 UTC

This package is auto-updated.

Last update: 2024-09-20 08:05:10 UTC


README

Symfony 扩展包,用于 jongotlin/ratsit

安装

使用 composer 和您喜欢的 HTTP 适配器(在本例中为 Guzzle 6)进行安装

$ composer require php-http/client-implementation:^1.0 php-http/discovery:^1.0 php-http/guzzle6-adapter:^1.0 php-http/httplug:^1.0 php-http/message:^1.0 jongotlin/ratsit-bundle:^1.0

在 config.yml 中

ratsit:
    token: '*************'
    http_client: 'httplug.client'

在 AppKernel.php 中

$bundles = array(
    // ...
    new JGI\RatsitBundle\RatsitBundle(),
);

使用方法

// Inject JGI\Ratsit\Ratsit $ratsit via container */
$persons = $ratsit->searchPerson('Per Fredrik', 'EKEBY');
$person = $ratsit->findPersonBySocialSecurityNumber('194107081111');