2017 © Pedro Peláez
 

symfony-bundle sf-forward

SF Forward Requests

image

sdaoudi/sf-forward

SF Forward Requests

  • Monday, April 2, 2018
  • by sdaoudi
  • Repository
  • 2 Watchers
  • 2 Stars
  • 16 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 5 Versions
  • 0 % Grown

The README.md

Symfony Requests Forward

Build Status Scrutinizer Code Quality Latest Stable Version Total Downloads, (*1)

SfForwardBundle is a bundle that allows you to forward server-side HTTP requests using the Guzzle library., (*2)

INSTALLATION

To install this bundle, run the following command:, (*3)

``` bash $ composer require sdaoudi/sf-forward, (*4)


## USAGE ##### Enable bundle: ``` php SfForward\SfForwardBundle::class => ['all' => true],
Add the SfForward route to your routing.yml file:

``` yaml sf_forward: resource: '@SfForwardBundle/Controller/SfForwardController.php' type: annotation, (*5)


##### Guzzle configuration: For the Guzzle configuration, see the [8p/EightPointsGuzzleBundle][1] project documentation: ``` yaml # EightPoints GuzzleBundle # A full list of configuration options can be found here: # https://github.com/8p/EightPointsGuzzleBundle/blob/master/src/Resources/doc/configuration-reference.md eight_points_guzzle: clients: my_client: # Write here the host where to do requests base_url: "http://localhost:8000" # Request options: http://docs.guzzlephp.org/en/stable/request-options.html options: # timeout in seconds timeout: 30 # set to false to disable throwing exceptions on an HTTP protocol errors (4xx and 5xx responses) http_errors: true # each key is the name of a header, and each value is a string or array of strings representing the # header field values. headers: User-Agent: "EightPointsGuzzleBundle/v7"
Examples:

link http://symfony.local//sfForwardFront/service=MyClient&routeId=_my_route_example_2174?key=value, (*6)

  • service: is the key of the client configured with Guzzle.
  • routeId: is the target route, just replace the slashes (/) by underscores (_).

In order to respect Symfony naming conventions, the service passed in parameter would be transformed into [Snake Case][3]., (*7)

The Versions

02/04 2018

dev-master

9999999-dev

SF Forward Requests

  Sources   Download

MIT

The Requires

 

The Development Requires

by DAOUDI Soufian

25/03 2018

v1.3

1.3.0.0

SF Forward Requests

  Sources   Download

MIT

The Requires

 

The Development Requires

by DAOUDI Soufian

11/03 2018

v1.2

1.2.0.0

SF Forward Requests

  Sources   Download

MIT

The Requires

 

The Development Requires

by DAOUDI Soufian

11/03 2018

v1.1

1.1.0.0

SF Forward Requests

  Sources   Download

MIT

The Requires

 

The Development Requires

by DAOUDI Soufian

11/03 2018

v1.0

1.0.0.0

SF Forward Requests

  Sources   Download

MIT

The Requires

 

by DAOUDI Soufian