{"id":20331258,"url":"https://github.com/devzstudio/authpin-php","last_synced_at":"2026-05-09T11:36:07.107Z","repository":{"id":104265246,"uuid":"69036404","full_name":"Devzstudio/AuthPin-PHP","owner":"Devzstudio","description":"AuthPin PHP Class","archived":false,"fork":false,"pushed_at":"2016-09-23T15:49:53.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-01-14T15:25:20.085Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.authpin.com","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Devzstudio.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":"2016-09-23T15:17:27.000Z","updated_at":"2016-09-25T16:56:19.000Z","dependencies_parsed_at":"2023-03-22T11:49:30.424Z","dependency_job_id":null,"html_url":"https://github.com/Devzstudio/AuthPin-PHP","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devzstudio%2FAuthPin-PHP","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devzstudio%2FAuthPin-PHP/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devzstudio%2FAuthPin-PHP/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Devzstudio%2FAuthPin-PHP/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Devzstudio","download_url":"https://codeload.github.com/Devzstudio/AuthPin-PHP/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241846198,"owners_count":20030013,"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":[],"created_at":"2024-11-14T20:19:24.799Z","updated_at":"2025-12-02T11:04:37.456Z","avatar_url":"https://github.com/Devzstudio.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":" \u003ccenter\u003e\u003cimg src=\"https://authpin.com/brand/authpin-4.svg\" width=\"902px\" height=\"150px\"\u003e\u003c/center\u003e\n\n# Installation\n * Obtain API Key from https://www.authpin.com\u003cbr\u003e\n * Include authpin.class.php in your script. \u003cbr\u003e\n * Check example.php for basic usage.\u003cbr\u003e\n\n \n \n# Usage\n\nInclude authpinclass.php class and create object \u003cbr\u003e\n\n```php\n$api = \"\";\nrequire_once(authpin.class.php);\n$authpin = new AuthPin($api);\n```\n\n# Two-Factor Registeration\n\n```php\n// Returns the QR code. Your user can scan this QR using AuthPin app / Website.\n$email = \"dev@authpin.com\";\necho $authpin-\u003eregister($email);\n```\n\n# Two-Factor Verification\n\n```php\n$pin = \"1234\";\nif($authpin-\u003everify($pin,$email))\n{\n echo \"Valid Pin\";\n}\nelse \n{\n echo \"Invalid Pin\";\n}\n```\n\n# SMS OTP\n\n```php\n// Send OTP to phone\n// Hash will be returned after OTP send . You need to pass the hash to verify the SMS\n$phone=\"9xxxxxxxxx\";\n$country = \"IN\";\n$hash = $authpin-\u003esendOTP($phone,$county);\n```\n\n# SMS OTP Verification\n\n\n```php\n$smscode = \"1234\";\nif($authpin-\u003everifyotp( $smscode , $hash))\n{\n echo \"Valid OTP\";\n}\nelse \n{\n echo \"Invalid OTP\";\n}\n\n```\n\n# API Info\n\nhttps://authpin.com/developer\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevzstudio%2Fauthpin-php","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevzstudio%2Fauthpin-php","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevzstudio%2Fauthpin-php/lists"}