{"id":14974617,"url":"https://github.com/softon/sms","last_synced_at":"2025-07-17T07:03:18.046Z","repository":{"id":30579330,"uuid":"34134363","full_name":"softon/sms","owner":"softon","description":"Simple SMS Gateway Package for sending short text messages from your Application. Facade for Laravel 5(Updated to work with Laravel 5.5).Currently supported Gateways Clickatell, MVaayoo, Gupshup, SmsAchariya, SmsCountry, SmsLane, Nexmo, Mocker / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.","archived":false,"fork":false,"pushed_at":"2020-09-23T09:54:00.000Z","size":50,"stargazers_count":46,"open_issues_count":3,"forks_count":28,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-06-25T09:58:29.660Z","etag":null,"topics":["gupshup","laravel-5-package","laravel-package","laravel55","php","sms-api","sms-gateway","sms-messages"],"latest_commit_sha":null,"homepage":"http://softon.github.io/sms/","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/softon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2015-04-17T18:55:04.000Z","updated_at":"2025-06-04T20:29:13.000Z","dependencies_parsed_at":"2022-08-24T06:00:21.127Z","dependency_job_id":null,"html_url":"https://github.com/softon/sms","commit_stats":null,"previous_names":[],"tags_count":21,"template":false,"template_full_name":null,"purl":"pkg:github/softon/sms","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Fsms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Fsms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Fsms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Fsms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/softon","download_url":"https://codeload.github.com/softon/sms/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/softon%2Fsms/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265575433,"owners_count":23790771,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["gupshup","laravel-5-package","laravel-package","laravel55","php","sms-api","sms-gateway","sms-messages"],"created_at":"2024-09-24T13:50:49.174Z","updated_at":"2025-07-17T07:03:18.028Z","avatar_url":"https://github.com/softon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SMS\nSimple SMS(Short Messaging Service) Gateway Package for sending short text messages from your Application. Facade for Laravel 5(Updated to work with Laravel 5.*).Currently supported Gateways Clickatell, MVaayoo, Gupshup, SmsAchariya, SmsCountry, SmsLane, Nexmo, Mocker, MSG91 / Any HTTP/s based Gateways are supported by Custom Gateway. Log gateway can be used for testing.\n\n\u003cstrong\u003eInstallation\u003c/strong\u003e\n\n\u003col\u003e\n  \u003cli\u003eEdit the composer.json add to the require array \u0026 run composer update\u003cbr\u003e\n      \u003cpre\u003e\u003ccode\u003e composer require softon/sms \u003c/code\u003e\u003c/pre\u003e\n  \u003c/li\u003e\n  \u003cli\u003e(Optional for Laravel 5.5+) Add the service provider to the config/app.php file in Laravel\u003cbr\u003e\n      \u003cpre\u003e\u003ccode\u003e Softon\\Sms\\SmsServiceProvider::class, \u003c/code\u003e\u003c/pre\u003e\n      \n  \u003c/li\u003e\n  \u003cli\u003e(Optional for Laravel 5.5) Add an alias for the Facade to the config/app.php file in Laravel\u003cbr\u003e\n      \u003cpre\u003e\u003ccode\u003e 'Sms' =\u003e Softon\\Sms\\Facades\\Sms::class, \u003c/code\u003e\u003c/pre\u003e\n      \n  \u003c/li\u003e\n  \u003cli\u003ePublish the config \u0026 views by running \u003cbr\u003e\n      \u003cpre\u003e\u003ccode\u003e php artisan vendor:publish --provider=\"Softon\\Sms\\SmsServiceProvider\" \u003c/code\u003e\u003c/pre\u003e\n      \n  \u003c/li\u003e\n\u003c/ol\u003e\n\n\n\u003cstrong\u003eUsage\u003c/strong\u003e\n\nEdit the config/sms.php. Set the appropriate Gateway and its parameters. Then in your code... \u003cbr\u003e\nPut your blade template for the SMS in the resources/views/sms folder. Then use the below lines of code to send SMS. \n```php\nuse Softon\\Sms\\Facades\\Sms;  \n ```\nSend Single SMS with View:-\n```php\n// Params: [MobileNumber,Blade View Location,SMS Params If Required]\nSms::send('9090909090','sms.test',['param1'=\u003e'Name 1']);  \n ```\n Send Single SMS with Raw Message:-\n```php\n// Params: [MobileNumber,Blade View Location,SMS Params If Required]\nSms::send('9090909090','Any Message Text To be sent.');  \n ```\nSend Multiple SMS:-\n```php\n// Params: [Array of MobileNumbers,Blade View Location,SMS Params If Required]\nSms::send(['87686655455','1212121212','2323232323'],'sms.test',['param1'=\u003e'Name 1']);  \n ```\nSelect the Gateway before sending the Message:-\n```php\n/*****************************************************\n Gateways ::  log / clickatell / gupshup / mvaayoo / \n              smsachariya / smscountry / smslane / \n              nexmo / msg91 / mocker / custom \n*****************************************************/\n\nSms::gateway('mocker')-\u003esend(['87686655455','1212121212','2323232323'],'sms.test',['param1'=\u003e'Name 1']);  \n```\n\nWith Response:-\n```php \n// This command gives you the reply recieved from the server.\nSms::send(['87686655455','1212121212','2323232323'],'sms.test',['param1'=\u003e'Name 1'])-\u003eresponse();  \n```\n\n\n\u003cstrong\u003eCustom Gateway\u003c/strong\u003e\nLet us suppose you want to use any other gateway. Find the API url with which sms can be sent.\nFor Example : \u003ccode\u003ehttp://example.com/api/sms.php?uid=737262316a\u0026pin=YOURPIN\u0026sender=your_sender_id\u0026route=0\u0026mobile=8888888888\u0026message=How are You\u0026pushid=1\u003c/code\u003e\n\nThen you can setup the Config of Custom Gateway like this:\n\n```php \n        'custom' =\u003e [                           // Can be used for any gateway\n            'url' =\u003e '',                        // Gateway Endpoint\n            'params' =\u003e [                       // Parameters to be included in the request\n                'send_to_name' =\u003e 'mobile',           // Name of the field of recipient number\n                'msg_name' =\u003e 'message',               // Name of the field of Message Text\n                'others' =\u003e [                   // Other Authentication params with their values\n                    'uid' =\u003e '737262316a',\n                    'pin' =\u003e 'YOURPIN',\n                    'sender' =\u003e 'your_sender_id',\n                    'route' =\u003e '0',\n                    'pushid' =\u003e '1',\n                ],\n            ],\n            'add_code' =\u003e true,                 // Append country code to the mobile numbers\n        ],\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofton%2Fsms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsofton%2Fsms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsofton%2Fsms/lists"}