botjaeger/nexmo-bundle
Integrates nexmo-php in symfony 3 & 4
Installs: 791
Dependents: 0
Suggesters: 0
Security: 0
Stars: 3
Watchers: 0
Forks: 0
Open Issues: 0
Type:symfony-bundle
Requires
- php: >=7.1
- nexmo/client: ^1.6
- symfony/config: ^3.4|^4.1
- symfony/dependency-injection: ^3.4|^4.1
- symfony/http-kernel: ^3.4|^4.1
- symfony/yaml: ^3.4|^4.1
Requires (Dev)
- phpunit/phpunit: ^7.4
- symfony/browser-kit: ^4.3
- symfony/css-selector: ^4.3
- symfony/phpunit-bridge: ^4.3
- symfony/framework-bundle: ^3.4|^4.1
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