Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/dasundev/laravel-textit
Laravel package for Textit SMS Gateway in Sri Lanka
https://github.com/dasundev/laravel-textit
hacktoberfest laravel
Last synced: 2 months ago
JSON representation
Laravel package for Textit SMS Gateway in Sri Lanka
- Host: GitHub
- URL: https://github.com/dasundev/laravel-textit
- Owner: dasundev
- License: mit
- Created: 2021-12-02T19:17:00.000Z (about 3 years ago)
- Default Branch: main
- Last Pushed: 2024-01-20T11:46:39.000Z (12 months ago)
- Last Synced: 2024-10-10T17:41:18.954Z (3 months ago)
- Topics: hacktoberfest, laravel
- Language: PHP
- Homepage:
- Size: 36.1 KB
- Stars: 12
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Contributing: CONTRIBUTING.md
- Funding: .github/FUNDING.yml
- License: LICENSE.md
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Laravel Textit
Laravel Textit will help you to integrate the Textit SMS
gateway very easily on your laravel application.This package has been developed for [https://textit.biz](https://textit.biz/)
Therefore, you must have an active textit account with sufficient balance to send SMS.
## Installation
1. You can install this package via composer:
```bash
composer require dasundev/laravel-textit
```
2. You can publish the config file with:
```bash
php artisan vendor:publish --provider="Dasundev\LaravelTextit\TextitServiceProvider" --tag="config"
```
## ENV Keys* Add following environment keys to your .env file. then replace with your Account ID & Password.
```dotenv
TEXTIT_ACCOUNT_ID=94XXXXXXXXX
TEXTIT_ACCOUNT_PASSWORD=1234
```
* Optional environment keys(currently not available).```dotenv
TEXTIT_CUSTOM_SENDER_ID=Textit
TEXTIT_ECO=Y
TEXTIT_REPLY_NUMBER=07XXXXXXXX
TEXTIT_REPLY_URL=https://your-domain.com/textit/replies
```## Usage
* Send message to a user.
```php
Textit::sms('07XXXXXXXX', 'Your order has been delivered!'); // using facade
textit()->sms('07XXXXXXXX', 'Your order has been delivered!'); // using helper function
```
* Check your textit account balance.
```php
$balance = Textit::balance(); // using facade
$balance = textit()->balance(); // using helper function
```
### LicenseCopyright © Dasun Tharanga
Laravel Textit is open-sourced software licensed under the MIT license.