PHP code example of proglab / space-transport-bundle

1. Go to this page and download the library: Download proglab/space-transport-bundle library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

proglab / space-transport-bundle example snippets


return [
    // ...
    Proglab\SpaceClientBundle\SpaceClientBundle::class => ['all' => true],
];

use Proglab\SpaceClientBundle\SpaceTransport\SpaceNotification;


$notification = new SpaceNotification('Welcome Aboard', ['chat/space']);
$notification->setChannel('Xxx'); // you can override the default channel if necessary
$notifier->send($notification);