Download the PHP package levi/laravel-rotate-captcha without Composer

On this page you can find all versions of the php package levi/laravel-rotate-captcha. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-rotate-captcha

logo

Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

一个开箱即用的滑动验证码Laravel扩展,基于[isszz/rotate-captcha]做的二次开发;结合了腾讯防水墙,增加安全策略,查看:设计思路;提供了React前端开源组件

前端推荐使用React组件库:cgfeel/react-rotate-captcha,[安装]、[使用]、[接口],更多资源见底部相关产品

image

🎙️ 演示 (Demo)

以下演示全部都一样,分别展示了多主题,多语言、多个唤起方式;在不同的环境下的演示,可根据自己的情况选择一个环境查看演示和演示的代码

视频演示:

https://github.com/cgfeel/laravel-rotate-captcha/assets/578141/afa169d1-05c3-43d6-b7e7-cabaa8c5dbc5

📦 安装 (Installation)

安装此包你需要:

通过composer命令行进行安装:

或者将下面的配置添加到composer.json并执行composer update

🎛️ 设置 (Configuration)

迁移配置文件、语言包、附件图

添加中间件,修改App\Http\Kernelprotected $middlewareAliases中添加

🔨 使用 (Usage)

默认开箱即用

提供了5个路由、1个中间件、1个控制器

url router name method usage
/rotate.captcha rotate.captcha.get GET 获取验证信息
/rotate.captcha/{id} rotate.captcha.load GET 获取验证图片
/rotate.captcha/verify/{angle}/{token?} rotate.captcha.verify GET 验证信息
/rotate.captcha/verify/{angle}/{token?} rotate.captcha.verify OPTIONS 跨域提交验证信息
/rotate.captcha rotate.captcha.store POST 获取验证信息,见注1
/rotate.captcha/test/action rotate.captcha.test any 权限测试,默认仅供本次测试

客户端请求和接受的数据,见react-rotate-captcha [查看]

手动设置

手动设置不是必须的,仅针对有定制需求的用户

仅修改中间件: 增加或修改中间件处理请求和响应的数据,修改配置配置config/rotate.captcha.phpmiddleware

完全自定义: 关闭默认提供的路由和控制器

🏞️ 更新验证图片 (Updating)

手动更新: 目录位置\storage\app\{rotate.captcha},其中存储引擎和位置可在配置文件中修改。

自动更新:

请通过在线的图床接口,在Laravel调度App\Console\Kernelschedule方法里添加定时抓取,这里提供一个存储的方法作为参考:

安全系数:风景图 > 人物图 > 卡通图片,但不建议使用bing每日一图作为验证图片,因为验证的图片每天都是固定的,拿来比对就能得出结果

🗑️ 清理过期图片 (Cleanup)

请在Laravel调度App\Console\Kernelschedule方法里添加定期清理,以下为参考示例:

🕸️ 跨域 (Cors)

根据情况设置,以下仅供参考,修改config/cors.php

🗃️ 缓存 (Cache)

用于存储验证信息,默认按照Laravel缓存配置config/cache.php默认引擎file

🗄️ 文件驱动 (Disk)

用于存储验证图片,默认按照Laravel文件配置config/filesystem.php默认引擎local

👩‍🎤 多语言 (Language)

提供中文和英文,默认按照Laravel语言配置config/app.php配置为en

🚀 服务对象 (Server)

具体请查看文档:服务对象

🧪 单元测试 (PHPUnit)

在根目录phpunit.xml中添加一组测试,如下:

执行./artisan test

🛃 策略 (Policie)

由两部分组成: policie默认策略,rules策略组规则

策略规则:

这里的路由是指验证通过后,要执行操作的路由,而不是验证操作时的路由

原理:

优点:

🛟 设计思路 (Design)

高级用法:

New Board

✂️ 物料 (Material)

即时设计的向量稿件,包含组件设计规范:查看

911700882740_ pic

🗓️ 更新日志 (Changelog)

具体请查看文档:更新日志

🔗 相关产品 (Product)

react前端组件

推荐使用:cgfeel/react-rotate-captcha,[安装]、[使用]、[接口]

isszz/rotate-captcha

第三方仓库,提供了react和laravel之外的生态扩展 [点击打开]

包含:


All versions of laravel-rotate-captcha with dependencies

PHP Build Version
Package Version
Requires laravel/framework Version ^9.0|^10.0
php Version >=8.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package levi/laravel-rotate-captcha contains the following files

Loading the files please wait ....