Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Laravel Fast2Sms Laravel Package

itxshakil/laravel-fast2sms

View on GitHub
Deep Wiki
Context7

Installation

Requirements

Requirement Version
PHP ^8.3
Laravel ^11.0 | ^12.0 | ^13.0
Fast2SMS account Sign up free

Step 1 — Install via Composer

composer require itxshakil/laravel-fast2sms

Step 2 — Auto-Discovery

Laravel automatically discovers the service provider and facade. No manual registration is needed for Laravel 11+.

Manual Registration (optional)

If you have disabled package auto-discovery, add the following to config/app.php:

'providers' => [
    // ...
    Shakil\Fast2sms\Fast2smsServiceProvider::class,
],

'aliases' => [
    // ...
    'Fast2sms' => Shakil\Fast2sms\Facades\Fast2sms::class,
],

Step 3 — Publish Configuration

php artisan vendor:publish --tag=fast2sms-config

This creates config/fast2sms.php in your application.


Step 4 — Set Your API Key

Add your Fast2SMS API key to .env:

FAST2SMS_API_KEY=your_api_key_here

You can find your API key in the Fast2SMS developer panel.


Step 5 — (Optional) Publish Migrations

If you want to log SMS sends to the database, publish and run the migrations:

php artisan vendor:publish --tag=fast2sms-migrations
php artisan migrate

Then enable database logging in .env:

FAST2SMS_DATABASE_LOGGING=true

Local Development

For local development, use the log driver to avoid making real API calls:

FAST2SMS_DRIVER=log

All sends will be written to your Laravel log instead of hitting the Fast2SMS API.


See Also

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
elnasnato/laraliveui
labrodev/rest-sdk
sampaui/sampaui
babelqueue/php-sdk
facebook/capi-param-builder-php
babelqueue/symfony
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium