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