Skip to content

NweNweWinThan-X/TwilioGroupChat

Repository files navigation

Requirement to test SMS

  • Composer and Laravel Installer (v2.3.0 and above) installed on your local machine
  • Basic knowledge of the Laravel Framework
  • Basic knowledge of Vue.js
  • A Twilio account

About Laravel-Twillio

  • composer i
  • npm i
  • php artisan key:generate
  • php artisan migrate

To create channel & admin user

  • php artisan channel:init

To create member user

  • php artisan channel:newMember

Setting in your env file

  • To enable & usable TWILIO services

TWILIO_AUTH_SID=your_auth_sid TWILIO_AUTH_TOKEN=your_auth_token TWILIO_API_SID=your_api_sid TWILIO_API_SECRET=your_api_secret TWILIO_CHAT_SERVICE_SID=your_chat_service_sid MIX_CHANNEL_SID=your_channel_sid MIX_CHANNEL_ADMIN_ROLE_SID=your_channel_admin_role_sid MIX_CHANNEL_MEMBER_ROLE_SID=your_channel_member_role_sid MIX_CHANNEL_BANNED_ROLE_SID=your_channel_banned_role_sid (this is option member that does not necessary)


Getting Twilio Credentials

  1. Login to your Twilio dashboard and copy both your Account SID and Auth Token.
  • TWILIO_AUTH_SID=your_auth_sid
  • TWILIO_AUTH_TOKEN=your_auth_token

Copy as the following: Login

  1. Before you can start using the Twilio Chat API, you need to first create a chat service:

Chat_Service

After you name and create your chat service, take note of your Service SID.

  • TWILIO_CHAT_SERVICE_SID=your_chat_service_sid

Service

  1. Getting API Key
  • TWILIO_API_SID=your_api_sid
  • TWILIO_API_SECRET=your_api_secret

API_Create

Get_API

  1. Getting Channel SID
  • MIX_CHANNEL_SID=your_channel_sid

image

  1. Getting Member Role SID
  • MIX_CHANNEL_ADMIN_ROLE_SID=your_channel_admin_role_sid
  • MIX_CHANNEL_MEMBER_ROLE_SID=your_channel_member_role_sid

image

  1. View Your Channel with Members, Messages

View Messages image

View Members image

About

Laravel Group Chat using Twilio

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published