Skip to content

Commit

Permalink
0.0.1
Browse files Browse the repository at this point in the history
  • Loading branch information
julles committed Jul 22, 2018
1 parent a14b55f commit 42b574d
Showing 1 changed file with 20 additions and 4 deletions.
24 changes: 20 additions & 4 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,21 +4,37 @@

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

### Instalation

This package required composer

``` sh

composer require muhamadrezaar/stringer

```

then in your file php

```
include "vendor/autoload.php";
```

### Example

Here is the basic usage and some examples methods:

``` sh
<?php
include "vendor/autoload.php";

$str = new RezaAr\Stringer\Stringer("php is awesome");
// or
$str = stringer("php is awesome");

$str->reverse()
->display(); // return "emosewa si php"
$str->reverse()->display(); // return "emosewa si php"

$str->substring(0,1)
->display(); // return "r"
$str->substring(0,1)->display(); // return "r"

?>

Expand Down

0 comments on commit 42b574d

Please sign in to comment.