Download the PHP package artisanbarista/laravel-altcha without Composer
On this page you can find all versions of the php package artisanbarista/laravel-altcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download artisanbarista/laravel-altcha
More information about artisanbarista/laravel-altcha
Files in artisanbarista/laravel-altcha
Package laravel-altcha
Short Description A Laravel server implementation for Altcha.
License MIT
Homepage https://github.com/artisanbarista/laravel-altcha
Informations about the package laravel-altcha
Laravel Altcha.
This is a Laravel implementation for the server-side of Altcha, a proof-of-work captcha that does not require any third-party service.
Installation
You can install the package via composer:
Optionally, publish the config file with:
Usage
In .env
(or published config file), set the following variables:
Out of the box, the package registers a /altcha-challenge
endpoint to use you on your frontend.
Frontend
Following the frontend integration, use the following snippet to get a challenge:
Implementation will be different given your frontend, but here's an example Vue component to use:
In an Inertja.js form, you could use this component like so:
Backend validation
To validate the frontend-generated token/payload, there's a ValidAltcha
rule you can use, assuming the token is passed as token
in the request:
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Grant Holle
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-altcha with dependencies
spatie/laravel-package-tools Version ^1.14.0
illuminate/contracts Version ^10.0|^11.0