PHPackages                             plotkabytes/vercom-api-symfony-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [HTTP &amp; Networking](/categories/http)
4. /
5. plotkabytes/vercom-api-symfony-bundle

Abandoned → [plotkabytes/redlink-api-symfony-bundle](/?search=plotkabytes%2Fredlink-api-symfony-bundle)Symfony-bundle[HTTP &amp; Networking](/categories/http)

plotkabytes/vercom-api-symfony-bundle
=====================================

Symfony Bundle to include the redlink api.

1.0.2(4y ago)15MITPHPPHP ^7.2||^8.0

Since Apr 28Pushed 3y ago1 watchersCompare

[ Source](https://github.com/plotkabytes/redlink-api-bundle)[ Packagist](https://packagist.org/packages/plotkabytes/vercom-api-symfony-bundle)[ RSS](/packages/plotkabytes-vercom-api-symfony-bundle/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (1)Dependencies (11)Versions (6)Used By (0)

Redlink API Symfony Bundle
==========================

[](#redlink-api-symfony-bundle)

[![Build and tests](https://github.com/plotkabytes/redlink-api-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/plotkabytes/redlink-api-bundle/actions/workflows/ci.yml/badge.svg)[![GitHub license](https://camo.githubusercontent.com/dcfd4525b3e95551691fd645e2123a32a45c957703d551bb36ed0aa0f2a116ed/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6c6963656e73652f4e61657265656e2f5374726170446f776e2e6a732e737667)](https://github.com/plotkabytes/redlink-api-php-client/blob/main/LICENSE)[![PRs Welcome](https://camo.githubusercontent.com/25b3e6d0d42c98de74a98cbb4d149a1c09020cf6d1361993b72d7d5b8ffed363/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f5052732d77656c636f6d652d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](http://makeapullrequest.com)

This repository contains simple symfony bundle for [redlink-api-php-client](https://github.com/plotkabytes/redlink-api-php-client).

Requirements
------------

[](#requirements)

This version supports [PHP](https://php.net) &gt;= 7.2 and [Symfony](https://symfony.com/) &gt;= 4.4.0.

Installation
------------

[](#installation)

Make sure Composer is installed globally, as explained in the [installation chapter](https://getcomposer.org/doc/00-intro.md)of the Composer documentation.

### Applications that use Symfony Flex

[](#applications-that-use-symfony-flex)

After getting composer you have to install PSR HTTP client implementation (if you dont have one already - for example [Guzzle](https://github.com/guzzle/guzzle) / [Buzz](https://github.com/kriswallsmith/Buzz)):

```
$ composer require guzzlehttp/guzzle
```

Next you should install this package with usage of composer:

```
$ composer require --no-scripts plotkabytes/redlink-api-php-client plotkabytes/redlink-api-symfony-bundle
```

### Applications that don't use Symfony Flex

[](#applications-that-dont-use-symfony-flex)

#### Step 1: Download the Bundle

[](#step-1-download-the-bundle)

Procedure is the same as in "Applications that use Symfony Flex" chapter.

### Step 2: Enable the Bundle

[](#step-2-enable-the-bundle)

Then, enable the bundle by adding it to the list of registered bundles in the `config/bundles.php` file of your project:

```
// config/bundles.php

return [
    // ...
    Plotkabytes\RedlinkApiBundle\PlotkabytesRedlinkApiBundle.php::class => ['all' => true],
];
```

### Step 3: Configure the Bundle

[](#step-3-configure-the-bundle)

Then, configure the bundle by adding following configuration to the `config/packages/plotkabytes_redlink_api.yaml` file:

```
# config/packages/plotkabytes_redlink_api.yaml
plotkabytes_redlink_api:
  clients:
    client_name:
      authorization_key: HERE_INSERT_AUTHORIZATION_KEY
      application_key: HERE_INSERT_APPLICATION_KEY
      alias: OPTIONAL_CLIENT_ALIAS
      default: false
```

### Step 4: Clear cache

[](#step-4-clear-cache)

After bundle configuration may be required to clear symfony cache.

```
$ bin/console cache:clear
```

### Step 5: Register service

[](#step-5-register-service)

Inside `config/services.yaml` add following:

```
# config/services.yaml
services:

    # ...
    # Other services
    # ...

    App\Controller\DefaultController:
        arguments: {$client: '@plotkabytes_redlink_api.client.default'}
```

### Step 6: Use bundle

[](#step-6-use-bundle)

```
