php-forge/helpers
最新稳定版本:0.1.0
Composer 安装命令:
composer require php-forge/helpers
包简介
Collection of Helper for PHP.
关键字:
README 文档
README
Collection of Helper for PHP.
Installation
The preferred way to install this extension is through composer.
Either run
composer require --prefer-dist php-forge/helpers:"^0.1"
or add
"php-forge/helpers": "^0.1"
Usage
The repository contains a collection of utility functions designed to simplify common programming tasks in PHP.
Whether you're working on web development, data processing, or other projects, these helper functions can save you time and effort.
Converts a camelCase formatted string to snake_case
<?php declare(strict_types=1); use PHPForge\Helper\WordFormatter; $word = WordFormatter::camelCaseToSnakeCase('date_birth');
Convert a snake_case formatted string to camelCase
<?php declare(strict_types=1); use PHPForge\Helper\WordFormatter; $word = WordFormatter::snakeCaseToCamelCase('date_birth');
Converts a string to words with capitalized first letters
<?php declare(strict_types=1); use PHPForge\Helper\WordFormatter; $word = WordFormatter::capitalizeToWords('Date Birth');
Generate ramdon pasword
<?php declare(strict_types=1); use PHPForge\Helper\Password; $password = Password::generate(8);
Get all timezones
<?php declare(strict_types=1); use PHPForge\Helper\Timezone; $timezones = Timezone::getAll();
Testing
Check the documentation testing to learn about testing.
Support versions
License
The MIT License (MIT). Please see License File for more information.
Our social networks
统计信息
- 总下载量: 4.98k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 7
- 推荐数: 0
其他信息
- 授权协议: mit
- 更新时间: 2023-07-16