Skip to content

Latest commit

 

History

History
60 lines (43 loc) · 1.97 KB

readme.md

File metadata and controls

60 lines (43 loc) · 1.97 KB

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.