From 304a4de920916720f57da89e061aa9ccbc004000 Mon Sep 17 00:00:00 2001 From: Marcelo Gornstein Date: Sun, 3 Jan 2016 18:24:11 -0300 Subject: [PATCH] updating examples --- README.md | 8 ++++++++ doc/examples/mock/MyPAGIApplication.php | 18 ++++++++++++++++++ doc/examples/mock/mocktest.php | 8 ++++++++ doc/examples/node/run.php | 11 ++++++++++- doc/examples/node/test_example.php | 11 +++++++++++ doc/examples/nodecontroller/run.php | 12 ++++++++++++ doc/examples/quickstart/run.sh | 2 +- 7 files changed, 68 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b77337a..455d73c 100644 --- a/README.md +++ b/README.md @@ -31,6 +31,14 @@ composer.json: } ``` +# Using it + +First, make sure you include the [autoloader shipped with composer](https://getcomposer.org/doc/01-basic-usage.md#autoloading): + +```php +require __DIR__ . '/vendor/autoload.php'; +``` + # Quickstart You can start by *docs/examples/quickstart* for a very basic example. You'll need something like this in your dialplan: diff --git a/doc/examples/mock/MyPAGIApplication.php b/doc/examples/mock/MyPAGIApplication.php index 48af46e..a264808 100644 --- a/doc/examples/mock/MyPAGIApplication.php +++ b/doc/examples/mock/MyPAGIApplication.php @@ -1,4 +1,22 @@ 'request.php', 'channel' => 'SIP/blah-00803890', diff --git a/doc/examples/mock/mocktest.php b/doc/examples/mock/mocktest.php index c8b97e8..923b650 100644 --- a/doc/examples/mock/mocktest.php +++ b/doc/examples/mock/mocktest.php @@ -1,4 +1,12 @@ 'request.php', 'channel' => 'SIP/blah-00803890', diff --git a/doc/examples/node/run.php b/doc/examples/node/run.php index 55d020a..dbdf4fe 100755 --- a/doc/examples/node/run.php +++ b/doc/examples/node/run.php @@ -1,8 +1,17 @@ #!/usr/bin/env php