@@ -82,6 +82,10 @@ Once [installed](#install), you can use the following code to access your local
8282Asterisk instance and issue some simple commands via AMI:
8383
8484``` php
85+ <?php
86+
87+ require __DIR__ . '/vendor/autoload.php';
88+
8589$factory = new Clue\React\Ami\Factory();
8690
8791$factory->createClient('user:secret@localhost')->then(function (Clue\React\Ami\Client $client) {
@@ -118,7 +122,7 @@ proxy servers etc.), you can explicitly pass a custom instance of the
118122[ ` ConnectorInterface ` ] ( https://github.com/reactphp/socket#connectorinterface ) :
119123
120124``` php
121- $connector = new React\Socket\Connector(null, array(
125+ $connector = new React\Socket\Connector(array(
122126 'dns' => '127.0.0.1',
123127 'tcp' => array(
124128 'bindto' => '192.168.10.1:0'
@@ -546,7 +550,7 @@ This is a shortcut to get the value of the "Event" field.
546550
547551## Install
548552
549- The recommended way to install this library is [ through Composer] ( https://getcomposer.org ) .
553+ The recommended way to install this library is [ through Composer] ( https://getcomposer.org/ ) .
550554[ New to Composer?] ( https://getcomposer.org/doc/00-intro.md )
551555
552556This project follows [ SemVer] ( https://semver.org/ ) .
@@ -560,12 +564,12 @@ See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
560564
561565This project aims to run on any platform and thus does not require any PHP
562566extensions and supports running on legacy PHP 5.3 through current PHP 8+.
563- It's * highly recommended to use PHP 7+ * for this project.
567+ It's * highly recommended to use the latest supported PHP version * for this project.
564568
565569## Tests
566570
567571To run the test suite, you first need to clone this repo and then install all
568- dependencies [ through Composer] ( https://getcomposer.org ) :
572+ dependencies [ through Composer] ( https://getcomposer.org/ ) :
569573
570574``` bash
571575$ composer install
@@ -574,7 +578,7 @@ $ composer install
574578To run the test suite, go to the project root and run:
575579
576580``` bash
577- $ php vendor/bin/phpunit
581+ $ vendor/bin/phpunit
578582```
579583
580584The test suite contains both unit tests and functional integration tests.
0 commit comments