PHPackages                             newbury/alexa-framework - 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. [Framework](/categories/framework)
4. /
5. newbury/alexa-framework

ActiveLibrary[Framework](/categories/framework)

newbury/alexa-framework
=======================

Simple framework for creating Amazon Alex skills using PHP.

0.1.1(7y ago)1371MITPHP

Since Aug 12Pushed 7y ago1 watchersCompare

[ Source](https://github.com/cjnewbs/alexa-framework)[ Packagist](https://packagist.org/packages/newbury/alexa-framework)[ RSS](/packages/newbury-alexa-framework/feed)WikiDiscussions master Synced 3d ago

READMEChangelog (2)DependenciesVersions (3)Used By (1)

Alexa Skill Framework
=====================

[](#alexa-skill-framework)

**Version: 0.1.1**

I built this to make it simple to create Amazon Alexa skills using PHP. It handles the request verification, intent routing, provides some methods to get intent/slot information from the request and methods for building the response object to AVS.

### To install:

[](#to-install)

- You can either install just the framework by running `newbury/alexa-framework` or the
- Run `composer create-project newbury/alexa-app `,
- Copy the contents of the contents of the `/example` directory to the application root,
- Set the webserver document root to `/pub`,

### Usage:

[](#usage)

Replace `amzn1.ask.skill.xxxxx...` in `config/skills.php` with your alexa skill ID from the developer console. The config file can handle multiple skills by adding an additional array element for each skill. Under `routes` in the config file add an element under `routes` for each intent you have set in the Alexa developer console. For eample `'example' => \App\Example::class,` the class `\App\Example` will have requests for your `example` intent routed to it. Create a class for each intent which extends `\Newbury\AlexaFramework\Intent\BaseIntent`. The `execute()` method will be called when an intent is routed to it.

The `Request` and `Response` objects are made available to your intent classes via `$this->request` and `$this->response`.

Methods in `\Newbury\AlexaFramework\Http\Request` are used to get information about the request such as slot data.

Methods in `\Newbury\AlexaFramework\Http\Response` are used to build the response. Most of these methods can be chained together.

You can also call the static method `Newbury\AlexaFramework\Directive::sendDirective($this->request, 'Your message')` to send "directive" responses if you need some time to build the main response.

### Chagelog

[](#chagelog)

##### \[0.1.1\] - 2018-Apr-13

[](#011---2018-apr-13)

- Added adility to send "directive" responses,
- Added getters and setters for session attributes,
- Added usage documentation.

##### \[0.1.0\] - 2018-Apr-12

[](#010---2018-apr-12)

- Project start,
- Basic intent routing,
- Request getters &amp; response setters,
- Request verification.

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity9

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~0 days

Total

2

Last Release

2832d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1daa2660e9ee3b2eb042eddefa1c6274a4c5f20c6a1657a4751d9d8fd152c4ec?d=identicon)[cjnewbs](/maintainers/cjnewbs)

---

Top Contributors

[![cjnewbs](https://avatars.githubusercontent.com/u/1676494?v=4)](https://github.com/cjnewbs "cjnewbs (3 commits)")

### Embed Badge

![Health badge](/badges/newbury-alexa-framework/health.svg)

```
[![Health](https://phpackages.com/badges/newbury-alexa-framework/health.svg)](https://phpackages.com/packages/newbury-alexa-framework)
```

###  Alternatives

[laravel/telescope

An elegant debug assistant for the Laravel framework.

5.2k67.8M192](/packages/laravel-telescope)[spiral/roadrunner

RoadRunner: High-performance PHP application server and process manager written in Go and powered with plugins

8.4k12.2M84](/packages/spiral-roadrunner)[nolimits4web/swiper

Most modern mobile touch slider and framework with hardware accelerated transitions

41.8k177.2k1](/packages/nolimits4web-swiper)[laravel/dusk

Laravel Dusk provides simple end-to-end testing and browser automation.

1.9k36.7M259](/packages/laravel-dusk)[laravel/prompts

Add beautiful and user-friendly forms to your command-line applications.

708181.8M596](/packages/laravel-prompts)[cakephp/chronos

A simple API extension for DateTime.

1.4k47.7M121](/packages/cakephp-chronos)

PHPackages © 2026

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