hprotravel / php-common-utils
Compass PHP common utility classes
v0.22.0
2026-09-15 08:56 UTC
Requires
- php: >=8.4
- ext-ctype: *
- ext-fileinfo: *
- ext-iconv: *
- ext-intl: *
- ext-mbstring: *
Requires (Dev)
- phpunit/phpunit: ^10.5
- rector/rector: ^2.3
Suggests
None
Provides
None
Conflicts
None
Replaces
None
- dev-main
- v0.22.0
- v0.21.0
- v0.20.0
- v0.19.0
- v0.18.0
- v0.17.4
- v0.17.3
- v0.17.2
- v0.17.1
- v0.17.0
- v0.16.1
- v0.16.0
- v0.15.0
- v0.14.0
- v0.13.0
- v0.12.1
- v0.12.0
- v0.11.0
- v0.10.0
- v0.9.1
- v0.9.0
- v0.8.1
- v0.8.0
- v0.7.1
- v0.7.0
- v0.6.0
- v0.5.0
- v0.4.0
- v0.3.0
- v0.2.2
- v0.2.1
- v0.2.0
- v0.1.0
- dev-develop
- dev-feature/CK-1150-add-date-time-wrapper-to-php-utils-package
- dev-feature/CK-1160-add-more-common-helpers-to-collection
- dev-feature/CK-1148-add-country-utils-helper
- dev-hotfix/CK-1060-auto-generated-helpers-pass-by-ref
- dev-feature/CK-844-php84-deprecation
- dev-hotfix/CK-849-change-number-format-type
- dev-feature/CK-298-implement-php-hydrator
This package is auto-updated.
Last update: 2026-09-15 08:57:34 UTC
README
Date and time helpers
DateTimeUtils is deprecated and will be removed in a future major version.
Use the focused date/time helpers instead:
Compass\Utils\Date\ExtendedDateTimefor date/time parsing, formatting, mutation, comparison, and timezone conversion.Compass\Utils\Date\ExtendedDateTimeImmutablefor immutable date/time parsing, formatting, mutation, comparison, and timezone conversion.Compass\Utils\Date\DateRangefor date ranges and day intervals.Compass\Utils\Date\Weekdayfor weekday and workday names/indexes.Compass\Utils\Date\DateTimeValidatorfor strict date/time format validation.Compass\Utils\Durationfor duration formatting and interval-string validation.Compass\Utils\Stopwatchfor measuring elapsed runtime.
See Date and time helpers for examples and migration notes.