diff --git a/README.md b/README.md index 1dfe7c7..86b43b2 100644 --- a/README.md +++ b/README.md @@ -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); ``` \ No newline at end of file