2017 © Pedro Peláez
 

library laravel

Provides a laravel bridge for notifyme

image

notifymehq/laravel

Provides a laravel bridge for notifyme

  • Tuesday, June 7, 2016
  • by joecohens
  • Repository
  • 6 Watchers
  • 39 Stars
  • 1,912 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

NotifyMe Laravel

This is the Laravel 5 Bridge for NotifyMe., (*1)

Installation

Either PHP 5.5+ or HHVM 3.6+ are required., (*2)

To get the latest version of NotifyMe Laravel, simply require the project using Composer:, (*3)

$ composer require notifymehq/laravel

Instead, you may of course manually update your require block and run composer update if you so choose:, (*4)

{
    "require": {
        "notifymehq/laravel": "^1.0"
    }
}

Note that installing that package only pulls in the bare minimum and will not give you any adapters. You may require the adapters indiviually, or, require the whole deal (notifymehq/notifyme)., (*5)

Add the service provider to app.php, (*6)

'providers' => [
    // ...
    'NotifyMeHQ\Laravel\NotifyMeServiceProvider',
],

If you want to use the Facade, also add the alias:, (*7)

'aliases' => [
    // ...
    'NotifyMe'  => 'NotifyMeHQ\Laravel\Facades\NotifyMe',
],

Install the configuration file., (*8)

$ php artisan config:publish

Configure your connections., (*9)

return [
    'default' => 'slack',
    'connections' => [
        'slack' => [
            'driver' => 'slack',
            'from'   => 'notifyme',
            'token'  => 'your-token',
        ],
        'webhook' => [
            'driver' => 'webhook',
        ],
    ],
];

Usage

$response = NotifyMe::notify('#tests', 'This is working awesome!');

echo $response->isSent() ? 'Message sent' : 'Message going nowhere';
$response = NotifyMe::connection('slack')->notify('#tests', 'This is working awesome!');

echo $response->isSent() ? 'Message sent' : 'Message going nowhere';

For more information about the usage go to NotifyMe., (*10)

License

NotifyMe is licensed under The MIT License (MIT)., (*11)

The Versions

07/06 2016

dev-master

9999999-dev

Provides a laravel bridge for notifyme

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

laravel notifyme notifymehq

30/11 2015

dev-legacy

dev-legacy

A Laravel 5 bridge for notifyme

  Sources   Download

MIT

The Requires

 

The Development Requires

by Graham Campbell
by Joseph Cohen

laravel notifyme notifymehq