https://github.com/avtonom/web-gate-bundle
API for request and response to Rest and Soap
https://github.com/avtonom/web-gate-bundle
api rest restful soap soap-api soap-client
Last synced: 2 months ago
JSON representation
API for request and response to Rest and Soap
- Host: GitHub
- URL: https://github.com/avtonom/web-gate-bundle
- Owner: Avtonom
- Created: 2016-05-24T10:21:02.000Z (about 10 years ago)
- Default Branch: master
- Last Pushed: 2018-07-05T09:06:44.000Z (almost 8 years ago)
- Last Synced: 2025-01-16T23:32:01.550Z (over 1 year ago)
- Topics: api, rest, restful, soap, soap-api, soap-client
- Language: PHP
- Size: 18.6 KB
- Stars: 1
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# web-gate-bundle
API for request and response to Rest and Soap
#### To Install
``` bash
php composer.phar require "avtonom/web-gate-bundle"
```
Add the bundle to app/AppKernel.php
``` php
$bundles(
...
new Sensio\Bundle\BuzzBundle\SensioBuzzBundle(),
new Avtonom\WebGateBundle\AvtonomWebGateBundle(),
...
```
Configuration options (parameters.yaml):
``` yaml
web_gate.soap.environment: dev
web_gate.soap.connection_timeout: 15
web_gate.logger.logging_max_files: 0
web_gate.logger.logging_level: 100
```
Configuration services (services.yaml):
``` yaml
services:
app.rest.client.get_user:
class: Avtonom\WebGateBundle\Service\RestService
arguments:
- "@web_gate.logger"
- "@buzz"
- "GET"
- "%web_gate.rest.host%"
- "%web_gate.rest.env%/api/v1/user/"
- "%web_gate.rest.login%"
- "%web_gate.rest.password%"
```
Controller
``` php
$user = $this->get('app.rest.client.get_user')->send(['login' => 'test'], '/api/v1/user' . '/other_params');
```