Skip to content

Commit 5f74801

Browse files
committed
add repository meta information
1 parent 68bc9b3 commit 5f74801

File tree

3 files changed

+60
-1
lines changed

3 files changed

+60
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,5 @@ nb-configuration.xml
130130
.nb-gradle/
131131

132132
### Composer template
133+
composer.lock
133134
/vendor/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 Sclable Business Solutions GmbH
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

README.md

Lines changed: 38 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,41 @@
11
Sclable Array Functions
22
=======================
33

4-
An introduction.
4+
An array wrapper to normalize php array functions, give them
5+
an ObjectOriented and functional programming approach.
6+
7+
Installation
8+
------------
9+
10+
With [Composer](https://getcomposer.org):
11+
```
12+
composer require sclable/array-functions
13+
```
14+
15+
Usage
16+
-----
17+
18+
```php
19+
echo ArrayWrap::range(0, 10)
20+
->filter(function ($nr) { return $nr < 3; })
21+
->map(function ($nr) { return "Number: $nr\n"; })
22+
->reverse();
23+
24+
// echoes
25+
// Number: 2
26+
// Number: 1
27+
// Number: 0
28+
```
29+
30+
Contribute
31+
----------
32+
33+
Clone/fork the repository as you like. To get started, run `composer install`.
34+
35+
- PHPUnit Tests preferred
36+
- PSR-2 Coding style must apply
37+
38+
License
39+
-------
40+
41+
see [LICENSE](LICENSE).

0 commit comments

Comments
 (0)