PHPackages                             udayshi/php-alexa - 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. [Templating &amp; Views](/categories/templating)
4. /
5. udayshi/php-alexa

ActiveLibrary[Templating &amp; Views](/categories/templating)

udayshi/php-alexa
=================

This is PHP Helper library for Alexa and Echo Show to generate response with few lines of code.

v1.0(6y ago)23.4kMITPHPPHP &gt;=7.0

Since Jul 30Pushed 6y ago2 watchersCompare

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

READMEChangelogDependenciesVersions (11)Used By (0)

US Alexa
========

[](#us-alexa)

This is PHP Helper library for Alexa and Echo Show to generate response with few lines of code..

Install via composer
--------------------

[](#install-via-composer)

Require the package with composer:

```
composer require udayshi/usalexa

```

Usage
-----

[](#usage)

#### Quick Implement

[](#quick-implement)

Just to send PlainText Quick response you can create function with any name and pass \\USAlexa\\Alexa $obj as parameter on created function.

Once you create the function you have to map and register the method.

Finally you can run it.

```
    require('./vendor/autoload.php');
    $obj=new \USAlexa\Alexa();
    #Define function to handle request
    function launchIntentHandlerPhp(\USAlexa\Alexa $obj){

        $obj->response->setResponse('Hello From PHP USAlexa.');
    }

    #Register intent and run
    $obj->registerIntentHandler('LaunchRequest','launchIntentHandlerPhp')
        ->run();

```

[more...](https://github.com/udayshi/php-alexa/blob/master/Docs/quick.md)

#### Adding Effects

[](#adding-effects)

You can add the following effects:

- Whisper
- Break
- Emphasis
    - Strong
    - Moderate
    - Reduced
- SayAs

```
    require('./vendor/autoload.php');
    $obj=new \USAlexa\Alexa();
    #Define function to handle request
    function launchIntentHandlerPhp(\USAlexa\Alexa $obj){

        $obj->response->setResponse('Hello From PHP USAlexa.')
        #Auto detect and send ssml
        $obj->response->setWhisper('Hello')
                               ->setBreak(2)
                               ->setEmphasisStrong('Strong')
                               ->setEmphasisModerate('Moderate')
                               ->setEmphasisReduced('Reduced')
                               ->setSayAs('TEST');
                       ;
    }

    #Register intent and run
    $obj->registerIntentHandler('LaunchRequest','launchIntentHandlerPhp')
        ->run();

```

#### Echo Show Response

[](#echo-show-response)

As long as you have minimum parameter for the echo show it will send proper response to the targeted devices.

```
    require('./vendor/autoload.php');
    $obj=new \USAlexa\Alexa();
    #Define function to handle request
    function launchIntentHandlerPhp(\USAlexa\Alexa $obj){

        $obj->response->setResponse('Hello From PHP USAlexa for echo show.')
        #Autodetect
        $img=$obj->getImageObject('[[IMG_URL]]');
        $obj->template->setBackgroundImage($img);
        $img=$obj->getImageObject('[[IMG_URL]]');
        $obj->template->setImage($img);

                       ;
    }

    #Register intent and run
    $obj->registerIntentHandler('LaunchRequest','launchIntentHandlerPhp')
        ->run();

```

[more...](https://github.com/udayshi/php-alexa/blob/master/Docs/echo-show.md)

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity60

Established project with proven stability

 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 ~5 days

Recently: every ~12 days

Total

10

Last Release

2432d ago

Major Versions

v0.9 → v1.02019-09-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/5245374e534e66336b1fcc03c7cad8b70b46535db5c55cd4d5c3c4d2226a4044?d=identicon)[udayshi](/maintainers/udayshi)

---

Top Contributors

[![udayshi-mlg](https://avatars.githubusercontent.com/u/94170013?v=4)](https://github.com/udayshi-mlg "udayshi-mlg (28 commits)")

---

Tags

phptemplateechoPHP7Alexashowalexa-skillalexa-skill-phpalexa-sdkssmlalexa-phpecho-phpecho-showecho-show-phpalexa-ssmlalexa-templatealexa-libraryalexa-without-lamdaus-alexaphp-alexa

### Embed Badge

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

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

###  Alternatives

[maxbeckers/amazon-alexa-php

Php library for amazon echo (alexa) skill development.

11554.0k2](/packages/maxbeckers-amazon-alexa-php)[alhimik1986/php-excel-templator

PHP Spreadsheet extension for generating excel files from template

350336.7k1](/packages/alhimik1986-php-excel-templator)[maxbeckers/amazon-alexa-bundle

Symfony Bundle for amazon alexa skills.

132.1k](/packages/maxbeckers-amazon-alexa-bundle)

PHPackages © 2026

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