承接 ph-7/passcode-password-generator 相关项目开发

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

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

ph-7/passcode-password-generator

最新稳定版本:v2.0.9

Composer 安装命令:

composer require ph-7/passcode-password-generator

包简介

A simple way to generate random cryptographically secure passcodes and passwords

README 文档

README

???? Description

A simple, secure & clean way to generate random passcodes and passwords ????

The library generates cryptographically secure random passwords and passcodes.

Ko Fi - Offer Me A Coffee

???? Server Requirement

???? Installation (with Composer)

composer require ph-7/passcode-password-generator

???? Usage

For Passcodes

use PH7\Generator\Passcode; echo Passcode::generate(10); // Generate a 10-length passcode

By default, without argument, the function will generate a 6-character passcode.

use PH7\Generator\Passcode; // By default, it generates a 6 length passcode echo Passcode::generate(); // You can use the public `Passcode::DEFAULT_LENGTH` const, whcih also gives a 6-length passcode echo Passcode::generate(Passcode::DEFAULT_LENGTH);

For Passwords

use PH7\Generator\Password; echo Password::generate(16); // Generate a 16-length password

By default, generated passwords will contain special characters. You can disable them by mentioning the second argument to false

use PH7\Generator\Password; // The password won't contain any special characters such as -, _, ~, |, %, ^, !, $, #, @, and ? echo Password::generate(Password::DEFAULT_LENGTH, false);

Without argument, the function will generate a 12-character password.

use PH7\Generator\Password; // By default, it generates a 12-length password echo Password::generate(); // Password::DEFAULT_LENGTH also gives a 12-length password echo Password::generate(Password::DEFAULT_LENGTH);

???? Who cooked it?

Pierre-Henry Soria

@phenrysay pH-7 YouTube Tech Videos

Pierre-Henry Soria, a highly passionate, zen & pragmatic software engineer ????

☕️ Would like to help? Offer me a coffee, and boost the maintenance of this library! ????

⚖️ License

PHP Passcode/Password Generator is generously distributed under the MIT ????

统计信息

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

GitHub 信息

  • Stars: 11
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2026-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固