Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/yocto/yoclib-netstring-php
This yocLibrary enables your project to encode and decode Netstring values in PHP.
https://github.com/yocto/yoclib-netstring-php
composer netstring php qmqp qmtp yoclib yocto
Last synced: about 2 months ago
JSON representation
This yocLibrary enables your project to encode and decode Netstring values in PHP.
- Host: GitHub
- URL: https://github.com/yocto/yoclib-netstring-php
- Owner: yocto
- License: gpl-3.0
- Created: 2023-11-18T15:02:04.000Z (about 1 year ago)
- Default Branch: master
- Last Pushed: 2023-11-18T18:01:48.000Z (about 1 year ago)
- Last Synced: 2024-04-19T22:44:47.317Z (9 months ago)
- Topics: composer, netstring, php, qmqp, qmtp, yoclib, yocto
- Language: PHP
- Homepage:
- Size: 14.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
# yocLib - Netstring (PHP)
This yocLibrary enables your project to encode and decode Netstring values in PHP.
## Status
[![CI](https://github.com/yocto/yoclib-netstring-php/actions/workflows/ci.yml/badge.svg)](https://github.com/yocto/yoclib-netstring-php/actions/workflows/ci.yml)
## Installation
`composer require yocto/yoclib-netstring`
## Use
### Encoding
```php
use YOCLIB\Netstring\Netstring;$string = 'abc';
$netstring = Netstring::encode($string);
```### Decoding
```php
use YOCLIB\Netstring\Netstring;$netstring = '3:abc,';
$string = Netstring::decode($netstring);
```