Skip to content

Commit 42b574d

Browse files
committed
0.0.1
1 parent a14b55f commit 42b574d

File tree

1 file changed

+20
-4
lines changed

1 file changed

+20
-4
lines changed

readme.md

Lines changed: 20 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,21 +4,37 @@
44

55
Stringer is stand alone PHP package for string manipulation with an expresive syntax.
66

7+
### Instalation
8+
9+
This package required composer
10+
11+
``` sh
12+
13+
composer require muhamadrezaar/stringer
14+
15+
```
16+
17+
then in your file php
18+
19+
```
20+
include "vendor/autoload.php";
21+
```
22+
723
### Example
824

925
Here is the basic usage and some examples methods:
1026

1127
``` sh
1228
<?php
29+
include "vendor/autoload.php";
30+
1331
$str = new RezaAr\Stringer\Stringer("php is awesome");
1432
// or
1533
$str = stringer("php is awesome");
1634

17-
$str->reverse()
18-
->display(); // return "emosewa si php"
35+
$str->reverse()->display(); // return "emosewa si php"
1936

20-
$str->substring(0,1)
21-
->display(); // return "r"
37+
$str->substring(0,1)->display(); // return "r"
2238

2339
?>
2440

0 commit comments

Comments
 (0)