vairogs / functions
A comprehensive collection of PHP utility functions and helpers for various tasks including date manipulation, web operations, text processing, and more
Requires
- php: >=8.4
- composer-runtime-api: ^2
- ext-curl: *
- ext-json: *
- ext-random: *
- symfony/http-foundation: *
- symfony/intl: *
- symfony/process: *
- symfony/property-access: *
- symfony/routing: *
- symfony/string: *
Suggests
- ext-gmp: *
- doctrine/persistence: *
Replaces
- vairogs/functions-date: dev-master
- vairogs/functions-handler: dev-master
- vairogs/functions-iteration: dev-master
- vairogs/functions-latvian: dev-master
- vairogs/functions-local: dev-master
- vairogs/functions-memoize: dev-master
- vairogs/functions-number: dev-master
- vairogs/functions-pagination: dev-master
- vairogs/functions-php: dev-master
- vairogs/functions-preg: dev-master
- vairogs/functions-sort: dev-master
- vairogs/functions-text: dev-master
- vairogs/functions-web: dev-master
This package is auto-updated.
Last update: 2025-04-15 08:56:18 UTC
README
A comprehensive collection of PHP utility functions and helpers for various tasks including date manipulation, web operations, text processing, and more. This is a meta-package that includes all the Vairogs function sub-libraries.
Installation
Install the package via Composer:
composer require vairogs/functions
This will install all the function sub-libraries at once.
Requirements
- PHP 8.4 or higher
- Various PHP extensions (curl, json, random)
- Symfony components (http-foundation, intl, process, property-access, routing, string)
Included Sub-libraries
This meta-package includes the following function libraries:
- vairogs/functions-date - Date and time manipulation utilities
- vairogs/functions-handler - Error and exception handling utilities
- vairogs/functions-iteration - Array and collection iteration utilities
- vairogs/functions-latvian - Latvian language specific utilities
- vairogs/functions-local - Localization and internationalization utilities
- vairogs/functions-memoize - Function result caching utilities
- vairogs/functions-number - Number manipulation and formatting utilities
- vairogs/functions-pagination - Pagination utilities for arrays and collections
- vairogs/functions-php - PHP language enhancement utilities
- vairogs/functions-preg - Regular expression utilities
- vairogs/functions-sort - Sorting algorithms and utilities
- vairogs/functions-text - Text processing and manipulation utilities
- vairogs/functions-web - Web-related utilities for HTTP requests, URLs, etc.
Each sub-library can also be installed individually if you only need specific functionality.
Usage
Each sub-library has its own usage instructions. Please refer to the README.md file in each sub-library's directory for specific usage examples.
Generally, there are two ways to use these libraries:
- Via the Functions class provided by each sub-library
- By directly using the traits in your own classes
License
This package is licensed under the BSD-3-Clause License.
About Vairogs
This package is part of the vairogs/vairogs project - a comprehensive PHP library and Symfony bundle that provides a collection of utilities, components, and integrations for Symfony applications.
The main project includes:
- Various utility functions and components
- Doctrine ORM tools and extensions
- API Platform integrations
- Symfony bundle for easy configuration
- And much more
If you find these function components useful, you might want to check out the full Vairogs project for additional tools and utilities that can enhance your Symfony application development.
To install the complete package:
composer require vairogs/vairogs