Skip to content
This repository has been archived by the owner on Apr 20, 2024. It is now read-only.

ml-archive/nodes-php-twilio

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

44 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Twilio

Send text messages with Twilio from your application

Total downloads Monthly downloads Latest release Open issues License Star repository on GitHub Watch repository on GitHub Fork repository on GitHub

📝 Introduction

Integrates the Twilio service, which makes it unbelieable easy to send text messages from your application.

📦 Installation

To install this package you will need:

  • Laravel 5.1+
  • PHP 5.5.9+

You must then modify your composer.json file and run composer update to include the latest version of the package in your project.

"require": {
    "nodes/twilio": "^1.0"
}

Or you can run the composer require command from your terminal.

composer require nodes/twilio:^1.0

🔧 Setup

In Laravel 5.5 and above, service providers and aliases are automatically registered. If you're using Laravel 5.5 or above, skip ahead directly to Publish config files.

Setup service provider in config/app.php

Nodes\Services\Twilio\ServiceProvider::class

Publish config files

php artisan vendor:publish --provider="Nodes\Services\Twilio\ServiceProvider"

If you want to overwrite any existing config files use the --force parameter

php artisan vendor:publish --provider="Nodes\Services\Twilio\ServiceProvider" --force

⚙ Usage

Global method

twilio_sms($to, $body, $from = null)
twilio_look_up($phoneNumber, $type = 'all')

🏆 Credits

This package is developed and maintained by the PHP team at Nodes

Follow Nodes PHP on Twitter Tweet Nodes PHP

📄 License

This package is open-sourced software licensed under the MIT license