@@ -4,7 +4,7 @@ Status](https://travis-ci.org/nonamephp/php7-common.svg?branch=master)](https://
44php7-common
55=============
66
7- A collection of common libraries for PHP 7.
7+ A collection of common libraries for PHP 7.1+.
88
99## Installation
1010
@@ -14,12 +14,12 @@ Use Composer to install `php7-common` into your project.
1414
1515## Included Libraries
1616
17- * ` Noname\Common\ Arr `
18- * ` Noname\Common\ Collection `
19- * ` Noname\Common\ Str `
20- * ` Noname\Common\ Validator `
17+ * ` Noname\Arr `
18+ * ` Noname\Collection `
19+ * ` Noname\Str `
20+ * ` Noname\Validator `
2121
22- ### ` \Noname\Common\ Arr `
22+ ### ` \Noname\Arr `
2323
2424A helper library for working with arrays.
2525
@@ -39,7 +39,7 @@ Recursively assign the callable's return value to each array item. Array keys ar
3939
4040``` php
4141<?php
42- use Noname\Common\ Arr;
42+ use Noname\Arr;
4343
4444$values = [1, 2, 3, 4, 5];
4545
@@ -49,7 +49,7 @@ $values_doubled = Arr::each($values, function ($value) {
4949});
5050```
5151
52- ### ` \Noname\Common\ Collection `
52+ ### ` \Noname\Collection `
5353
5454Create a ` Collection ` with an associative array to provide helpful methods for working with your data.
5555
@@ -59,7 +59,7 @@ Create a `Collection` with an associative array to provide helpful methods for w
5959
6060``` php
6161<?php
62- use Noname\Common\ Collection;
62+ use Noname\Collection;
6363
6464$userData = [
6565 'user_id' => 100,
@@ -148,7 +148,7 @@ Returns collection as JSON.
148148
149149Flatten all of the items in the collection using dot (.) notation.
150150
151- ### ` \Noname\Common\ Str `
151+ ### ` \Noname\Str `
152152
153153A helper library for working with strings.
154154
@@ -174,15 +174,15 @@ Checks if string contains another string. By default this method is case-sensiti
174174
175175Splits a string into an array containing each character.
176176
177- ### \Noname\Common\ Validator
177+ ### \Noname\Validator
178178
179179Use ` Validator ` to validate your data based on a set of rules.
180180
181181##### Usage Example
182182
183183``` php
184184<?php
185- use Noname\Common\ Validator;
185+ use Noname\Validator;
186186
187187// Data to be validated
188188$data = [
@@ -250,7 +250,7 @@ Add a custom validator type. The following example will add a type of `equals_2`
250250
251251``` php
252252<?php
253- use Noname\Common\ Validator;
253+ use Noname\Validator;
254254
255255// Data to be validated
256256$values = ['a' => 3];
@@ -330,7 +330,7 @@ This method is useful when validating a single value.
330330
331331``` php
332332<?php
333- use Noname\Common\ Validator;
333+ use Noname\Validator;
334334
335335Validator::is('string', 'Hello world!'); // @return true
336336Validator::is('integer', 'Hello world!'); // @return false
@@ -342,7 +342,7 @@ Similar to `is()`, except type is passed in the method name.
342342
343343``` php
344344<?php
345- use Noname\Common\ Validator;
345+ use Noname\Validator;
346346
347347Validator::isString('Hello world!'); // @return true
348348Validator::isInteger('Hello world!'); // @return false
0 commit comments