Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jhonoryza/recaptcha-v3
https://github.com/jhonoryza/recaptcha-v3
Last synced: about 1 month ago
JSON representation
- Host: GitHub
- URL: https://github.com/jhonoryza/recaptcha-v3
- Owner: jhonoryza
- License: mit
- Created: 2024-06-21T06:56:08.000Z (6 months ago)
- Default Branch: main
- Last Pushed: 2024-07-25T03:38:33.000Z (5 months ago)
- Last Synced: 2024-07-25T04:43:28.354Z (5 months ago)
- Language: PHP
- Size: 38.1 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
Laravel ReCaptcha V3
This package just provide backend validation rule for google recaptcha v3
## Features
- Lightweight
- Simple & easy to use
- Support Laravel version >= 10
- Recaptcha validation rules## Installation
```bash
composer require jhonoryza/recaptcha-v3
```publish config file
```bash
php artisan vendor:publish --tag=recaptcha-v3-config
```## Usage
add `Recaptcha` rule to validation
```php
validate([
'email' => ['required', 'max:100','email'],
'password' => ['required', 'max:100'],
'captcha_token' => [new Recaptcha],
])}
```update `.env` file, add you own recaptcha from [here](https://www.google.com/recaptcha/about)
```php
GOOGLE_RECAPTCHA_SITE_KEY=
GOOGLE_RECAPTCHA_SECRET_SITE_KEY=
GOOGLE_RECAPTCHA_MIN_SCORE=0.5
GOOGLE_RECAPTCHA_URL="https://www.google.com/recaptcha/api/siteverify"
```### Security
If you've found a bug regarding security please mail [[email protected]](mailto:[email protected]) instead of
using the issue tracker.## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.