php-forge/helpers 问题修复 & 功能扩展

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

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

php-forge/helpers

最新稳定版本:0.1.0

Composer 安装命令:

composer require php-forge/helpers

包简介

Collection of Helper for PHP.

README 文档

README

Collection of Helper for PHP.


PHPUnit Codecov Infection Psalm Psalm Coverage StyleCI

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

PHP81

License

The MIT License (MIT). Please see License File for more information.

Our social networks

Twitter

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: mit
  • 更新时间: 2023-07-16