PHPackages                             vasily-kartashov/alexa-skills-kit-model - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. vasily-kartashov/alexa-skills-kit-model

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

vasily-kartashov/alexa-skills-kit-model
=======================================

Alexa Skill Kit Model

1.24.0(6y ago)19Apache-2.0PHPPHP &gt;=7.0CI failing

Since Aug 28Pushed 5y ago1 watchersCompare

[ Source](https://github.com/vasily-kartashov/alexa-skills-kit-model)[ Packagist](https://packagist.org/packages/vasily-kartashov/alexa-skills-kit-model)[ RSS](/packages/vasily-kartashov-alexa-skills-kit-model/feed)WikiDiscussions master Synced yesterday

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

Alexa Skill Kit Model
=====================

[](#alexa-skill-kit-model)

[![Build Status](https://camo.githubusercontent.com/6eab463a7d03493dfebcdfaed81f541d7e83be9842859569a15c7a618d7a8a30/68747470733a2f2f7472617669732d63692e6f72672f766173696c792d6b6172746173686f762f616c6578612d736b696c6c732d6b69742d6d6f64656c2e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/vasily-kartashov/alexa-skills-kit-model)

This is a mapping between Alexa's request and response envelopes and PHP classes. There model library doesn't do any processing and is solely responsible for mapping only.

Reading request envelope
------------------------

[](#reading-request-envelope)

To read a json request execute

```
$data = json_decode($payload, true);
$envelope = RequestEnvelope::fromValue($data);
```

Writing response envelope
-------------------------

[](#writing-response-envelope)

To create a json response use respective builders

```
$speech = PlainTextOutputSpeech::ofText("Plain text string to speak");

$response = Response::builder()
    ->withOutputSpeech($speech)
    ->withShouldEndSession(true)
    ->build();

$envelope = ResponseEnvelope::builder()
    ->withVersion("string")
    ->withResponse($response)
    ->build();

$payload = json_encode($envelope);
```

Composer
--------

[](#composer)

Use `"vasily-kartashov/alexa-skills-kit-model"`

ToDo
----

[](#todo)

- Move to `hamlet-framework/alexa-skill-kit-model`
- Rebuild repository by retrospectively generating all previous versions as well
- Add doc parser  to copy paths
- Use DateTimeImmutable as much as possible

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity60

Established project with proven stability

 Bus Factor1

Top contributor holds 58.3% 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 ~151 days

Total

4

Last Release

2362d ago

Major Versions

0.0.1 → 1.12.02019-03-13

PHP version history (2 changes)0.0.1PHP &gt;=7.0

1.22.0PHP &gt;=7.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/478df3662ef0b1865cfab9227c7f4cd5b000a92363d066ebf4280db05f739d13?d=identicon)[vasily-kartashov](/maintainers/vasily-kartashov)

---

Top Contributors

[![huntervk](https://avatars.githubusercontent.com/u/138185050?v=4)](https://github.com/huntervk "huntervk (21 commits)")[![vasily-kartashov](https://avatars.githubusercontent.com/u/875698?v=4)](https://github.com/vasily-kartashov "vasily-kartashov (15 commits)")

---

Tags

libraryAlexa

###  Code Quality

TestsPHPUnit

Static AnalysisPsalm

Code StylePHP\_CodeSniffer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/vasily-kartashov-alexa-skills-kit-model/health.svg)

```
[![Health](https://phpackages.com/badges/vasily-kartashov-alexa-skills-kit-model/health.svg)](https://phpackages.com/packages/vasily-kartashov-alexa-skills-kit-model)
```

###  Alternatives

[league/iso3166

ISO 3166-1 PHP Library

69536.3M116](/packages/league-iso3166)[league/statsd

A simple library for working with StatsD in PHP.

3514.3M12](/packages/league-statsd)[payum/iso4217

ISO 4217 PHP Library

16312.1M5](/packages/payum-iso4217)[lambdish/phunctional

λ PHP functional library

3612.0M23](/packages/lambdish-phunctional)[dekor/php-array-table

PHP Library for printing associative arrays as text table (similar to mysql terminal console)

296.6M2](/packages/dekor-php-array-table)

PHPackages © 2026

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