Author: Manuel Lemos
Updated on: 2023-10-19
Posted on: 2023-10-19
Package: Yii2 Array Storage
Often, associative arrays are used to store lists of values.
This package provides an alternative class that implements lists of values that can assume default values when retrieving list values that are not set.
It can also prevent setting a list value that is already set.
These features allow the implementation of more restricted lists of values in PHP.
About the Yii2 Array Storage Package
The package Yii2 Array Storage is one of the few PHP packages that was considered notable recently because it does something worth paying attention to.
The basic purpose is: Manage lists of values like associative arrays
Here follows in more detail what it does:
This class can manage lists of values like associative arrays.
It provides several functions to change the list of values that the class stores.
Currently, the class can:
- Initialize the list of values with an array
- Check if the list has a given key
- Get the value of a key and return a default if the key is missing
- Set the value of a key with the option to throw an exception if there is a key with the same value
- Remove a value with a given key
- Remove all values of the list
Conclusion
The Yii2 Array Storage can be downloaded from download page or be installed using the PHP Composer tool following instructions in the Composer install instructions page.
This package was considered notable for implementing its benefits in a way worth noticing.
Notable PHP packages can often be considered innovative. If this package is creative, it can be nominated for the PHP Innovation Award, and the author may win prizes and recognition for sharing innovative packages.
If you also developed notable or innovative packages, consider sharing them to earn more visibility for your package and excellent prizes.
One nice prize that many PHP developers want and you may like is the PHP elePHPant mascot plush.
You need to be a registered user or login to post a comment
Login Immediately with your account on:
Comments:
No comments were submitted yet.