定制 daycode/charable 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

daycode/charable

最新稳定版本:v1.0.1

Composer 安装命令:

composer require daycode/charable

包简介

Get expected return value from char such as Alphabetic, Alphanumeric, Digit, Upper and Lower Case

README 文档

README

Get expected return value from char such as Alphabetic, Alphanumeric, Digit, Upper and Lower Case.

Installation Guide

composer require daycode/charable

Update to the newest laravel project vendor

composer update

Go to config/app.php, then put these code on service providers

'providers' => [
    /*
    * Package Service Providers...
    */
    DayCod\Charable\CharableServiceProvider::class,
],

Put this code also on the class aliases

'aliases' => [
    /*
    * Class Aliases
    */
    'Charable'=> DayCod\Charable\Charable::class,
],

Last, for make sure this package installed correctly.

composer dump-autoload && php artisan optimize:clear

Usage Guide

Get Only Alphabet

Charable::getOnlyAlphabet(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: abcdef

Get Only Number or Digit

Charable::getOnlyNumberOrDigit(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: 1230

Get Only Lower Alphabet

Charable::getOnlyLowerAlphabet(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: abcdef

Get Only Upper Alphabet

Charable::getOnlyUpperAlphabet(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: ""

Get Only Alphabet Numeric

Charable::getOnlyAlphabetNumeric(string $char, bool $remove_whitespace = false);

// ex: 123abcdef*&^0
// return: 123abcdef0

Credits

Tested on

Release Supported Versions
Laravel Charable 1.0.0 Laravel 8/9/10

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-07-15