jgxvx/data-types

Convenience classes for scalar and complex data types.

3.0.0 2021-10-15 21:43 UTC

This package is auto-updated.

Last update: 2021-10-15 21:44:46 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.