PHPackages                             elchief84/alexa-php-sdk - 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. elchief84/alexa-php-sdk

ActiveLibrary[API Development](/categories/api)

elchief84/alexa-php-sdk
=======================

Amazon Echo (Alexa) PHP SDK

018PHP

Since Jul 16Pushed 7y ago1 watchersCompare

[ Source](https://github.com/elchief84/alexa-sdk)[ Packagist](https://packagist.org/packages/elchief84/alexa-php-sdk)[ RSS](/packages/elchief84-alexa-php-sdk/feed)WikiDiscussions master Synced 4d ago

READMEChangelogDependenciesVersions (1)Used By (0)

Alexa PHP SDK
=============

[](#alexa-php-sdk)

[![Build Status](https://camo.githubusercontent.com/247cb61cf12da0f94ddfed17f0cd5e08988daaee440ca1d4f06f359540120e19/68747470733a2f2f6170692e7472617669732d63692e6f72672f6177736d75672f616c6578612d73646b2e706e673f6272616e63683d6d6173746572)](https://travis-ci.org/awsmug/alexa-sdk)[![Code Climate](https://camo.githubusercontent.com/f9207b864baa40caed1595e8028e75a1c511ba5bed33ba0c28dd32c82d2a85d6/68747470733a2f2f636f6465636c696d6174652e636f6d2f6769746875622f6177736d75672f616c6578612d73646b2f6261646765732f6770612e737667)](https://codeclimate.com/github/awsmug/alexa-sdk)

This is a free PHP software development kit for Amazon Echo.

Using the SDK
-------------

[](#using-the-sdk)

To use the SDK, just include the *alexa-sdk.php* file to your Alexa project and add extend the Skill class with your own Skill.

Composer
--------

[](#composer)

Add the Alexa PHP SDK by using composer. Just add a *composer.json* to your project with the following content.

```
{
  "require": {
    "awsmug/alexa-php-sdk": "dev-master"
  }
}
```

After adding the *composer.json*, use *composer install* to install all packages. To use the SDK in your PHP Code, just include the SDK like this:

```
require_once dirname( __FILE__ ) . '/vendor/awsmug/alexa-php-sdk/src/alexa-sdk.php';
```

A simple skill
--------------

[](#a-simple-skill)

This is the code for a very simple skill.

```
use Alexa\Skill_Template;
use Alexa\Exception;

class Simple_Skill extends Skill_Template {

	public function intent_request() {
		/**
		 * Put in your answer stuff here!
		 */
		$this->output()->response()->output_speech()->set_text( 'You started the skill!' );
		$this->output()->response()->end_session();
	}
}

$simple_skill = new Simple_Skill( 'YOUR-SKILL-ID' );

try{
	$simple_skill->run();
} catch( Exception $exception) {
	$simple_skill->log( $exception->getMessage() );
	echo $exception->getMessage();
}
```

Using Autocomplete
------------------

[](#using-autocomplete)

The SDK is programmed for autocompleting functions. If you use an IDE like *PHP Storm*, the functions will autocomplete by itself and you can discover the functions by the autocomplete functionality of the IDE.

###  Health Score

20

—

LowBetter than 14% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 93.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.

### Community

Maintainers

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

---

Top Contributors

[![mahype](https://avatars.githubusercontent.com/u/663697?v=4)](https://github.com/mahype "mahype (129 commits)")[![elchief84](https://avatars.githubusercontent.com/u/1158543?v=4)](https://github.com/elchief84 "elchief84 (9 commits)")

### Embed Badge

![Health badge](/badges/elchief84-alexa-php-sdk/health.svg)

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

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

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

A PHP wrapper for Twilio's API

1.6k92.9M272](/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)
