{"id":37006304,"url":"https://github.com/creatint/laravel-captcha","last_synced_at":"2026-01-14T00:45:10.132Z","repository":{"id":56958905,"uuid":"185126889","full_name":"creatint/laravel-captcha","owner":"creatint","description":"Captcha for Laravel5.8+","archived":false,"fork":false,"pushed_at":"2019-05-06T16:25:01.000Z","size":653,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-12-19T00:17:53.814Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/creatint.png","metadata":{"files":{"readme":"README.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":"2019-05-06T05:06:21.000Z","updated_at":"2019-05-06T16:24:43.000Z","dependencies_parsed_at":"2022-08-21T09:50:30.455Z","dependency_job_id":null,"html_url":"https://github.com/creatint/laravel-captcha","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/creatint/laravel-captcha","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creatint%2Flaravel-captcha","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creatint%2Flaravel-captcha/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creatint%2Flaravel-captcha/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creatint%2Flaravel-captcha/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/creatint","download_url":"https://codeload.github.com/creatint/laravel-captcha/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/creatint%2Flaravel-captcha/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28406520,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T21:51:37.118Z","status":"ssl_error","status_checked_at":"2026-01-13T21:45:14.585Z","response_time":56,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":"2026-01-14T00:45:09.407Z","updated_at":"2026-01-14T00:45:10.117Z","avatar_url":"https://github.com/creatint.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Captcha for Laravel 5\n\nInspired by [mews/captcha](https://packagist.org/packages/mews/captcha)\n\n## Preview\n![Preview](https://image.ibb.co/kZxMLm/image.png)\n\n## Installation\nThe Captcha Service Provider can be installed via [Composer](http://getcomposer.org) by requiring the\n`mews/captcha` package and setting the `minimum-stability` to `dev` (required for Laravel 5) in your\nproject's `composer.json`.\n\n```json\n{\n    \"require\": {\n        \"laravel/framework\": \"5.0.*\",\n        \"creatint/captcha\": \"dev\"\n    },\n    \"minimum-stability\": \"dev\"\n}\n```\n\nor\n\nRequire this package with composer:\n```\ncomposer require creatint/captcha\n```\n\nUpdate your packages with ```composer update``` or install with ```composer install```.\n\nIn Windows, you'll need to include the GD2 DLL `php_gd2.dll` in php.ini. And you also need include `php_fileinfo.dll` and `php_mbstring.dll` to fit the requirements of `mews/captcha`'s dependencies.\n\n\n\n## Usage\n\nTo use the Captcha Service Provider, you must register the provider when bootstrapping your Laravel application. There are\nessentially two ways to do this.\n\nFind the `providers` key in `config/app.php` and register the Captcha Service Provider.\n\n```php\n    'providers' =\u003e [\n        // ...\n        'Creatint\\Captcha\\CaptchaServiceProvider',\n    ]\n```\nfor Laravel 5.1+\n```php\n    'providers' =\u003e [\n        // ...\n        Creatint\\Captcha\\CaptchaServiceProvider::class,\n    ]\n```\n\nFind the `aliases` key in `config/app.php`.\n\n```php\n    'aliases' =\u003e [\n        // ...\n        'Captcha' =\u003e 'Creatint\\Captcha\\Facades\\Captcha',\n    ]\n```\nfor Laravel 5.1+\n```php\n    'aliases' =\u003e [\n        // ...\n        'Captcha' =\u003e Creatint\\Captcha\\Facades\\Captcha::class,\n    ]\n```\n\n\n## Configuration\n\nTo use your own settings, publish config.\n\n```$ php artisan vendor:publish```\n\n`config/captcha.php`\n\n```php\nreturn [\n    'default'   =\u003e [\n        'length'    =\u003e 5,\n        'width'     =\u003e 120,\n        'height'    =\u003e 36,\n        'quality'   =\u003e 90,\n        'math'      =\u003e true, //Enable Math Captcha\n    ],\n    // ...\n];\n```\n\n## Example Usage\n```php\n\n    // [your site path]/Http/routes.php\n    Route::any('captcha-test', function() {\n        if (request()-\u003egetMethod() == 'POST') {\n            $rules = ['captcha' =\u003e 'required|captcha'];\n            $validator = validator()-\u003emake(request()-\u003eall(), $rules);\n            if ($validator-\u003efails()) {\n                echo '\u003cp style=\"color: #ff0000;\"\u003eIncorrect!\u003c/p\u003e';\n            } else {\n                echo '\u003cp style=\"color: #00ff30;\"\u003eMatched :)\u003c/p\u003e';\n            }\n        }\n    \n        $form = '\u003cform method=\"post\" action=\"captcha-test\"\u003e';\n        $form .= '\u003cinput type=\"hidden\" name=\"_token\" value=\"' . csrf_token() . '\"\u003e';\n        $form .= '\u003cp\u003e' . captcha_img() . '\u003c/p\u003e';\n        $form .= '\u003cp\u003e\u003cinput type=\"text\" name=\"captcha\"\u003e\u003c/p\u003e';\n        $form .= '\u003cp\u003e\u003cbutton type=\"submit\" name=\"check\"\u003eCheck\u003c/button\u003e\u003c/p\u003e';\n        $form .= '\u003c/form\u003e';\n        return $form;\n    });\n```\n\n# Return Image\n```php\ncaptcha();\n```\nor\n```php\nCaptcha::create();\n```\n\n\n# Return URL\n```php\ncaptcha_src();\n```\nor\n```\nCaptcha::src();\n```\n\n# Return HTML\n```php\ncaptcha_img();\n```\nor\n```php\nCaptcha::img();\n```\n\n# To use different configurations\n```php\ncaptcha_img('flat');\n\nCaptcha::img('inverse');\n```\netc.\n\nBased on [Intervention Image](https://github.com/Intervention/image)\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreatint%2Flaravel-captcha","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcreatint%2Flaravel-captcha","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcreatint%2Flaravel-captcha/lists"}