{"id":22645454,"url":"https://github.com/aqlx86/sms-otp","last_synced_at":"2025-06-23T18:06:32.969Z","repository":{"id":56949628,"uuid":"92380157","full_name":"aqlx86/sms-otp","owner":"aqlx86","description":"SMS OTP for Laravel 5","archived":false,"fork":false,"pushed_at":"2018-09-30T14:23:14.000Z","size":18,"stargazers_count":3,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-05-16T01:49:27.204Z","etag":null,"topics":["isms","laravel","otp","sms"],"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/aqlx86.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":"2017-05-25T08:05:11.000Z","updated_at":"2019-08-20T02:25:21.000Z","dependencies_parsed_at":"2022-08-21T07:50:17.865Z","dependency_job_id":null,"html_url":"https://github.com/aqlx86/sms-otp","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"purl":"pkg:github/aqlx86/sms-otp","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aqlx86%2Fsms-otp","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aqlx86%2Fsms-otp/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aqlx86%2Fsms-otp/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aqlx86%2Fsms-otp/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/aqlx86","download_url":"https://codeload.github.com/aqlx86/sms-otp/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/aqlx86%2Fsms-otp/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261528654,"owners_count":23172749,"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":["isms","laravel","otp","sms"],"created_at":"2024-12-09T06:05:36.433Z","updated_at":"2025-06-23T18:06:32.931Z","avatar_url":"https://github.com/aqlx86.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Introduction\nSMS OTP for Laravel 5. By default this uses iSMS as SMS provider.\n\n## Installation\nAdd sms-otp to your composer.json file:\n\n```\ncomposer.phar require \"aqlx86/sms-otp\"\n```\n\nAdd the service provider to your Laravel application config/app.php:\n\n```PHP\nSMSOTP\\SMSOTPServiceProvider::class\n```\n\n## Publish\n```\nphp artisan vendor:publish --provider=\"SMSOTP\\SMSOTPServiceProvider\"\nphp artisan migrate\n```\n\n## Usage\n\n\nTo send OTP, remember to include `:code` this will be replaced with the actual code.\n```\n$sender = app()-\u003emake(OTPSender::class);\n$sender-\u003esend('6399512345678', 'holy shit your otp code is :code');\n```\n\nTo verify OTP code\n```\n$verifier = app()-\u003emake(OTPVerifier::class);\n$verifier-\u003everify('6399512345678', 'A44E8');\n```\n\n\n## Extending\n\n### Using other SMS provider\n\nCreate your sms provider\n```\nclass CustomSMSProvider implemnts SMSOTP\\Contract\\SMSGateway\n{\n    public function send($number, $message)\n    {\n        // your implemention\n    }\n}\n```\n\nUpdate configuration ```config/smsotp.php```\n\n```\n'sms' =\u003e CustomSMSProvider::class,\n```\n\n### Generating your own OTP code\nDo the same as creating your own SMS provider.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faqlx86%2Fsms-otp","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Faqlx86%2Fsms-otp","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Faqlx86%2Fsms-otp/lists"}