Download the PHP package isszz/think-scaptcha without Composer

On this page you can find all versions of the php package isszz/think-scaptcha. 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 think-scaptcha

think-scaptcha

使用PHP生成SVG格式的验证码
需要PHP大于8.0
支持thinkphp6以及thinkphp8
现已支持缓存字形,提高了在字体文件过大,导致生成验证码过慢的问题

Minimum PHP Version Minimum Thinkphp Version Stable Version Total Downloads License

避坑

安装

如果需要添加字体,放入tp根目录下config/fonts目录即可,更改配置fontName=字体文件名

配置

支持的url参数配置

url配置参数优先级最高

使用方法

composer安装后可直接访问/scaptcha路径访问验证码,默认获取的是json格式:

访问/scaptcha/svg时获取到的是可渲染的svg:

非必要情况,可使用组件自己注册的路由地址使用

快捷助手函数

tp模板文件中使用

或者

如果是API方式调用

若需要自行在控制器输出验证码🌰

验证

使用组件注册的验证地址验证

使用组件注册好的验证器规则,在控制器中验证

或者手动验证

本组件基于以下开源库


All versions of think-scaptcha with dependencies

PHP Build Version
Package Version
Requires php Version >=8.0.0
ext-mbstring Version *
topthink/framework Version 8.*
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 isszz/think-scaptcha contains the following files

Loading the files please wait ....