jgxvx/data-types

Convenience classes for scalar and complex data types.

5.0.0 2023-08-09 08:42 UTC

This package is auto-updated.

Last update: 2024-04-09 10:06:45 UTC


README

A small collection of convenience classes for dealing with different datatypes in PHP.

Enum\AbstractEnum

An abstract class to act as an Enum of a collection of related values.

StringType\Search

Provides the ability to search for substrings within strings. Mostly obsolete since PHP 8.0 introduced str_starts_with, str_ends_with and str_contains.

StringType\Transformer

Provides the ability to transform strings from snake_case or kebab-case to camelCase and vice versa.