From deb00f57cbbaf3ef20af7c1c25525162c1e1dbe6 Mon Sep 17 00:00:00 2001 From: yggverse Date: Thu, 25 Apr 2024 15:22:49 +0300 Subject: [PATCH] add nps-php 1.2.0 release --- nps/nps-php/1.2.0.gmi | 34 ++++++++++++++++++++++++++++++++++ nps/nps-php/index.gmi | 1 + 2 files changed, 35 insertions(+) create mode 100644 nps/nps-php/1.2.0.gmi diff --git a/nps/nps-php/1.2.0.gmi b/nps/nps-php/1.2.0.gmi new file mode 100644 index 0000000..e0aa9b5 --- /dev/null +++ b/nps/nps-php/1.2.0.gmi @@ -0,0 +1,34 @@ +# nps-php 1.2.0 + +Implemented optional Server response returned by custom handler + +``` php +$server->start( + function ( + bool $success, + string $content, + string $request, + string $connect + ): ?string + { + printf( + 'connection: %s request: %s', + $connect, + $request + ); + + if ($success) + { + var_dump( + $content + ); + } + + return 'thank you!'; // null|string response + } +); +``` + +## Links + +=> https://github.com/YGGverse/nps-php/releases/tag/1.2.0 Download nps-php 1.2.0 \ No newline at end of file diff --git a/nps/nps-php/index.gmi b/nps/nps-php/index.gmi index a265dcd..11219bc 100644 --- a/nps/nps-php/index.gmi +++ b/nps/nps-php/index.gmi @@ -10,5 +10,6 @@ it listen for single dot in line to signal the package ending. ## Releases +=> 1.2.0.gmi 2024-04-25 1.2.0 => 1.1.0.gmi 2024-04-25 1.1.0 => 1.0.0.gmi 2024-04-24 1.0.0 \ No newline at end of file