A PHP 5.3 library for interacting with mod_event_socket on FreeSWITCH.

1.0.1 2013-12-12 22:18 UTC


A PHP 5.3 module to interact with mod_event_socket on FreeSWITCH. This is a work in progress, with the event handling not fully implemented. API calls will return their raw response however. Until event handling is implemented, extend FreeSwitchEventListener and override the SendFreeSwitchEvent method.


Install the module using Composer. Inside of the composer.json file, add the following:

  "require": {
    "easylo/freeswitcheventsocketlistener": "dev-master"

Then run the following command:

php composer.phar require easylo/freeswitcheventsocketlistener 


php composer.phar install

Example Usage

require_once 'vendor/autoload.php';

use FreeSwitch\FreeSwitchEventListener;

// The command to send to FreeSWITCH
$cmd = "event json ALL";

$myFSEventListener = new FreeSwitchEventListener() ;
$myFSEventListener->setHost("") ;