Download the PHP
package softboxlab/php-array-utils without Composer
On this page you can find all versions of the php package
softboxlab/php-array-utils. It is possible to download/install
these versions without Composer. Possible dependencies are resolved
automatically.
Vendor softboxlab Package php-array-utils Short Description Lib with many array utilitaries. License
MIT
FAQ
After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.
Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.
In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories.
In this case some credentials are needed to access such packages.
Please use the auth.json textarea to insert credentials, if a package is coming from a private repository.
You can look here for more information.
Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
To use Composer is sometimes complicated. Especially for beginners.
Composer needs much resources. Sometimes they are not available on a simple webspace.
If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Helps to cast values of array of array. Util when it is necessary garantee the type of output value, por exemple,
encoding of arrays in JSON. Beyond cast values, it is possible format too.
Installation
Usage
Example:
Output:
Path Expression
a.b selects "value":
a.2.b selects "two":
a.*.b selects all values "zero, "one", "two" and "three":
Where cast_type is the identifier of cast rule, options are aditional configurations do be executed against the value, for example, trim, pad, etc.
Cast Types:
int: casts to a int value.
float: casts to a float point value.
bool: casts to a boolean value.
string: casts to a string value.
max_length:size truncate the value at max length.
rpad:size,char pad at right position with supplied char.
lpad:size,char pad at left position with supplied char.
Extending
It is possible to add new cast rules, for this it will be necessary create a class the extends interface
and register it with method. You can use the
to shorten the path. See example above:
Composer command for our command line client (download client)This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free.Standard composer command
The package softboxlab/php-array-utils contains the following files
Loading the files please wait ....
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.