Skip to content
This repository has been archived by the owner on Aug 8, 2023. It is now read-only.

TwilioDevEd/server-notifications-laravel

Repository files navigation

Twilio

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!

Local Development

  1. Grab latest source

    git clone [email protected]:TwilioDevEd/server-notifications-laravel.git
  2. Copy the sample configuration file and edit it to match your configuration.

    cp .env.example .env

    You can find your TWILIO_ACCOUNT_SID and TWILIO_AUTH_TOKEN under your Twilio Account Settings. You can buy Twilio phone numbers at Twilio numbers TWILIO_NUMBER should be set to the phone number you purchased above. TWILIO_RR_NUMBER should be set to a Twilio number too.

  3. Customize config/administrators.json with your name and phone number.

  4. Install the dependencies with Composer.

    composer install
  5. Generate an APP_KEY.

    php artisan key:generate
  6. Start the server.

    php artisan serve

How To Demo?

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

Meta

  • No warranty expressed or implied. Software is as is. Diggity.
  • MIT License
  • Lovingly crafted by Twilio Developer Education.