https://github.com/drago-ex/utils
:hammer: String and array tools. (@nette)
https://github.com/drago-ex/utils
nette utils
Last synced: 3 months ago
JSON representation
:hammer: String and array tools. (@nette)
- Host: GitHub
- URL: https://github.com/drago-ex/utils
- Owner: drago-ex
- License: mit
- Created: 2020-06-18T05:01:26.000Z (almost 5 years ago)
- Default Branch: master
- Last Pushed: 2024-01-12T06:48:24.000Z (over 1 year ago)
- Last Synced: 2025-01-19T18:24:09.453Z (5 months ago)
- Topics: nette, utils
- Language: PHP
- Homepage:
- Size: 45.9 KB
- Stars: 0
- Watchers: 3
- 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.md)
[](https://badge.fury.io/ph/drago-ex%2Fdatabase)
[](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 or higher
- 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(...)
```