Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/happydemon/arr
Kohana 3.3 array extensions
https://github.com/happydemon/arr
Last synced: 3 months ago
JSON representation
Kohana 3.3 array extensions
- Host: GitHub
- URL: https://github.com/happydemon/arr
- Owner: happyDemon
- License: mit
- Created: 2013-05-30T13:26:22.000Z (over 11 years ago)
- Default Branch: master
- Last Pushed: 2014-02-09T19:09:30.000Z (almost 11 years ago)
- Last Synced: 2024-04-21T21:33:40.103Z (8 months ago)
- Language: PHP
- Size: 269 KB
- Stars: 6
- Watchers: 3
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# hD.arr
This module adds extra functionality to Kohana for arrays and configuration.
## Arrays
- Place a value at a specific point in your array
- Place or move a key with a value at a specific point in your array
- Flatten an array (keys become paths to the original)
- Unset a value based on a path
- Partition an array## Config
- Export a configuration set to a file
## Session
- Retrieve a value stored in session the same way as Arr::path() does
##Instalation
### Place the files in your modules directory.
#### As a Git submodule:
```bash
git clone git://github.com/happyDemon/arr.git modules/arr
```
#### As a [Composer dependency](http://getcomposer.org)```javascript
{
"require": {
"php": ">=5.4.0",
"composer/installers": "*",
"happyDemon/arr":"*"
}
}
```### Activate the module in `bootstrap.php`.
```php
MODPATH.'arr',
));
```# Documentation
The code is mostly commented, a userguide is on its way
[![Gittip Badge](http://img.shields.io/gittip/happyDemon.svg)](https://www.gittip.com/happyDemon/ "Gittip donations")
[![Bitdeli Badge](https://d2weczhvl823v0.cloudfront.net/happyDemon/arr/trend.png)](https://bitdeli.com/free "Bitdeli Badge")