Download the PHP package acdphp/data-guard without Composer
On this page you can find all versions of the php package acdphp/data-guard. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download acdphp/data-guard
More information about acdphp/data-guard
Files in acdphp/data-guard
Download acdphp/data-guard
More information about acdphp/data-guard
Files in acdphp/data-guard
Vendor acdphp
Package data-guard
Short Description Hides or masks array or collection elements on specific levels from a given specifications and conditions.
License MIT
Package data-guard
Short Description Hides or masks array or collection elements on specific levels from a given specifications and conditions.
License MIT
Please rate this library. Is it a good library?
Informations about the package data-guard
Data Guard
Hides or masks array or collection elements on specific levels from a given specifications and conditions.
Installation
Usage
Collection support
- This can also be used directly with illuminate collection.
Resource and Search Indicators
|
- key split, keys to match on the same level.:
- key separator, hierarchy of keys to match from root to child.[]
- array indicator, DataGuard will look inside each of the values instead of directly looking for the next key.###
- mask with, when callingmask()
, data will be replaced with a string instead of removing it.
You may modify the indicators by passing it as a constructor argument.
When used in a framework like laravel, you may publish the config to change the indicators.
Data (array)
- your data array (preferably an associative array)
Resource (string)
- string (example format:
'orders[]|order:line_items[]:sku'
) - this is the key point of data to be processed.
Search (string, optional)
- instead of matching the given resource directly, you can pass another resource (same formatting as resource) as the first index of condition to match against the operator+value. search_resource will be searched through and matched, but the process point will still be on the given resource.
- if not provided, last node of resource will be matched.
Operator (string, optional)
- if not provided,
=
(equals) will be used
Value (mixed, optional)
- matches the search or resource with the given operator.
Example
Please check the unit test for more usage examples.
License
The MIT License (MIT). Please see License File for more information.
All versions of data-guard with dependencies
PHP Build Version
Package Version
Requires
php Version
^7.4 || ^8.0
The package acdphp/data-guard contains the following files
Loading the files please wait ....