Skip to content

lancelink/Alacrity-PHP-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

21 Commits
 
 
 
 
 
 

Repository files navigation

Alacrity-PHP-driver

PHP driver for [Alacrity] (https://github.com/Cipherwraith/alacrity)

Alacrity client example

require('alacrity.php');

$alacrity = new Alacrity(ALACRITY_SERVER_IP, ALACRITY_PORT); // Initialize alacrity object

$alacrity->Connect(ALACRITY_PASSWORD); // Connect to alacrity with password from Alacrity,
                                       // will fail if no or wrong password

// Store through Websocket
$store_response = $alacrity->Store("data_here", "/path/tofile.html"); // store data to path

// Store through HTTP
$store_response = $alacrity->HttpStore("data_here", "/path/tofile.html"); // store data to path

$view_response  = $alacrity->View("/path/tofile.html"); // view json data by path
$raw_view_response  = $alacrity->ViewRaw("/path/tofile.html"); // view plain text data by path

$alacrity->Close(); // Disconnect alacrity

About

PHP websocket driver for alacrity

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages