botjaeger / nexmo-bundle
Integrates nexmo-php in symfony 3 & 4
Installs: 1 974
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
- nexmo/client: ^2.0
- symfony/config: ^3.4|^4.0
- symfony/dependency-injection: ^3.4|^4.0
- symfony/http-kernel: ^3.4|^4.0
- symfony/yaml: ^3.4|^4.0
Requires (Dev)
- symfony/browser-kit: ^4.3
- symfony/css-selector: ^4.3
- symfony/framework-bundle: ^3.4|^4.1
- symfony/phpunit-bridge: ^5.1
This package is auto-updated.
Last update: 2021-01-04 09:48:26 UTC
README
Symfony integration of the nexmo/nexmo-php client
Getting Started
Installing
Just require the bundle with composer
composer require botjaeger/nexmo-bundle
Then add the following line to your app/AppKernel.php
public function registerBundles()
{
return [
...,
new Botjaeger\NexmoBundle\BotjaegerNexmoBundle(),
];
}
Configuration
Add the following lines to your config.yml
botjaeger_nexmo:
api_key: 'nexmo_api_key'
api_secret: 'nexmo_api_secret'
Usage
Then call 'botjaeger_nexmo.nexmo_client.client' in the container (some simplified methods)
$api = $this->get('botjaeger_nexmo.nexmo_client.client');
...
Or use the default nexmo client
$api = $this->get('default_nexmo.client');
...
Test
Must have docker installed in your system
./test