承接 steno983/email_hint 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

steno983/email_hint

Composer 安装命令:

composer require steno983/email_hint

包简介

hint email

README 文档

README

EmailHint is a package designed for Laravel that provides correction suggestions for email addresses entered with typing errors. It uses the Levenshtein algorithm to determine the similarity between the entered email and a set of common email domains, suggesting appropriate corrections.

Installation

To install the package, use Composer:

composer require steno983/emailhint

After installing the package, you can publish the configuration file (if necessary) with:

php artisan vendor:publish --provider="Steno983\EmailHint\EmailHintServiceProvider"

Configuration

After publishing the configuration file, you can modify the settings in the config/emailhint.php file. Here you can define the list of common email domains and set other configurations such as the Levenshtein threshold and domain to exclude from the check process.

Usage

To use EmailHint, you can rely on the EmailHintService service. Here's an example:

use Steno983\EmailHint\Services\EmailHintService;

$email = 'example@gmial.com';
$suggestedEmail = EmailHintService::hint($email);

if ($suggestedEmail) {
    echo "Did you mean: $suggestedEmail";
} else {
    echo "No suggestion available.";
}

Features

  • Suggestions for correcting common errors in email addresses.
  • Customization of common email domains through the configuration file.
  • Customization of the tolerance level for the Levenshtein distance.

Contributing

Contributions to the package are welcome! Please follow the contribution guidelines:

  • Fork the repository.
  • Create a new branch for each feature or improvement.
  • Submit a pull request with a detailed description.

License

The EmailHint package is released under the MIT License.

统计信息

  • 总下载量: 0
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 0
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 0
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2024-01-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固