Download the PHP package swp/bridge-bundle without Composer
On this page you can find all versions of the php package swp/bridge-bundle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download swp/bridge-bundle
More information about swp/bridge-bundle
Files in swp/bridge-bundle
Package bridge-bundle
Short Description Bundle which acts as a bridge between the Superdesk Web publisher and the Superdesk Content API.
License AGPL-3.0
Informations about the package bridge-bundle
Superdesk Bridge bundle
This bundle is a bridge between the Superdesk Content API and the Superdesk Publisher.
Installation
- Download SWPBridgeBundle
- Enable the bundle and its dependencies
- Import SWPUpdaterBundle routing file
- Configure the SWPBridgeBundle
Step 1: Install SWPBridgeBundle with Composer
Run the following composer require command:
Step 2: Enable the bundle and its dependencies
Enable the bundle in AppKernel.php
.
Step 3: Import SWPBridgeBundle routing file
You have to import SWPBridgeBundle routing file. You can use YAML or XML format.
YAML:
Step 4: Configure the SWPBridgeBundle
Add the following parameters to your config.yml
file.
This is a minimum requirement to get started, see the section Everything about configuration for more details.
Everything about configuration
Configuration reference
Adding custom http client options:
SWPBridgeBundle uses Guzzle to fetch data from the external server. You can add
custom Guzzle options / headers for your http client by simply adding an array
of options as a parameter in your configuration.
The example below shows how to add custom curl options.
For more details see Guzzle documentation.
At this stage, the bundle is ready to be used by your application.
Development Configuration
The above example is specific for the Guzzle client and allows you to do custom hostname resolving, practical when using docker in your devevelopment environment. Just add to your hosts file and change the value localhost to the ip address of you publicapi docker container.
All versions of bridge-bundle with dependencies
guzzlehttp/guzzle Version ^6.0
superdesk/contentapi-sdk-php Version dev-master
swp/storage-bundle Version ^2.0
swp/bridge Version ^2.0
symfony/monolog-bundle Version ^3.3
symfony/monolog-bridge Version ^4.2
symfony/translation Version ^4.2
symfony/framework-bundle Version ^4.2
symfony/validator Version ^4.2