File tree Expand file tree Collapse file tree 1 file changed +20
-4
lines changed
Expand file tree Collapse file tree 1 file changed +20
-4
lines changed Original file line number Diff line number Diff line change 44
55Stringer 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
925Here is the basic usage and some examples methods:
1026
1127``` sh
1228< ? php
29+ include " vendor/autoload.php" ;
30+
1331$str = new RezaAr\S tringer\S tringer(" 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
You can’t perform that action at this time.
0 commit comments