This library has in-built support to easily configure the webhook notifications of Aftership.
To configure the Webhook Route, open the published configuration file and setup the following configurations.
'web_hook' => array(
'enabled' => true, //Set this to true to enable Web hook Route
'route_url' => '/wehbooks/aftership', //Setup the Route Url that has been configured on Aftership Control Panel
'listener' => array(
'type' => 'event', //Can be "event" or "queue"
'handler' => '', //Handler to be called when the Webhook notification is received
'queue_name' => '', //Used only if the type == "queue"
'queue_connection' => '' //To be used if a connection based queue needs to be used