{"id":21316067,"url":"https://github.com/developifynet/sms4connect-php","last_synced_at":"2025-10-14T04:48:01.641Z","repository":{"id":56966564,"uuid":"257573853","full_name":"developifynet/sms4connect-php","owner":"developifynet","description":"SMS 4 Connect SMS API PHP Wrapper","archived":false,"fork":false,"pushed_at":"2020-04-21T17:18:31.000Z","size":21,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-03-15T21:33:31.052Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/developifynet.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":"2020-04-21T11:30:21.000Z","updated_at":"2020-04-21T17:12:28.000Z","dependencies_parsed_at":"2022-08-21T10:20:20.006Z","dependency_job_id":null,"html_url":"https://github.com/developifynet/sms4connect-php","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/developifynet/sms4connect-php","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developifynet%2Fsms4connect-php","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developifynet%2Fsms4connect-php/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developifynet%2Fsms4connect-php/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developifynet%2Fsms4connect-php/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/developifynet","download_url":"https://codeload.github.com/developifynet/sms4connect-php/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/developifynet%2Fsms4connect-php/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279017927,"owners_count":26086213,"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","status":"online","status_checked_at":"2025-10-14T02:00:06.444Z","response_time":60,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":[],"created_at":"2024-11-21T18:29:32.353Z","updated_at":"2025-10-14T04:48:01.628Z","avatar_url":"https://github.com/developifynet.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SMS 4 Connect SMS API Wrapper for PHP\n\n\u003ca href=\"https://travis-ci.org/developifynet/sms4connect-php\"\u003e\u003cimg src=\"https://travis-ci.org/laravel/framework.svg\" alt=\"Build Status\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/developifynet/sms4connect-php\"\u003e\u003cimg src=\"https://poser.pugx.org/developifynet/sms4connect-php/d/total.svg\" alt=\"Total Downloads\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/developifynet/sms4connect-php\"\u003e\u003cimg src=\"https://poser.pugx.org/developifynet/sms4connect-php/v/stable.svg\" alt=\"Latest Stable Version\"\u003e\u003c/a\u003e\n\u003ca href=\"https://packagist.org/packages/developifynet/sms4connect-php\"\u003e\u003cimg src=\"https://poser.pugx.org/developifynet/sms4connect-php/license.svg\" alt=\"License\"\u003e\u003c/a\u003e\n\nThis composer package offers a quick SMS setup for your php or Laravel applications.\n\n## Installation\n\nBegin by pulling in the package through Composer.\n\n```bash\ncomposer require developifynet/sms4connect-php\n```\n\n## Laravel Framework Usage\n\nWithin your controllers, you can call Sms4Connect facade and can send quick SMS.\n\n#### Send SMS\n\n##### Send SMS for Single Number\n```php\nuse Developifynet\\Sms4Connect\\Sms4Connect;\npublic function index()\n{\n    $SMSObj = array(\n        'id' =\u003e '\u003cPUT_YOUR_ACCOUNT_ID_HERE\u003e',               // Use your account id here\n        'password' =\u003e '\u003cPUT_YOUR_ACCOUNT_PASSWORD_HERE\u003e',   // Use your account password here\n        'to' =\u003e '923XXXXXXXXX',                             // You can provide single number as string or an array of numbers\n        'msg' =\u003e '\u003cPUT_YOUR_MESSAGE_HERE\u003e',                 // Message string you want to send to provided number(s)\n        'mask' =\u003e '\u003cPUT_YOUR_MASK_HERE\u003e',                   // Use a registered mask with SMS 4 Connect\n        'test_mode' =\u003e '0',                                 // 0 for Production, 1 for Mocking as Test\n     );\n    \n    $response = Sms4Connect::SendSMS($SMSObj);\n}\n```\n\n##### Send SMS for Multiple Number\n```php\nuse Developifynet\\Sms4Connect\\Sms4Connect;\npublic function index()\n{\n    $SMSObj = array(\n        'id' =\u003e '\u003cPUT_YOUR_ACCOUNT_ID_HERE\u003e',               // Use your account id here\n        'password' =\u003e '\u003cPUT_YOUR_ACCOUNT_PASSWORD_HERE\u003e',   // Use your account password here\n        'to' =\u003e ['923XXXXXXXXX', '923XXXXXXXXX'],,          // You can provide single number as string or an array of numbers\n        'msg' =\u003e '\u003cPUT_YOUR_MESSAGE_HERE\u003e',                 // Message string you want to send to provided number(s)\n        'mask' =\u003e '\u003cPUT_YOUR_MASK_HERE\u003e',                   // Use a registered mask with SMS 4 Connect\n        'test_mode' =\u003e '0',                                 // 0 for Production, 1 for Mocking as Test\n     );\n    \n    $response = Sms4Connect::SendSMS($SMSObj);\n}\n```\n\n\n#### Check Delivery Status\n\n##### Check Status for Single Transaction\n\n```php\nuse Developifynet\\Sms4Connect\\Sms4Connect;\npublic function index()\n{\n    $SMSObj = array(\n        'id' =\u003e '\u003cPUT_YOUR_ACCOUNT_ID_HERE\u003e',               // Use your account id here\n        'password' =\u003e '\u003cPUT_YOUR_ACCOUNT_PASSWORD_HERE\u003e',   // Use your account password here\n        'transaction' =\u003e 'XXXXXXXXX',                       // You can provide single sms transaction id as string or an array of numbers\n        'test_mode' =\u003e '0',                                 // 0 for Production, 1 for Mocking as Test\n    );\n    \n    $sms4connect = new Sms4ConnectSMS::checkDeliveryStatus($SMSObj);\n}\n```\n\n##### Check Status for Multiple Transaction\n\n```php\nuse Developifynet\\Sms4Connect\\Sms4Connect;\npublic function index()\n{\n    $SMSObj = array(\n        'id' =\u003e '\u003cPUT_YOUR_ACCOUNT_ID_HERE\u003e',               // Use your account id here\n        'password' =\u003e '\u003cPUT_YOUR_ACCOUNT_PASSWORD_HERE\u003e',   // Use your account password here\n        'transaction' =\u003e ['XXXXXXXXX', 'XXXXXXXXX'],        // You can provide single sms transaction id as string or an array of numbers\n        'test_mode' =\u003e '0',                                 // 0 for Production, 1 for Mocking as Test\n    );\n    \n    $sms4connect = new Sms4ConnectSMS::checkDeliveryStatus($SMSObj);\n}\n```\n\n#### Check Account Balance\n\n```php\nuse Developifynet\\Sms4Connect\\Sms4Connect;\npublic function index()\n{\n    $SMSObj = array(\n        'id' =\u003e '\u003cPUT_YOUR_ACCOUNT_ID_HERE\u003e',               // Use your account id here\n        'password' =\u003e '\u003cPUT_YOUR_ACCOUNT_PASSWORD_HERE\u003e',   // Use your account password here\n        'test_mode' =\u003e '0',                                 // 0 for Production, 1 for Mocking as Test\n    );\n    \n    $sms4connect = new Sms4ConnectSMS::checkBalance($SMSObj);\n}\n```\n\n## Other Usage\n\nWithin your controllers, you can call Sms4ConnectSMS Object and can send quick SMS.\n\n#### Send SMS\n\n##### Send SMS for Single Number\n```php\nuse \\Developifynet\\Sms4Connect\\Sms4ConnectSMS;\npublic function index()\n{\n    $SMSObj = array(\n        'id' =\u003e '\u003cPUT_YOUR_ACCOUNT_ID_HERE\u003e',               // Use your account id here\n        'password' =\u003e '\u003cPUT_YOUR_ACCOUNT_PASSWORD_HERE\u003e',   // Use your account password here\n        'to' =\u003e '923XXXXXXXXX',                             // You can provide single number as string or an array of numbers\n        'msg' =\u003e '\u003cPUT_YOUR_MESSAGE_HERE\u003e',                 // Message string you want to send to provided number(s)\n        'mask' =\u003e '\u003cPUT_YOUR_MASK_HERE\u003e',                   // Use a registered mask with SMS 4 Connect\n        'test_mode' =\u003e '0',                                 // 0 for Production, 1 for Mocking as Test\n    );\n    \n    $sms4connect = new Sms4ConnectSMS();\n    $response = $sms4connect-\u003eSendSMS($SMSObj);\n}\n```\n\n##### Send SMS for Multiple Number\n```php\nuse \\Developifynet\\Sms4Connect\\Sms4ConnectSMS;\npublic function index()\n{\n    $SMSObj = array(\n        'id' =\u003e '\u003cPUT_YOUR_ACCOUNT_ID_HERE\u003e',               // Use your account id here\n        'password' =\u003e '\u003cPUT_YOUR_ACCOUNT_PASSWORD_HERE\u003e',   // Use your account password here\n        'to' =\u003e ['923XXXXXXXXX', '923XXXXXXXXX'],,          // You can provide single number as string or an array of numbers\n        'msg' =\u003e '\u003cPUT_YOUR_MESSAGE_HERE\u003e',                 // Message string you want to send to provided number(s)\n        'mask' =\u003e '\u003cPUT_YOUR_MASK_HERE\u003e',                   // Use a registered mask with SMS 4 Connect\n        'test_mode' =\u003e '0',                                 // 0 for Production, 1 for Mocking as Test\n     );\n    \n    $sms4connect = new Sms4ConnectSMS();\n    $response = $sms4connect-\u003eSendSMS($SMSObj);\n}\n```\n\n#### Check Delivery Status\n\n##### Check Status for Single Transaction\n\n```php\nuse \\Developifynet\\Sms4Connect\\Sms4ConnectSMS;\npublic function index()\n{\n    $SMSObj = array(\n        'id' =\u003e '\u003cPUT_YOUR_ACCOUNT_ID_HERE\u003e',               // Use your account id here\n        'password' =\u003e '\u003cPUT_YOUR_ACCOUNT_PASSWORD_HERE\u003e',   // Use your account password here\n        'transaction' =\u003e 'XXXXXXXXX',                       // You can provide single sms transaction id as string or an array of numbers\n        'test_mode' =\u003e '0',                                 // 0 for Production, 1 for Mocking as Test\n    );\n    \n    $sms4connect = new Sms4ConnectSMS();\n    $response = $sms4connect-\u003echeckDeliveryStatus($SMSObj);\n}\n```\n\n##### Check Status for Multiple Transaction\n\n```php\nuse \\Developifynet\\Sms4Connect\\Sms4ConnectSMS;\npublic function index()\n{\n    $SMSObj = array(\n        'id' =\u003e '\u003cPUT_YOUR_ACCOUNT_ID_HERE\u003e',               // Use your account id here\n        'password' =\u003e '\u003cPUT_YOUR_ACCOUNT_PASSWORD_HERE\u003e',   // Use your account password here\n        'transaction' =\u003e ['XXXXXXXXX', 'XXXXXXXXX'],        // You can provide single sms transaction id as string or an array of numbers\n        'test_mode' =\u003e '0',                                 // 0 for Production, 1 for Mocking as Test\n    );\n    \n    $sms4connect = new Sms4ConnectSMS();\n    $response = $sms4connect-\u003echeckDeliveryStatus($SMSObj);\n}\n```\n\n#### Check Account Balance\n\n```php\nuse \\Developifynet\\Sms4Connect\\Sms4ConnectSMS;\npublic function index()\n{\n    $SMSObj = array(\n        'id' =\u003e '\u003cPUT_YOUR_ACCOUNT_ID_HERE\u003e',               // Use your account id here\n        'password' =\u003e '\u003cPUT_YOUR_ACCOUNT_PASSWORD_HERE\u003e',   // Use your account password here\n        'test_mode' =\u003e '0',                                 // 0 for Production, 1 for Mocking as Test\n    );\n    \n    $sms4connect = new Sms4ConnectSMS();\n    $response = $sms4connect-\u003echeckBalance($SMSObj);\n}\n```\n\n### Note\nProvided numbers should start with Country code. A Pakistani number you have to write down as 923XXXXXXXXX","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopifynet%2Fsms4connect-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevelopifynet%2Fsms4connect-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevelopifynet%2Fsms4connect-php/lists"}