mirror of
https://github.com/YGGverse/yggverse.github.io.git
synced 2026-03-31 09:05:41 +00:00
add release pages
This commit is contained in:
parent
6fa3e7497f
commit
de6c32b9a4
3 changed files with 80 additions and 0 deletions
33
nps/nps-php/1.0.0.gmi
Normal file
33
nps/nps-php/1.0.0.gmi
Normal file
|
|
@ -0,0 +1,33 @@
|
||||||
|
# nps-php 1.0.0
|
||||||
|
|
||||||
|
Initial stable release!
|
||||||
|
|
||||||
|
Includes Server class to build interactive applications
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
``` php
|
||||||
|
$server = new \Yggverse\Nps\Server;
|
||||||
|
|
||||||
|
$server->start(
|
||||||
|
function (
|
||||||
|
string $content,
|
||||||
|
string $request,
|
||||||
|
string $connect
|
||||||
|
) {
|
||||||
|
printf(
|
||||||
|
'connection: %s request: %s',
|
||||||
|
$connect,
|
||||||
|
$request
|
||||||
|
);
|
||||||
|
|
||||||
|
var_dump(
|
||||||
|
$content
|
||||||
|
);
|
||||||
|
}
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
||||||
|
## Links
|
||||||
|
|
||||||
|
=> https://github.com/YGGverse/nps-php/releases/tag/1.0.0 Download nps-php 1.0.0
|
||||||
42
nps/nps-php/1.1.0.gmi
Normal file
42
nps/nps-php/1.1.0.gmi
Normal file
|
|
@ -0,0 +1,42 @@
|
||||||
|
# nps-php 1.1.0
|
||||||
|
|
||||||
|
Server API changed with new features
|
||||||
|
|
||||||
|
Now constructor accepts line and size arguments, where the class contain new setters:
|
||||||
|
|
||||||
|
=> https://github.com/YGGverse/nps-php#serversetline Server::setLine
|
||||||
|
=> https://github.com/YGGverse/nps-php#serversetsize Server::setSize
|
||||||
|
|
||||||
|
Handler function returns success status as the new argument
|
||||||
|
|
||||||
|
## Example
|
||||||
|
|
||||||
|
``` php
|
||||||
|
$server = new \Yggverse\Nps\Server;
|
||||||
|
|
||||||
|
$server->start(
|
||||||
|
function (
|
||||||
|
bool $success,
|
||||||
|
string $content,
|
||||||
|
string $request,
|
||||||
|
string $connect
|
||||||
|
) {
|
||||||
|
printf(
|
||||||
|
'connection: %s request: %s',
|
||||||
|
$connect,
|
||||||
|
$request
|
||||||
|
);
|
||||||
|
|
||||||
|
if ($success)
|
||||||
|
{
|
||||||
|
var_dump(
|
||||||
|
$content
|
||||||
|
);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
);
|
||||||
|
```
|
||||||
|
|
||||||
|
## Links
|
||||||
|
|
||||||
|
=> https://github.com/YGGverse/nps-php/releases/tag/1.1.0 Download nps-php 1.1.0
|
||||||
|
|
@ -7,3 +7,8 @@ it listen for single dot in line to signal the package ending.
|
||||||
|
|
||||||
=> https://github.com/YGGverse/nps-php GitHub
|
=> https://github.com/YGGverse/nps-php GitHub
|
||||||
=> nex://nightfall.city/nps/ Specification
|
=> nex://nightfall.city/nps/ Specification
|
||||||
|
|
||||||
|
## Releases
|
||||||
|
|
||||||
|
=> 1.1.0.gmi 2024-04-25 1.1.0
|
||||||
|
=> 1.0.0.gmi 2024-04-24 1.0.0
|
||||||
Loading…
Add table
Add a link
Reference in a new issue