https://github.com/drago-ex/utils
:hammer: Extended ArrayHash with additional methods for converting data to arrays, including support for uppercase keys.
https://github.com/drago-ex/utils
nette utils
Last synced: 3 months ago
JSON representation
:hammer: Extended ArrayHash with additional methods for converting data to arrays, including support for uppercase keys.
- Host: GitHub
- URL: https://github.com/drago-ex/utils
- Owner: drago-ex
- License: mit
- Created: 2020-06-18T05:01:26.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2025-12-29T07:34:12.000Z (6 months ago)
- Last Synced: 2026-01-01T04:43:11.315Z (6 months ago)
- Topics: nette, utils
- Language: PHP
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: readme.md
- License: license.md
Awesome Lists containing this project
README
## Drago Utils
This package includes several utility classes for working with arrays, case
conversions, and handling database-related tasks.
[](https://raw.githubusercontent.com/drago-ex/utils/master/license)
[](https://badge.fury.io/ph/drago-ex%2Futils)
[](https://github.com/drago-ex/utils/actions/workflows/tests.yml)
[](https://github.com/drago-ex/utils/actions/workflows/coding-style.yml)
[](https://www.codefactor.io/repository/github/drago-ex/utils)
[](https://coveralls.io/github/drago-ex/utils?branch=master)
## 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.
```php
$data->toArray();
```
Converts the internal data of the `ExtraArrayHash` object into a PHP array with all keys transformed to uppercase.
```php
$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.
```php
CaseConverter::snakeCase(...)
```