Download the PHP package d4rkstar/pagi without Composer

On this page you can find all versions of the php package d4rkstar/pagi. 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 pagi

Introduction

This framework is intended to simply making ivr applications using Asterisk's AGI, providing a nice level of abstraction over what an IVR should look like from a developers' perspective.

Resources:

Contact me

If you have any questions, issues, feature requests, or just want to report your "success story", or maybe even say hi, please send an email to [email protected]

Included Example

Please see docs/examples for all the included examples.

You can start by docs/examples/quickstart for a very basic example. You'll need something like this in your dialplan:

[default]
exten => 1,1,AGI(/path/to/PAGI/docs/examples/quickstart/run.sh,a,b,c,d)
exten => 1,n,Hangup

Available via Composer

Just add the package "marcelog/pagi":

{
    "require": {
        "marcelog/pagi": "dev-master"
    },
    "repositories": [
    {
      "type": "pear",
      "url": "http://pear.apache.org/log4php/"
    }]
}

Packagist URL: (http://packagist.org/packages/marcelog/pagi)

Available via PEAR

You can now easily install PAGI by issuing:

pear channel-discover pear.marcelog.name
pear install marcelog/PAGI

or

pear install marcelog/PAGI-X.Y.Z

just replace X.Y.Z by the release version you'd like to install :)

See the pear channel

Available as PHAR

Just go to the Jenkins server and grab the latest phar distribution from the PAGI job.

Testing IVR applications

A mocked pagi client is included to easily test your ivr applications. See docs/examples/mock to see an example of how to use it.

Nodes

For a tutorial about nodes, see this article

Simple Call Flow Nodes are available (see docs/examples/node/example.php). Using nodes will let you simplify how you build and test your ivr applications. Nodes are an abstraction layer above the pagi client, and support:

The NodeController will let you control the call flow of your application, by registering nodes and actions based on node results. Thus, you can jump from one node to the other on cancel or complete inputs, hangup the call, execute a callback, etc. For an example, see docs/examples/nodecontroller/example.php

An article about the node controller is available here

AutoDial

CallFiles are supported. You can also schedule a call in the future.

Fax

Sending and receiving faxes is supported using spandsp (applications SendFax and ReceiveFax).

Available Facades

Results

For every operation, a Result is provided. Some operations decorate this Result to add functionality, like PlayResult, ReadResult, etc. For example, a stream file will return a PlayResult, which decorates a ReadResult which in turn, decorated a Result.

Debugging, logging

You need log4php. Just make sure you copy it to the include_path and PAGI will pick it up from there (the directory src/main/php is the one that needs to be in the include_path).

Developers

LICENSE

Copyright 2011 Marcelo Gornstein [email protected]

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.


All versions of pagi with dependencies

PHP Build Version
Package Version
Requires php Version >=5.3.3
pear-log4php/apache_log4php Version >=2.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 d4rkstar/pagi contains the following files

Loading the files please wait ....