Skip to content

Commit

Permalink
Update usage
Browse files Browse the repository at this point in the history
  • Loading branch information
ben221199 committed Nov 18, 2023
1 parent 2c2cd6e commit 4f8b42b
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,22 @@ This yocLibrary enables your project to encode and decode Netstring values in PH

## Use

### Serialization
### Encoding

```php
//TODO
use YOCLIB\Netstring\Netstring;

$string = 'abc';

$netstring = Netstring::encode($string);
```

### Deserialization
### Decoding

```php
//TODO
use YOCLIB\Netstring\Netstring;

$netstring = '3:abc,';

$string = Netstring::decode($netstring);
```

0 comments on commit 4f8b42b

Please sign in to comment.