2017 © Pedro Peláez
 

symfony-bundle amazon-alexa-bundle

Symfony Bundle for amazon alexa skills.

image

maxbeckers/amazon-alexa-bundle

Symfony Bundle for amazon alexa skills.

  • Tuesday, January 9, 2018
  • by maxbeckers
  • Repository
  • 1 Watchers
  • 2 Stars
  • 105 Installations
  • PHP
  • 1 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 7 Versions
  • 78 % Grown

The README.md

Amazon alexa symfony bundle

This bundle is a simlpe helper to create an Amazon Echo (Alexa) endpoint to your symfony project. You only need to add the Bundle to your project and create some handlers for the alexa requests, configured in amazon alexa backend., (*1)

Install via composer

Require the bundle via composer:, (*2)

composer require maxbeckers/amazon-alexa-bundle

Enable Routing

Then add the Bundle endpoint for alexa to config/routes.yaml., (*3)

# config/routes.yaml
maxbeckers_amazon_alexa:
    path:     /alexa/ # the url, the alexa endpoint should be available 
    defaults: { _controller: MaxBeckers\AmazonAlexaBundle\Controller\AmazonAlexa::amazonRequest }

Create handlers

To add Handlers for alexa, create them as a service and tag them with maxbeckers_amazon_alexa.request_handler. How to create a handler see maxbeckers/amazon-alexa-php., (*4)

services:
    example.my_handler:
        class: Example\MyIntentHandler
        arguments:
            - '@maxbeckers_amazon_alexa.response_helper' # ResponseHelper
        tags:
            - 'maxbeckers_amazon_alexa.request_handler'

Generate ssml

For ssml use the maxbeckers_amazon_alexa.ssml_generator service to create valid ssml., (*5)

$ssmlGenerator = $this->get('maxbeckers_amazon_alexa.ssml_generator');

// add a message
$ssmlGenerator->say('Hallo World');
$ssml = $ssmlGenerator->getSsml();
// $ssml === '<speak>Hallo World</speak>'

The Versions

09/01 2018

dev-master

9999999-dev

Symfony Bundle for amazon alexa skills.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maximilian Beckers

php bundle symfony alexa skill amazon-alexa amazon-echo alexa-skill ssml

09/01 2018

0.0.6

0.0.6.0

Symfony Bundle for amazon alexa skills.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maximilian Beckers

php bundle symfony alexa skill amazon-alexa amazon-echo alexa-skill ssml

29/09 2017

0.0.5

0.0.5.0

Symfony Bundle for amazon alexa skills.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maximilian Beckers

php bundle symfony alexa skill amazon-alexa amazon-echo alexa-skill

29/09 2017

0.0.4

0.0.4.0

Symfony Bundle for amazon alexa skills.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maximilian Beckers

php bundle symfony alexa skill amazon-alexa amazon-echo alexa-skill

29/09 2017

0.0.3

0.0.3.0

Symfony Bundle for amazon alexa skills.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maximilian Beckers

php bundle symfony alexa skill amazon-alexa amazon-echo alexa-skill

28/09 2017

0.0.2

0.0.2.0

Symfony Bundle for amazon alexa skills.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maximilian Beckers

php bundle symfony alexa skill amazon-alexa amazon-echo alexa-skill

28/09 2017

0.0.1

0.0.1.0

Symfony Bundle for amazon alexa skills.

  Sources   Download

MIT

The Requires

 

The Development Requires

by Maximilian Beckers

php bundle symfony alexa skill amazon-alexa amazon-echo alexa-skill