ircop/passworder 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

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

ircop/passworder

最新稳定版本:v0.1.3

Composer 安装命令:

composer require ircop/passworder

包简介

Human-readable password generator

README 文档

README

Generates password from 2 parts: first is random, but well-readable string, seocnd is a word from dictionary.

All options are in config file:

  • random_uppercase: make several letters uppercase [true/false]
  • uppercase_chance: chance to make letter uppercase. Applies for each letter. [0-9]
  • add_numbers: add or not numbers to password (to the end of both parts). [true/false]
  • number_chance: chance to add number [0-9]
  • words => [] : dictionary.

Install

1: install via composer:

composer require ircop/passworder

2: add service provider:

Open config/app.php, and add to the providers array:

Ircop\Passworder\PassworderServiceProvider::class,

3: add facade alias:

In the config/app.php. add to the aliases array:

'Passworder' => Ircop\Passworder\Facade\Passworder::class,

4: Publishing config:

Run in the console:

./artisan vendor:publish --provider="Ircop\Passworder\PassworderServiceProvider"

Config will be moved to /config/passworder.php

Usage examples:

Code:

for( $i=0; $i<10; $i++ ) {
      echo \Passworder::gen()."<br>";
  }

Config:

    'random_uppercase' => true,
    'uppercase_chance' => 1,        # 0-9
    'add_numbers' => true,
    'number_chance' => 5,           # 0-9
    'delimeters'  => '-_!@%.#',

Output:

sobmu.heat
Rupke4.print
bistO2-doubt
penga#agree
TambU8#papeR6
RamdA!woman
tebPU-sleep
dogke.wOuNd4
Todki!linen
nanrO.WoRk6

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPLv2
  • 更新时间: 2015-11-12

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固