PHPackages                             codecommerce/alexaapi - 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. [API Development](/categories/api)
4. /
5. codecommerce/alexaapi

ActiveLibrary[API Development](/categories/api)

codecommerce/alexaapi
=====================

Amazon Alexa Library

1.0.5(7y ago)033PHPCI failing

Since Nov 9Pushed 6y ago1 watchersCompare

[ Source](https://github.com/CodeCommerce/VoiceApi)[ Packagist](https://packagist.org/packages/codecommerce/alexaapi)[ Docs](https://www.codecommerce.de)[ RSS](/packages/codecommerce-alexaapi/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependencies (5)Versions (8)Used By (0)

Installation
============

[](#installation)

```
composer require codecommerce/alexaapi

```

Creating directories and config files
-------------------------------------

[](#creating-directories-and-config-files)

### Mac OS

[](#mac-os)

```
mkdir -p Alexa/Config && cp vendor/codecommerce/alexaapi/Config/* Alexa/Config && mkdir Alexa/Intents

```

### Windows

[](#windows)

```
mkdir Alexa
cd Alexa
mkdir Config
mkdir Intents
xcopy ../vendor/codecommerce/alexaapi/Config ./Config /e /i /h

```

Projekt composer.json
---------------------

[](#projekt-composerjson)

Erstelle eine composer.json in deinem Projektordner. Fordere via require die AlexaApi an. Schreibe deinen Namespace in in autoload -&gt; psr-4

```
{
    "require": {
        "codecommerce/alexaapi": "^1.0"
    },
    "autoload": {
        "psr-4": {
            "AlexaSpielwiese\\Alexa\\": "./Alexa"
        }
    }
}

```

Erster Intent
-------------

[](#erster-intent)

Erstelle eine Klasse und gebe den Namespace (siehe Projekt composer.json) an. Implementire das Interface 'IntentsInterface'. Übernehme die Methoden die das Interface vorraussetzt. Du kanns im Konstruktor die Variablen $sytem und $request auf eine Klassenvariable legen und somit überall verwenden.

```
