Skip to content

eos-project/phpclient

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

PHP Eos client

Scrutinizer Code Quality Build Status

Simple static usage

Eos client can be used from static context

\Eos\Client\Eos::sendString("Foo"); // Wont be sent - Eos not initialized
\Eos\Client\Eos::init("realm", "secret", "hostname"); // Initialize
\Eos\Client\Eos::sendString("Foo"); // Delivered using UDP
\Eos\Client\Eos::send(["message" => "hello", "ip" => $_SERVER["REMOTE_ADDR"]]); // Delivered using UDP

psr3

Eos client bundled with \Eos\Client\EosDefaultLogger which is fully PSR3-compatible with configurable logging threshold level

$l = new \Eos\Client\EosDefaultLogger("xxx", "yyy", "localhost", null, ["demo"], \Psr\Log\LogLevel::INFO);
$l->debug("debug");   // Ignored due threshold
$l->info("info");     // Delivered
$l->notice("notice"); // Delivered

About

Eos PHP client package

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages