Skip to content

ARASHFADAEE/MeliPyamak

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

3 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

πŸ“© Laravel SMS Module

A clean and modular SMS service implementation for Laravel using Service Providers and Facades.

app/
└── Modules/
    └── Sms/
        β”œβ”€β”€ Facades/
        β”‚   └── Sms.php
        β”œβ”€β”€ Services/
        β”‚   └── SmsService.php
        β”œβ”€β”€ SmsServiceProvider.php
        └── README.md   (optional, module-level docs)

bootstrap/
└── services/
    └── providers.php

config/
└── sms.php

✨ Features

  • Modular architecture (App Modules)
  • Laravel Service Provider support
  • Facade-based API
  • Environment-based configuration
  • Easy to extend or replace SMS providers

πŸ“¦ Installation

1. Create Configuration File

Create the SMS configuration file:

config/sms.php


<?php

return [
    'username' => env('SMS_USERNAME'),
    'password' => env('SMS_PASSWORD'),
];

2. Add your credentials to the .env file:

SMS_USERNAME=your_sms_username
SMS_PASSWORD=your_sms_password

3. Register Service Provider

Register the SMS service provider in Laravel.

bootstrap/services/providers.php


<?php

return [
    App\Providers\AppServiceProvider::class,
    App\Modules\Sms\SmsServiceProvider::class,
];


###πŸš€ Usage Import the Facade

use App\Modules\Sms\Facades\Sms;

Send SMS Example

Sms::to('09140065379')
            ->pattern('PatternId')
            ->send(['arg1','arg2','arg3']);

About

A module For Sens Sms With Soap Client

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages