{"id":17922708,"url":"https://github.com/overtrue/laravel-easy-sms","last_synced_at":"2025-03-17T16:12:06.254Z","repository":{"id":43827212,"uuid":"315648041","full_name":"overtrue/laravel-easy-sms","owner":"overtrue","description":"overtrue/easy-sms service provider for Laravel.","archived":false,"fork":false,"pushed_at":"2025-02-25T14:28:08.000Z","size":28,"stargazers_count":26,"open_issues_count":1,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-25T15:30:45.875Z","etag":null,"topics":["laravel","sms","sms-client"],"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/overtrue.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2020-11-24T13:55:27.000Z","updated_at":"2025-02-25T14:27:54.000Z","dependencies_parsed_at":"2024-10-28T20:40:39.530Z","dependency_job_id":"313bb9af-6fac-4a2e-91df-6dfaea917185","html_url":"https://github.com/overtrue/laravel-easy-sms","commit_stats":{"total_commits":14,"total_committers":3,"mean_commits":4.666666666666667,"dds":0.2142857142857143,"last_synced_commit":"b3a5be2c3fc8ce4eb6c7b2371c8b3737105ce99f"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":"overtrue/laravel-package","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overtrue%2Flaravel-easy-sms","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overtrue%2Flaravel-easy-sms/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overtrue%2Flaravel-easy-sms/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/overtrue%2Flaravel-easy-sms/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/overtrue","download_url":"https://codeload.github.com/overtrue/laravel-easy-sms/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244066189,"owners_count":20392406,"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","sms","sms-client"],"created_at":"2024-10-28T20:40:32.159Z","updated_at":"2025-03-17T16:12:06.223Z","avatar_url":"https://github.com/overtrue.png","language":"PHP","funding_links":["https://github.com/sponsors/overtrue"],"categories":[],"sub_categories":[],"readme":"# Laravel EasySMS\n\n[overtrue/easy-sms](https://github.com/overtrue/easy-sms) service provider for Laravel.\n\n![Laravel Octane Ready Status](https://img.shields.io/badge/Octance-ready-green?style=flat-square)\n![GitHub release (latest SemVer)](https://img.shields.io/github/v/release/overtrue/laravel-easy-sms?style=flat-square)\n![GitHub License](https://img.shields.io/github/license/overtrue/laravel-easy-sms?style=flat-square)\n![Packagist Downloads](https://img.shields.io/packagist/dt/overtrue/laravel-easy-sms?style=flat-square)\n\n[![Sponsor me](https://github.com/overtrue/overtrue/blob/master/sponsor-me-button-s.svg?raw=true)](https://github.com/sponsors/overtrue)\n\n## Installing\n\n```shell\n$ composer require overtrue/laravel-easy-sms\n```\n\n## Usage\n\n_config/services.php_\n\n```php\n    'easy-sms' =\u003e [\n        // HTTP 请求的超时时间（秒）\n        'timeout' =\u003e 5.0,\n\n        // 默认发送配置\n        'default' =\u003e [\n            // 网关调用策略，默认：顺序调用\n            'strategy' =\u003e \\Overtrue\\EasySms\\Strategies\\OrderStrategy::class,\n\n            // 默认可用的发送网关\n            'gateways' =\u003e [\n                'yunpian', 'aliyun',\n            ],\n        ],\n        // 可用的网关配置\n        'gateways' =\u003e [\n            'errorlog' =\u003e [\n                'file' =\u003e '/tmp/easy-sms.log',\n            ],\n            'yunpian' =\u003e [\n                'api_key' =\u003e env('EASY_SMS_YUNPIAN_API_KEY'),\n            ],\n            'aliyun' =\u003e [\n                'access_key_id' =\u003e env('EASY_SMS_ALIYUN_KEY_ID'),\n                'access_key_secret' =\u003e  env('EASY_SMS_ALIYUN_API_KEY'),\n                'sign_name' =\u003e '',\n            ],\n            //...\n        ],\n    ],\n```\n\nSend a message:\n\n```php\napp('easy-sms')-\u003esend(13188888888, [\n    'content'  =\u003e '您的验证码为: 6379',\n    'template' =\u003e 'SMS_001',\n    'data' =\u003e [\n        'code' =\u003e 6379\n    ],\n]);\n```\n\n[More...](https://github.com/overtrue/easy-sms)\n\n## Contributing\n\nYou can contribute in one of three ways:\n\n1. File bug reports using the [issue tracker](https://github.com/overtrue/laravel-easy-sms/issues).\n2. Answer questions or fix bugs on the [issue tracker](https://github.com/overtrue/laravel-easy-sms/issues).\n3. Contribute new features or update the wiki.\n\n_The code contribution process is not very formal. You just need to make sure that you follow the PSR-0, PSR-1, and PSR-2 coding guidelines. Any new code contributions must be accompanied by unit tests where applicable._\n\n[![Sponsor me](https://github.com/overtrue/overtrue/blob/master/sponsor-me.svg?raw=true)](https://github.com/sponsors/overtrue)\n\n## Project supported by JetBrains\n\nMany thanks to Jetbrains for kindly providing a license for me to work on this and other open-source projects.\n\n[![](https://resources.jetbrains.com/storage/products/company/brand/logos/jb_beam.svg)](https://www.jetbrains.com/?from=https://github.com/overtrue)\n\n## PHP 扩展包开发\n\n\u003e 想知道如何从零开始构建 PHP 扩展包？\n\u003e\n\u003e 请关注我的实战课程，我会在此课程中分享一些扩展开发经验 —— [《PHP 扩展包实战教程 - 从入门到发布》](https://learnku.com/courses/creating-package)\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovertrue%2Flaravel-easy-sms","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fovertrue%2Flaravel-easy-sms","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fovertrue%2Flaravel-easy-sms/lists"}