PHPackages                             gruessung/amazon-alexa-php - 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. gruessung/amazon-alexa-php

ActiveLibrary[API Development](/categories/api)

gruessung/amazon-alexa-php
==========================

Amazon Alexa interface for PHP

0.1.5(10y ago)115MITPHPPHP &gt;=5.4.0

Since Aug 26Pushed 8y ago1 watchersCompare

[ Source](https://github.com/gruessung/amazon-alexa-php)[ Packagist](https://packagist.org/packages/gruessung/amazon-alexa-php)[ RSS](/packages/gruessung-amazon-alexa-php/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (1)Versions (9)Used By (0)

Amazon Alexa PHP Library
========================

[](#amazon-alexa-php-library)

Changes (reasons for fork)
--------------------------

[](#changes-reasons-for-fork)

- verifiying timestamp automatically
- change timestamp verification to current certification guidelines

This library provides provides a convient interface for developing Amazon Alexa Skills for your PHP app.

Usage
-----

[](#usage)

Install via composer: `composer require gruessung/amazon-alexa-php`.

### Requests

[](#requests)

When Amazon Alexa triggers your skill, a HTTP request will be sent to the URL you specified for your app.

You can parse the `JSON` body of the request like so:

```
$jsonDataAsArray = $request->json()->all(); // This is how you would retrieve this with Laravel
$alexaRequest = \Alexa\Request\Request::fromData($jsonDataAsArray);
```

You can determine the type of the request with `instanceof`, e.g.:

```
if ($alexaRequest instanceof IntentRequest) {
	// Handle intent here
}
```

### Response

[](#response)

You can build an Alexa response with the `Response` class. You can optionally set a card or a reprompt too.

Here's a few examples.

```
$response = new \Alexa\Response\Response;
$response->respond('Cooool. I\'ll lower the temperature a bit for you!')
	->withCard('Temperature decreased by 2 degrees');
```

```
$response = new \Alexa\Response\Response;
$response->respond('What is your favorite color?')
	->reprompt('Please tell me your favorite color');
```

To output the response, simply use the `->render()` function, e.g. in Laravel you would create the response like so:

```
return response()->json($response->render());
```

In vanilla PHP:

```
header('Content-Type: application/json');
echo json_encode($response->render());
exit;
```

TODO
----

[](#todo)

- Verify request timestamp integrity automatically

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity7

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 61.5% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~13 days

Total

8

Last Release

3815d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/a53826e55453e2376b3613d8ff3627554f8753f54ce1dee8acdae6f7b9323228?d=identicon)[gruessung](/maintainers/gruessung)

---

Top Contributors

[![MiniCodeMonkey](https://avatars.githubusercontent.com/u/220535?v=4)](https://github.com/MiniCodeMonkey "MiniCodeMonkey (8 commits)")[![gruessung](https://avatars.githubusercontent.com/u/433331?v=4)](https://github.com/gruessung "gruessung (5 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/gruessung-amazon-alexa-php/health.svg)

```
[![Health](https://phpackages.com/badges/gruessung-amazon-alexa-php/health.svg)](https://phpackages.com/packages/gruessung-amazon-alexa-php)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M479](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M271](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
