Download the PHP package emileperron/universal-identifier without Composer
On this page you can find all versions of the php package emileperron/universal-identifier. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download emileperron/universal-identifier
More information about emileperron/universal-identifier
Files in emileperron/universal-identifier
Package universal-identifier
Short Description Provides an universal_identifier function, which generates a unique sha256 identifier for a provided object or array.
License MIT
Informations about the package universal-identifier
PHP universal identifiers
Generate unique identifiers for your PHP primitives, arrays and objects
This tiny composer package provides a universal_identifier()
global function, which can be used to generate sha256 identifiers for values and arrays/objects.
These identifiers can be used to easily compare configurations both in code and in database queries, without having to manually sort and compare every items and sub-items inside an array or an object.
Getting started
To get started, simply require the package via Composer:
Once that's done, you can start using the universal_identifier
function in your project. Here's a very brief overview of the library's usage and functionalities:
Usage with primitives:
Usage with arrays:
Contributing
Feel free to submit pull requests on the GitHub repository if you want to add functionalities or suggest improvements to this library. I will look them over and merge them as soon as possible.
You can also submit issues if you run into problems but don't have time to implement a fix.
Supporting
Finally, if you use the library and would like to support me, here are the ways you can do that:
- Saying thanks directly on Twitter: @cunrakes
- Giving this repository a star on GitHub
- Taking a look at my other projects on my website
- Buying me a cup of tea ☕️