@@ -82,6 +82,10 @@ Once [installed](#install), you can use the following code to access your local
82
82
Asterisk instance and issue some simple commands via AMI:
83
83
84
84
``` php
85
+ <?php
86
+
87
+ require __DIR__ . '/vendor/autoload.php';
88
+
85
89
$factory = new Clue\React\Ami\Factory();
86
90
87
91
$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
118
122
[ ` ConnectorInterface ` ] ( https://github.com/reactphp/socket#connectorinterface ) :
119
123
120
124
``` php
121
- $connector = new React\Socket\Connector(null, array(
125
+ $connector = new React\Socket\Connector(array(
122
126
'dns' => '127.0.0.1',
123
127
'tcp' => array(
124
128
'bindto' => '192.168.10.1:0'
@@ -546,7 +550,7 @@ This is a shortcut to get the value of the "Event" field.
546
550
547
551
## Install
548
552
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/ ) .
550
554
[ New to Composer?] ( https://getcomposer.org/doc/00-intro.md )
551
555
552
556
This project follows [ SemVer] ( https://semver.org/ ) .
@@ -560,12 +564,12 @@ See also the [CHANGELOG](CHANGELOG.md) for details about version upgrades.
560
564
561
565
This project aims to run on any platform and thus does not require any PHP
562
566
extensions 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.
564
568
565
569
## Tests
566
570
567
571
To 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/ ) :
569
573
570
574
``` bash
571
575
$ composer install
@@ -574,7 +578,7 @@ $ composer install
574
578
To run the test suite, go to the project root and run:
575
579
576
580
``` bash
577
- $ php vendor/bin/phpunit
581
+ $ vendor/bin/phpunit
578
582
```
579
583
580
584
The test suite contains both unit tests and functional integration tests.
0 commit comments