floor9design/character-humaniser 问题修复 & 功能扩展

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

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

floor9design/character-humaniser

Composer 安装命令:

composer require floor9design/character-humaniser

包简介

Turns difficult strings into easy to read strings ideal for sharing

README 文档

README

Latest Version Packagist Software License

Build Status Code Coverage

Github Downloads Packagist Downloads

A class that offers quick ways to make confusing/complex strings readable, for example passwords

Introduction

Passwords often give confusing/difficult outputs. For example: lower case l (lima) and upper case i (indigo) are similar in many fonts, and symbols such as tilde have names that are often unknown or difficult to remember.

For example:

$password = 'lIaA3~';

... can be easily translated to:

$password_humanised = 'lima INDIGO alpha ALPHA three tilde';

Features

Latest Version Packagist

The CharacterHumaniser class offers:

  • array and string output for easy display
  • catches unexpected characters
  • ability to add your own custom definitions to undefined symbols/letters

As a bonus, there is a joke class: BadCharacterHumaniser which does a funny but awful attempt at the same:

$password = '$aX3k';
// can be badly converted to:
$password_humanised = 'benjamins aether XYLOPHONE cup of tea knife';

Install

Via Composer/packagist

Packagist Downloads

composer require floor9design/character-humaniser

Via git

Github Downloads

git clone https://github.com/floor9design-ltd/character-humaniser.git

Or:

git clone git@github.com:floor9design-ltd/character-humaniser.git

Usage

This is discussed in the usage document.

Recommended

The following related class has a great password generating function:

Setup

There are no specific config setup steps required. The class should autoload in PSR-4 compliant systems. If you are using the class on its own, simply include it however is most appropriate.

Testing

Build Status Code Coverage

Tests can be run as follows:

  • ./vendor/phpunit/phpunit/phpunit

The following tests and also creates code coverage (usually maintained at 100%)

  • ./vendor/phpunit/phpunit/phpunit --coverage-html docs/tests/

Static analysis/code review can be performed by using phpstan:

  • ./vendor/bin/phpstan

Credits

Changelog

A changelog is generated here:

License

This software is available under the MIT licence.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-03-30

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固