{"id":15019846,"url":"https://github.com/mahdigraph/laravel-sms","last_synced_at":"2025-10-24T18:30:18.497Z","repository":{"id":37748306,"uuid":"505005306","full_name":"MahdiGraph/laravel-sms","owner":"MahdiGraph","description":"a simple laravel sms integration package","archived":false,"fork":false,"pushed_at":"2022-06-25T00:32:09.000Z","size":49,"stargazers_count":3,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-10-10T09:40:16.143Z","etag":null,"topics":["laravel","laravel-sms","send-sms","sms-api","sms-gateway"],"latest_commit_sha":null,"homepage":"","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/MahdiGraph.png","metadata":{"files":{"readme":"README-FA.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2022-06-19T03:45:03.000Z","updated_at":"2022-11-07T06:11:52.000Z","dependencies_parsed_at":"2022-08-20T01:51:52.301Z","dependency_job_id":null,"html_url":"https://github.com/MahdiGraph/laravel-sms","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahdiGraph%2Flaravel-sms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahdiGraph%2Flaravel-sms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahdiGraph%2Flaravel-sms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/MahdiGraph%2Flaravel-sms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/MahdiGraph","download_url":"https://codeload.github.com/MahdiGraph/laravel-sms/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":219868210,"owners_count":16555876,"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":["laravel","laravel-sms","send-sms","sms-api","sms-gateway"],"created_at":"2024-09-24T19:54:11.266Z","updated_at":"2025-10-24T18:30:18.079Z","avatar_url":"https://github.com/MahdiGraph.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp style=\"display: flex;align-items: center;justify-content: center;\"\u003e\u003cimg alt=\"لاراول اس ام اس\" src=\"resources/images/sms.png?raw=true\"\u003e\u003c/p\u003e\n\n\n\n# پکیج ارسال پیامک در لاراول\n\n![Software License][ico-license]\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Total Downloads on Packagist][ico-download]][link-packagist]\n[![Maintainability](https://api.codeclimate.com/v1/badges/03c352daab19de73191a/maintainability)](https://codeclimate.com/github/MahdiGraph/laravel-sms/maintainability)\n[![StyleCI](https://github.styleci.io/repos/7548986/shield?style=flat\u0026branch=6.x)](https://github.styleci.io/repos/7548986)\n[![Quality Score][ico-code-quality]][link-code-quality]\n\nاین پکیج برای استفاده از سرویس دهنده های پیامکی در لاراول است. پشتیبانی از `لاراول 5.8+`.\n\n\u003e این پکیج با درایور های مختلف سازگار است, در صورتی که درایور شما وجود نداشت میتوانید درایور خود را ایجاد کنید [current drivers list](#درایور-های-موجود) (لیست درایور های موجود).\n\n- [داکیومنت فارسی][link-fa]\n- [English documents][link-en]\n\n# لیست محتوا \n- [درایور های موجود](#درایور-های-موجود)\n- [نصب](#نصب)\n- [تنظیمات](#تنظیمات)\n- [نحوه استفاده](#نحوه-استفاده)\n\n# درایور های موجود\n\n- [آی پی پنل](https://ippanel.com/) :heavy_check_mark:\n- در حال افزودن ...\n\n**به من در افزودن درایور ها کمک کنید `pull requests`**\n\n- [twilio](https://twilio.com)\n- [کاوه نگار](https://kavenegar.com)\n- [ایده پردازان](https://sms.ir)\n- [فراز اس ام اس](https://farazsms.com)\n- [ملی پیامک](https://melipayamak.com)\n- ...\n\n## نصب\n\nبا استفاده از composer\n``` bash\n$ composer require mahdigraph/laravel-sms\n```\n\n## تنظیمات\n\nدر صورتی که از `لاراول 5.5` یا بالاتر استفاده میکنید نیازی به افزودن دستی provider و alias ها نیست. (به مرحله b بروید)\n\na. در فایل `config/app.php` این دو خط را اضافه کنید.\n\n```php\n// In your providers array.\n'providers' =\u003e [\n    ...\n    \\Metti\\LaravelSms\\LaravelSMSServiceProvider::class,\n],\n\n// In your aliases array.\n'aliases' =\u003e [\n    ...\n    'SendSMS' =\u003e \\Metti\\LaravelSms\\Facade\\SendSMS::class,\n],\n```\n\nb. سپس دستور `php artisan vendor:publish` را اجرا کنید تا فایل `config/sms.php` برای شما ایجاد شود.\n\nدر فایل کانفیگ شما میتوانید `سرویس دهنده پیامکی پیشفرض` خود را تعیین کنید. ولی شما هر زمان میتوانید این مقدار پیشفرض را تغییر دهید .\n\nانتخاب کنید که ترجیح میدهید از کدام سرویس دهنده پیامکی در برنامه خود استفاده کنید سپس آن را به عنوان درایور پیشفرض تعیین کنید که هربار نیازی به تعریف آن نداشته باشید. همچنین شما میتوانید از چندین سرویس دهنده مختلف در یک برنامه استفاده کنید\n\n```php\n// Eg. if you want to use ippanel.\n'default' =\u003e 'ippanel',\n```\n\nسپس مشخصات مربوط به سرویس دهنده پیامکی را در آرایه drivers وارد کنید.\n\n```php\n'drivers' =\u003e [\n    'ippanel' =\u003e [\n        // Fill in the credentials here.\n        'key' =\u003e '00000000-0000-0000-0000-000000000000', // API Key\n        'originator' =\u003e '+9890000', // Sender Number\n        'patterns' =\u003e [ // patterns only if you want to use them.\n            'contact' =\u003e [ // pattern name\n                'pattern_code' =\u003e 'abcd-efgh-ijkl-mnop', // pattern code from your sms provider\n                'values' =\u003e [ // values only if you want to set default values for your patterns.\n                    'support_phone' =\u003e '021-123456789'\n                ]\n            ]\n        ] \n    ],\n    ...\n]\n```\n\n## نحوه استفاده\n```php\n// Sending Text Messages\nSendSMS::textMessage('Hey You :)')\n    -\u003erecipients(['09121234567','09121234568'])\n    -\u003esend();\n\n// Sending Pattern Messages\nSendSMS::via('ippanel')\n    -\u003epatternMessage('contact',['support_phone' =\u003e '021-123456789'])\n    -\u003erecipients('09121234567')\n    -\u003esend();\n```\n\n## امنیتی\nدر صورتی که هرگونه مشکل امنیتی پیدا کردید ، لطفا به ایمیل immahdigraph@gmail.com گزارش را ارسال کنید\n\n## توسعه دهندگان\n- [MahdiGraph][link-author]\n- [All Contributors][link-contributors]\n\n## License\n\nتوسعه و تولید تحت لایسنس MIT است.\n\n[ico-code-quality]: https://img.shields.io/scrutinizer/quality/g/mahdigraph/laravel-sms.svg?label=Code%20Quality\u0026style=flat-square\n\n[link-fa]: README-FA.md\n[link-en]: README.md\n[link-code-quality]: https://scrutinizer-ci.com/g/mahdigraph/laravel-sms\n[link-author]: https://github.com/MahdiGraph\n[link-contributors]: https://github.com/MahdiGraph/laravel-sms/graphs/contributors\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-version]: https://img.shields.io/packagist/v/mahdigraph/laravel-sms.svg?style=flat-square\n[ico-download]: https://img.shields.io/packagist/dt/mahdigraph/laravel-sms.svg?color=%23F18\u0026\n[link-packagist]: https://packagist.org/packages/mahdigraph/laravel-sms\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahdigraph%2Flaravel-sms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmahdigraph%2Flaravel-sms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmahdigraph%2Flaravel-sms/lists"}