42 lines
853 B
Plaintext
Raw Normal View History

2024-04-25 07:39:06 +03:00
# nps-php 1.1.0
Server API changed with new features
2024-04-25 14:17:01 +03:00
Constructor receive line and size arguments, where the class contain new setters:
2024-04-25 07:39:06 +03:00
=> https://github.com/YGGverse/nps-php#serversetline Server::setLine
=> https://github.com/YGGverse/nps-php#serversetsize Server::setSize
2024-04-25 14:17:01 +03:00
Handler function return success status as the new argument
2024-04-25 07:39:06 +03:00
## 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