Download the PHP package selvinortiz/dot without Composer
On this page you can find all versions of the php package selvinortiz/dot. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package dot
Description
Dot is a tiny library and implements array dot notation for PHP written by Selvin Ortiz
Requirements
- PHP 7.1+
- Composer and selvinortiz/dot
Install
Test
Usage
To use Dot after proper installation, just autoload it, use it, and call methods on it:)
API
Dot has a very small API and hoping to keep it small and to the point.
Dot::has($arr, $key)
Returns whether or not
$arrhas$key. Put another way,$keyexists in$arr
Dot::get($arr, $key, $default = null)
Returns the value found in
$arrby$keyor$defaultprovided
Dot::set(array &$arr, $key, $value)
Mutates the
$arrby adding a new$keywith$valueprovided
Dot::delete(array &$arr, $key)
Mutates the
$arrby delete$keyand its associated value if found
Contribute
Dot wants to be friendly to first time contributors. Just follow the steps below and if you have questions along the way, please reach out.
- Fork it!
- Create your
bugfixorfeaturebranch - Commit and push your changes
- Submit a pull request
License
Dot is open source software licensed under the MIT License


