定制 atiksoftware/php-class-cover 二次开发

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

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

atiksoftware/php-class-cover

Composer 安装命令:

composer require atiksoftware/php-class-cover

包简介

PHP text,number,array format vs

README 文档

README

PHP Text and Array modifier.

Installation

Using Composer

composer require atiksoftware/php-class-cover
require __DIR__.'/../vendor/autoload.php';

use \Atiksoftware\Cover\Text;
use \Atiksoftware\Cover\Arr;

Text Functions

echo Text::toHex(100000); # 186A0
echo "\n";

echo Text::toDec(AFAAB); # 719531
echo "\n";

echo Text::toUpper("mansur atik"); # MANSUR ATİK
echo "\n";

echo Text::toLower("MANSUR ATİK"); # mansur atik
echo "\n";

echo Text::toUpFirst("MANSUR ATİK"); # Mansur Atik
echo "\n";

echo Text::fixChars("Üzümü ye bağını sorma"); # Uzumu ye bagini sorma
echo "\n";

echo Text::clearSpecialChars("Amiral & Bristol ! _"); # Amiral  Bristol
echo "\n";

echo Text::Truncate("Lorem ipsum dolor sit amet, consectetur adipisicing elit.",30); # Lorem ipsum dolor sit amet, consectetur
echo "\n";

echo Text::formatFirstName("mansur"); # Mansur
echo "\n";

echo Text::formatLastName("atik"); # ATİK
echo "\n";

echo Text::formatFullName("mansur amiral atik"); # Mansur Amiral ATİK
echo "\n";

echo Text::formatPhone("6325252"); # 632-5252
echo "\n";

echo Text::formatPhone("2642655254"); # 0264 265 5254
echo "\n";

echo Text::formatPhone("5414855652"); # 0541 485 5652
echo "\n";

Array Functions

$example = [
    "user" => [
        "fname" => "Mansur",
        "lname" => "ATİK",
        "age"   => 24,
        "props" => [
            "auths" => [
                "insert" => true,
                "update" => true,
                "delete" => true,
            ],
            "langs" => [
                "tr",
                "en",
                "ar"
            ]
        ]
    ]
];

echo Arr::Not($example,"user.fname"); # Mansur
echo "\n";

Arr::Not($example,"user.props.auths.select",true);
print_r(Arr::Not($example,"user.props.auths"));
// "auths" => [
//     "insert" => true,
//     "update" => true,
//     "delete" => true,
//     "select" => true,
// ],
echo "\n";

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2018-09-05

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固