Skip to content

andgsk/server-notifications-laravel

 
 

Repository files navigation

Server Notifications & Alerts with Twilio and Laravel

Build Status

Use Twilio to create SMS alerts so that you never miss a critical issue.

Read the full tutorial here!

Running the application

Clone this repository and cd into the directory.

  1. Install the application's dependencies with Composer

    $ composer update
    
  2. Set the application's configuration variables. You can find your account's SID and authentication token in your Twilio account You'll need to set the TWILIO_AUTH_TOKEN, TWILIO_ACCOUNT_SID, and TWILIO_NUMBER environment variables. The easiest way to accomplish this is using the export command.

    $ export TWILIO_ACCOUNT_SID=your account sid
    $ export TWILIO_AUTH_TOKEN=your auth token
    $ export TWILIO_NUMBER=+16515559999

    For the TWILIO_NUMBER variable you'll need to provision a new number in the Manage Numbers page under your Twilio account. The phone number should be in E.164 format

  3. Run the application using Artisan.

    $ php artisan serve
  4. Customize config/administrators.json with your name and phone number.

  5. Finally visit the application's error route at http://localhost:8000/error. You'll soon get a message informing you of an error.

Dependencies

This application uses this Twilio helper library:

Run the tests

Run phpunit at the top level directory.

About

demo application demonstrating SMS notifications for Laravel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • PHP 99.1%
  • ApacheConf 0.9%