Download the PHP package rtckit/react-esl without Composer
On this page you can find all versions of the php package rtckit/react-esl. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download rtckit/react-esl
More information about rtckit/react-esl
Files in rtckit/react-esl
Package react-esl
Short Description Asynchronous FreeSWITCH Event Socket Layer (ESL) Library
License MIT
Homepage https://github.com/rtckit/reactphp-esl
Informations about the package react-esl
Asynchronous Event Socket Layer library for PHP
Quickstart
FreeSWITCH's Event Socket Layer is a TCP control interface enabling the development of complex dynamic dialplans/workflows. You can learn more about its inbound mode as well as its outbound mode on the FreeSWITCH website.
This library builds on top of ReactPHP and RTCKit\ESL and provides classes for four ESL elements: InboundClient and OutboundServer as well as InboundServer and OutboundClient. The former pair is more common and interfaces with FreeSWITCH for building RTC applications. The latter pair can be used to impersonate FreeSWITCH, for example in test suites, implementing message relays, security research etc. The directional terms (inbound/outbound) are relative to FreeSWITCH.
Inbound Client Example
This usage mode refers to FreeSWITCH's inbound mode (usually listening on TCP 8021) and our application acts as the client. Typical interactions include issuing various requests and standing by for incoming events.
Outbound Server Example
In this mode, FreeSWITCH (acting as the client) connects to our application (usually listening on TCP 8084) when a dialplan invokes the socket
application.
Lastly, the provided examples are a good starting point.
Requirements
RTCKit\React\ESL is compatible with PHP 7.4+.
Installation
You can add the library as project dependency using Composer:
If you only need the library during development, for instance when used in your test suite, then you should add it as a development-only dependency:
Tests
To run the test suite, clone this repository and then install dependencies via Composer:
Then, go to the project root and run:
Static Analysis
In order to ensure high code quality, RTCKit\React\ESL uses PHPStan and Psalm:
License
MIT, see LICENSE file.
Acknowledgments
- FreeSWITCH, FreeSWITCH is a registered trademark of Anthony Minessale II
Contributing
Bug reports (and small patches) can be submitted via the issue tracker. Forking the repository and submitting a Pull Request is preferred for substantial patches.
All versions of react-esl with dependencies
evenement/evenement Version ^3.0
react/socket Version ^1.11
rtckit/esl Version ^0.8