Download the PHP package phoice/phlexa-expressive-skeleton without Composer

On this page you can find all versions of the php package phoice/phlexa-expressive-skeleton. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package phlexa-expressive-skeleton

phlexa-mezzio-skeleton

Skeleton application to build voice applications for Amazon Alexa with phlexa, PHP and Mezzio.

Dependencies

This skeleton application is built with Mezzio. For further details about the Mezzio micro-framework please refer to the official docs.

Installation

Create a new project based on the skeleton application simply with Composer:

What you get

Little tutorial

  1. Create an account at the Amazon Developer Portal: https://developer.amazon.com/de/
  2. Switch to the Alexa section and choose the Alexa Skills Kit. https://developer.amazon.com/edw/home.html#/skills
  3. Add a new skill.
  4. In the Skill information:
    • Choose the "Custom Interaction Model" and a Language
    • Enter a name for your skill "Hello World" and an invocation name "hello world"
    • Save
  5. On the Interaction model:
    • Launch the Skill Builder
    • Add an Intent with the Name "HelloIntent"
    • Add "hello world" as a sample utterance and press enter
    • Save the model
    • Build the model
  6. Proceed to the configuration:
    • Select the HTTPS endpoint and pick a geographical region
    • Now copy the URL of your server (see below) as the endpoint URL.
    • Save
  7. Proceed to the SSL Certificate:
    • Choose the appropriate option.
    • Save
  8. Proceed to the Test:
    • Now you can test your new skill.
  9. Fill in the Publishing Information and Privacy & Compliance section when you finished developing and testing the skill.

For further details please refer to the docs.

Setup your server

To get your skill running with PHP you need to setup your server which supports PHP 7. Install the application and setup a SSL Certificate. For further details please refer to the docs.

If you have setup your server you can test the Hello example skill with the following URL: https://your.server.com/hello/

Just sent a POST request (for example with Postman) with these headers:

To simulate the launch of the skill use this body:

And to test the HelloIntent use this body:

Configuration

Have a closer look at these configuration files for activating the signature validation and the request logging feature.

Develop on Docker

There is a docker file wish you can use for your local development. Your local code will also mount into the docker contaner. To access the server type into the browser "http:://localhost"

Hint: There also a maria db server included in this docker files. You can find the user and the password in file "./mariadb/Dockerfile" The maria db is not necessary to run the skeleton app. If you don't want to create the maria db modify the dockerfile.


All versions of phlexa-expressive-skeleton with dependencies

PHP Build Version
Package Version
Requires php Version ^7.1
ext-json Version *
phoice/phlexa Version ^3.0.0
phoice/phlexa-mezzio Version ^3.0.0
roave/security-advisories Version dev-master
laminas/laminas-component-installer Version ^2.1.1
laminas/laminas-config-aggregator Version ^1.0
laminas/laminas-diactoros Version ^1.7.1
mezzio/mezzio Version ^3.0.1
mezzio/mezzio-helpers Version ^5.0
mezzio/mezzio-laminasrouter Version ^3.0
mezzio/mezzio-laminasviewrenderer Version ^2.0
laminas/laminas-servicemanager Version ^3.3
laminas/laminas-dependency-plugin Version ^1.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package phoice/phlexa-expressive-skeleton contains the following files

Loading the files please wait ....