Skip to content

This yocLibrary enables your project to encode and decode Netstring values in PHP.

License

Notifications You must be signed in to change notification settings

yocto/yoclib-netstring-php

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

yocLib - Netstring (PHP)

This yocLibrary enables your project to encode and decode Netstring values in PHP.

Status

CI

Installation

composer require yocto/yoclib-netstring

Use

Encoding

use YOCLIB\Netstring\Netstring;

$string = 'abc';

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

Decoding

use YOCLIB\Netstring\Netstring;

$netstring = '3:abc,';

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