drago-ex / utils
Extended ArrayHash with additional methods for converting data to arrays, including support for uppercase keys.
v1.0.5
2025-12-27 21:23 UTC
Requires
- php: >=8.3 <9
- nette/utils: ^4.0
Requires (Dev)
- nette/bootstrap: ^3.2
- nette/tester: ^2.5
- phpstan/phpstan-nette: ^1.2.9
- tracy/tracy: ^2.10
README
This package includes several utility classes for working with arrays, case conversions, and handling database-related tasks.
Requirements
- PHP >= 8.3
- Nette Framework
- Composer
Installation
composer require drago-ex/utils
Methods:
Converts the internal data of the ExtraArrayHash object into a simple PHP array.
$data->toArray();
Converts the internal data of the ExtraArrayHash object into a PHP array with all keys transformed to uppercase.
$data->toArrayUpper();
Converts a string from CamelCase to snake_case. This method is useful for converting variable or method names commonly used in programming languages.
CaseConverter::snakeCase(...)