# php-verifycode **Repository Path**: liuxiaojinla/php-verifycode ## Basic Information - **Project Name**: php-verifycode - **Description**: 验证码库 - **Primary Language**: Unknown - **License**: Apache-2.0 - **Default Branch**: main - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2024-12-09 - **Last Updated**: 2025-03-31 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # VerifyCode | 验证码 ## 介绍 一个用于快速集成短信和邮件验证码功能的 Composer 包,帮助开发者在业务系统中轻松实现验证码的生成、发送和验证。 ## 安装教程 `composer require xin/verifycode` ## 使用说明 **配置文件 config.php** ```php [ 'driver' => 'default' ], // 驱动列表 'drivers' => [ // 短信验证码 'default' => [ 'driver' => 'sms', 'sms' => 'aliyun', 'template' => '', 'table' => 'verify_code' ] ] ]; ``` 实例化管理器 ```php make($identifier,'login'); // 验证验证码 $verifyCodeManager->verify($identifier,'login'); ```