PHPackages                             valksor/php-functions - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. valksor/php-functions

ActiveLibrary

valksor/php-functions
=====================

A comprehensive collection of PHP utility functions and helpers for various tasks including date manipulation, web operations, text processing, and more

00PHPCI passing

Since Jan 24Pushed 3mo agoCompare

[ Source](https://github.com/valksor/php-functions)[ Packagist](https://packagist.org/packages/valksor/php-functions)[ RSS](/packages/valksor-php-functions/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

Valksor Functions
=================

[](#valksor-functions)

[![valksor](https://camo.githubusercontent.com/2af5a6a7e5f7da47cd0a924c8b00038f208f45f9b0d5be8d7a497a9808168187/68747470733a2f2f62616467656e2e6e65742f7374617469632f6f72672f76616c6b736f722f677265656e)](https://github.com/valksor)[![BSD-3-Clause](https://camo.githubusercontent.com/72547f8afb6b5ace804caebbf95c3bcbfc027ce9214777bc452f308f3165db01/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4253442d2d332d2d436c617573652d677265656e3f7374796c653d666c6174)](https://github.com/valksor/php-functions/blob/master/LICENSE)[![Coverage Status](https://camo.githubusercontent.com/f2cae405cc5537af1e680677f30f67768936b0fcb167d42196867b8a41d9cb9b/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions?branch=master)[![php](https://camo.githubusercontent.com/77da2f7bbc049873edb2d1045a756d7a32e3ba50440a8e0e76a9109f62f0771b/68747470733a2f2f62616467656e2e6e65742f7374617469632f7068702f2533453d382e342f707572706c65)](https://www.php.net/releases/8.4/en.php)

This repository contains these:
-------------------------------

[](#this-repository-contains-these)

RepositoryCoverageRepositoryCoverage[php-functions-date](https://github.com/valksor/php-functions-date)[![Coverage](https://camo.githubusercontent.com/f7c4f3bc800a02225022a9db52a72823d760eedb4375578f0d2b3d7a1b07e0a1/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d646174652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-date?branch=master)[php-functions-handler](https://github.com/valksor/php-functions-handler)[![Coverage](https://camo.githubusercontent.com/2b699c1dc2593ee59fc3a0846e6b7e679ce12bd46e04449d1caeb4ac3f827e41/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d68616e646c65722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-handler?branch=master)[php-functions-iteration](https://github.com/valksor/php-functions-iteration)[![Coverage](https://camo.githubusercontent.com/5073acdf5b0ccadb924c95696b194c3d97f96fabf50445d4e374254d4ce5cb4d/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d697465726174696f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-iteration?branch=master)[php-functions-latvian](https://github.com/valksor/php-functions-latvian)[![Coverage](https://camo.githubusercontent.com/c4591681ee08ec858c4d15fb0ca5d243800ca386028a7d0f43be01d27edc3575/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d6c61747669616e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-latvian?branch=master)[php-functions-local](https://github.com/valksor/php-functions-local)[![Coverage](https://camo.githubusercontent.com/287a55886626fa85d8d7e7cbedd69ba1a159d7b84622aa189db83bbd31c73ff9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d6c6f63616c2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-local?branch=master)[php-functions-memoize](https://github.com/valksor/php-functions-memoize)[![Coverage](https://camo.githubusercontent.com/e25603c8ed64ac71e0846ca1fcdc594d5a33b8b855ac0d1384f702d99d336fd8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d6d656d6f697a652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-memoize?branch=master)[php-functions-number](https://github.com/valksor/php-functions-number)[![Coverage](https://camo.githubusercontent.com/fe204f9ccb42e273980587099d6acfb8f8c973805cb27be1fad19cbefa527609/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d6e756d6265722f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-number?branch=master)[php-functions-pagination](https://github.com/valksor/php-functions-pagination)[![Coverage](https://camo.githubusercontent.com/7b7793f36da83f8256cfbd03c83f79e6dadbca00a5e6d4ee00122a548329eba9/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d706167696e6174696f6e2f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-pagination?branch=master)[php-functions-php](https://github.com/valksor/php-functions-php)[![Coverage](https://camo.githubusercontent.com/7f3063436bba451627474d38902789aaed5c6452524a310968560990ff08c7fd/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d7068702f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-php?branch=master)[php-functions-preg](https://github.com/valksor/php-functions-preg)[![Coverage](https://camo.githubusercontent.com/b7ca814a8ab9d6c33c4b1676c84698182e131a32b8d62a90499e8487305afebf/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d707265672f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-preg?branch=master)[php-functions-queue](https://github.com/valksor/php-functions-queue)[![Coverage](https://camo.githubusercontent.com/8f6e5aa26c29cf0b0364cdcee1905317c7eb29cfcc8334c4be5c4d23e1c73282/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d71756575652f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-queue?branch=master)[php-functions-sort](https://github.com/valksor/php-functions-sort)[![Coverage](https://camo.githubusercontent.com/7853a1a917361fad9df54b351fe787e19375e04eaaddc78339f86529b2a8af6f/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d736f72742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-sort?branch=master)[php-functions-text](https://github.com/valksor/php-functions-text)[![Coverage](https://camo.githubusercontent.com/5d5f82aaf9cfe7812eac197adae508fb8ed7a32842565acf12c3a9ab433151a8/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d746578742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-text?branch=master)[php-functions-web](https://github.com/valksor/php-functions-web)[![Coverage](https://camo.githubusercontent.com/bf3f7c4f0ea732ea6abc0c8a0614f393b105d5e78d6891ede03168017ee75a28/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f76616c6b736f722f7068702d66756e6374696f6e732d7765622f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/valksor/php-functions-web?branch=master)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 Valksor function sub-libraries.

Installation
------------

[](#installation)

Install the package via Composer:

```
composer require valksor/php-functions
```

This will install all the function sub-libraries at once.

Requirements
------------

[](#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
----------------------

[](#included-sub-libraries)

This meta-package includes the following function libraries:

- [valksor/php-functions-date](Date) - Date and time manipulation utilities
- [valksor/php-functions-handler](Handler) - Error and exception handling utilities
- [valksor/php-functions-iteration](Iteration) - Array and collection iteration utilities
- [valksor/php-functions-latvian](Latvian) - Latvian language specific utilities
- [valksor/php-functions-local](Local) - Localization and internationalization utilities
- [valksor/php-functions-memoize](Memoize) - Function result caching utilities
- [valksor/php-functions-number](Number) - Number manipulation and formatting utilities
- [valksor/php-functions-pagination](Pagination) - Pagination utilities for arrays and collections
- [valksor/php-functions-php](Php) - PHP language enhancement utilities
- [valksor/php-functions-preg](Preg) - Regular expression utilities
- [valksor/php-functions-queue](Queue) - FIFO queue implementation for managing collections of items
- [valksor/php-functions-sort](Sort) - Sorting algorithms and utilities
- [valksor/php-functions-text](Text) - Text processing and manipulation utilities
- [valksor/php-functions-web](Web) - Web-related utilities for HTTP requests, URLs, etc.

Each sub-library can also be installed individually if you only need specific functionality.

Usage
-----

[](#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:

1. Via the Functions class provided by each sub-library
2. By directly using the traits in your own classes

Contributing
------------

[](#contributing)

Contributions are welcome!

- Code style requirements (PSR-12)
- Testing requirements for PRs
- One feature per pull request
- Development setup instructions

To contribute to function libraries:

1. Fork the repository
2. Create a feature branch (`git checkout -b feature/new-function`)
3. Implement your function following existing patterns
4. Add comprehensive tests
5. Ensure all tests pass and code style is correct
6. Submit a pull request

### Creating New Function Libraries

[](#creating-new-function-libraries)

When adding new function libraries:

1. Create namespace under `Valksor\Functions\{Name}`
2. Implement Functions class and individual traits
3. Add comprehensive test coverage in `tests/Functions/{Name}/`
4. Create composer.json with proper dependencies
5. Update meta-package composer.json to include new library
6. Update documentation with examples

Security
--------

[](#security)

If you discover any security-related issues, please email us at  instead of using the issue tracker.

Support
-------

[](#support)

- **Documentation**: [Full documentation](https://github.com/valksor/php-valksor)
- **Issues**: [GitHub Issues](https://github.com/valksor/php-valksor/issues) for bug reports and feature requests
- **Discussions**: [GitHub Discussions](https://github.com/orgs/valksor/discussions/categories/php-valksor) for questions and community support

Credits
-------

[](#credits)

- **[Original Author](https://github.com/valksor)** - Creator and maintainer
- **[All Contributors](https://github.com/valksor/php-valksor/graphs/contributors)** - Thank you to all who contributed
- **[PHP Community](https://www.php.net)** - Language and ecosystem support
- **[Symfony Components](https://symfony.com/components)** - Many functions utilize Symfony components
- **[Valksor Project](https://github.com/valksor)** - Part of the larger Valksor PHP ecosystem

License
-------

[](#license)

This package is licensed under the [BSD-3-Clause License](LICENSE).

About Valksor
-------------

[](#about-valksor)

This package is part of the [valksor/php-valksor](https://github.com/valksor/php-valksor) 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
- Symfony bundle for easy configuration
- And much more

If you find these function components useful, you might want to check out the full Valksor project for additional tools and utilities that can enhance your Symfony application development.

To install the complete package:

```
composer require valksor/php-valksor
```

###  Health Score

18

—

LowBetter than 8% of packages

Maintenance53

Moderate activity, may be stable

Popularity0

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity12

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

### Community

Maintainers

![](https://www.gravatar.com/avatar/c4db85e32518c5a6caa2fd625032a2b016ef42d60cf8a101c165cc5c0048b221?d=identicon)[k0d3r1s](/maintainers/k0d3r1s)

---

Top Contributors

[![k0d3r1s](https://avatars.githubusercontent.com/u/38725938?v=4)](https://github.com/k0d3r1s "k0d3r1s (64 commits)")

### Embed Badge

![Health badge](/badges/valksor-php-functions/health.svg)

```
[![Health](https://phpackages.com/badges/valksor-php-functions/health.svg)](https://phpackages.com/packages/valksor-php-functions)
```

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
