1. Go to this page and download the library: Download fei/notification-package 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/ */
fei / notification-package example snippets
use ObjectivePHP\Application\AbstractApplication;
use Fei\Service\Notification\Package\NotificationPackage;
class Application extends AbstractApplication
{
public function init()
{
// Define some application steps
$this->addSteps('bootstrap', 'init', 'auth', 'route', 'rendering');
// Initializations...
// Plugging the Notification Package in the bootstrap step
$this->getStep('bootstrap')
->plug(NotificationPackage::class);
// Another initializations...
}
}
use Fei\Service\Notification\Package\Config\NotificationParam;
use Fei\ApiClient\Transport\BasicTransport;
return [
(new NotificationParam())
->setBaseUrl('http://notification.dev')
->setTransport(new BasicTransport())
];
// Plugging the Notification Package in the bootstrap step
$this->getStep('bootstrap')
->plug(new NotificationPackage('my_service'));
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.