php-forge / helpers
Collection of Helper for PHP.
Installs: 4 949
Dependents: 7
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 0
Open Issues: 0
Requires
- php: ^8.1
Requires (Dev)
- maglnet/composer-require-checker: ^4.7
- phpunit/phpunit: ^10.5
- roave/infection-static-analysis-plugin: ^1.34
- symplify/easy-coding-standard: ^12.1
- vimeo/psalm: ^5.20
This package is auto-updated.
Last update: 2024-10-25 15:19:06 UTC
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.