Download the PHP package ghanem/laravel-smsmisr without Composer

On this page you can find all versions of the php package ghanem/laravel-smsmisr. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-smsmisr

Laravel SMS Misr (EGYPT)

Latest Stable Version Total Downloads License

Laravel package to send SMS and SMS notifications via SMS Misr from your Laravel application.

Requirements

Installation

The package uses Laravel's auto-discovery, so the service provider and facade are registered automatically.

Publish the configuration file:

Add your credentials to .env:

Or use token-based authentication:

Usage

Sending SMS

Using the service container:

Bulk SMS

Send to multiple recipients (up to 500K numbers per request):

OTP / Verification SMS

Scheduled SMS

Queue (Async Sending)

Send SMS in the background via Laravel queues:

Configure the queue name in .env:

Or dispatch the jobs directly:

Checking Balance

Health Check

Response Object

All API methods return a SmsmisrResponse object:

Error Handling

Phone Number Normalization

The package automatically normalizes Egyptian phone numbers to international format:

Disable in config:

Validation Rule

Validates prefixes: 010, 011, 012, 015.

Events

Event When Properties
SmsSending Before sending to, message, sender, type
SmsSent After success to, message, sender, response, type
SmsFailed On failure to, message, sender, exception, type
LowBalance Balance check alert smsBalance, verifyBalance, threshold

The type is 'sms', 'otp', or 'bulk'.

Artisan Commands

Schedule the balance check in your routes/console.php:

Notifications

OTP Notification

Scheduled Notification

SmsmisrMessage API

Testing

In Your Application

Available assertions:

Running Package Tests

Configuration

Key Env Variable Default Description
environment SMSMISR_ENVIRONMENT 1 1 = Live, 2 = Test
endpoint SMSMISR_ENDPOINT https://smsmisr.com/api/ API endpoint
username SMSMISR_USERNAME null Account username
password SMSMISR_PASSWORD null Account password
token SMSMISR_TOKEN null API token (alternative auth)
sender SMSMISR_SENDER null Default sender name
auto_normalize SMSMISR_AUTO_NORMALIZE true Auto-normalize phone numbers
timeout SMSMISR_TIMEOUT 30 HTTP timeout (seconds)
retries SMSMISR_RETRIES 0 Retry attempts on failure
retry_delay SMSMISR_RETRY_DELAY 100 Delay between retries (ms)
rate_limit SMSMISR_RATE_LIMIT null Max messages per minute
queue SMSMISR_QUEUE null Queue name for async sending
log_channel SMSMISR_LOG_CHANNEL null Log channel for SMS operations
low_balance_threshold SMSMISR_LOW_BALANCE_THRESHOLD 100 Alert threshold for balance check

License

MIT

Sponsor

Become a Sponsor


All versions of laravel-smsmisr with dependencies

PHP Build Version
Package Version
Requires php Version ^8.1
illuminate/http Version ^10.0|^11.0|^12.0
illuminate/notifications Version ^10.0|^11.0|^12.0
illuminate/support Version ^10.0|^11.0|^12.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package ghanem/laravel-smsmisr contains the following files

Loading the files please wait ...