{"id":15562352,"url":"https://github.com/mohammadv184/arcaptcha","last_synced_at":"2025-04-23T23:11:21.507Z","repository":{"id":37543407,"uuid":"392442213","full_name":"mohammadv184/arcaptcha","owner":"mohammadv184","description":"PHP library for ArCaptcha","archived":false,"fork":false,"pushed_at":"2023-04-19T19:46:17.000Z","size":92,"stargazers_count":10,"open_issues_count":3,"forks_count":3,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-27T02:08:03.728Z","etag":null,"topics":["arcaptcha","captcha","persian-captcha","php","php-captcha","php-library"],"latest_commit_sha":null,"homepage":"https://arcaptcha.ir","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/mohammadv184.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":"2021-08-03T20:07:39.000Z","updated_at":"2022-08-12T11:08:27.000Z","dependencies_parsed_at":"2025-03-06T19:31:12.350Z","dependency_job_id":"1506eb67-5aed-40e6-a296-d00706196b12","html_url":"https://github.com/mohammadv184/arcaptcha","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadv184%2Farcaptcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadv184%2Farcaptcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadv184%2Farcaptcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/mohammadv184%2Farcaptcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/mohammadv184","download_url":"https://codeload.github.com/mohammadv184/arcaptcha/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250528868,"owners_count":21445517,"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":["arcaptcha","captcha","persian-captcha","php","php-captcha","php-library"],"created_at":"2024-10-02T16:13:38.141Z","updated_at":"2025-04-23T23:11:21.480Z","avatar_url":"https://github.com/mohammadv184.png","language":"PHP","readme":"# PHP ArCaptcha Library\n\n\n[![Latest Stable Version](http://poser.pugx.org/mohammadv184/arcaptcha/v)](https://packagist.org/packages/mohammadv184/arcaptcha) \n[![Total Downloads](http://poser.pugx.org/mohammadv184/arcaptcha/downloads)](https://packagist.org/packages/mohammadv184/arcaptcha) \n[![Latest Unstable Version](http://poser.pugx.org/mohammadv184/arcaptcha/v/unstable)](https://packagist.org/packages/mohammadv184/arcaptcha)\n[![Build Status](https://travis-ci.com/mohammadv184/arcaptcha.svg?branch=main)](https://travis-ci.com/mohammadv184/arcaptcha)\n[![License](http://poser.pugx.org/mohammadv184/arcaptcha/license)](https://packagist.org/packages/mohammadv184/arcaptcha)\n\nPHP library for ArCaptcha.\nThis package supports `PHP 7.3+`.\n\n# List of contents\n\n- [PHP ArCaptcha Library](#PHP-ArCaptcha-Library)\n- [List of contents](#list-of-contents)\n    - [Installation](#Installation)\n    - [Configuration](#Configuration)\n    - [How to use](#how-to-use)\n        - [Widget usage](#Widget-usage)\n        - [Verifying a response](#Verifying-a-response)\n    - [Credits](#credits)\n    - [License](#license)\n\n## Installation\n\nRequire this package with composer:\n\n```bash\ncomposer require mohammadv184/arcaptcha\n```\n\n## Configuration\n\nYou can create a new instance by passing the SiteKey and SecretKey from your API.\nYou can get that at https://arcaptcha.ir/dashboard\n\n```php\nuse Mohammadv184\\ArCaptcha\\ArCaptcha;\n\n$ArCaptcha = new ArCaptcha($siteKey, $secretKey);\n```\n## How to use\n\nHow to use ArCaptcha.\n\n### Widget usage\n\nTo show the ArCaptcha on a form, use the class to render the script tag and the widget.\n\n```php\n\u003c?php echo $ArCaptcha-\u003egetScript() ?\u003e\n\u003cform method=\"POST\"\u003e\n    \u003c?php echo $ArCaptcha-\u003egetWidget() ?\u003e\n    \u003cinput type=\"submit\" value=\"Submit\" /\u003e\n\u003c/form\u003e\n```\n\n### Verifying a response\n\nAfter the post, use the class to verify the response. \nYou get true or false back:\n```php\nif ($ArCaptcha-\u003everify($_POST[\"arcaptcha-token\"])) {\n    echo \"OK!\";\n} else {\n    echo \"FAILED!\";\n}\n```\n## Credits\n\n- [Mohammad Abbasi](https://github.com/mohammadv184)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE) for more information.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadv184%2Farcaptcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmohammadv184%2Farcaptcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmohammadv184%2Farcaptcha/lists"}