2. Changelogο
All notable changes to this project will be documented in this file.
The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.
3.0.1 (2026-06-30)ο
π Bug Fixesο
π Documentationο
overhaul the Sphinx documentation (919905f)
3.0.0 (2020-10-26)ο
β BREAKING CHANGESο
Namespace changed from
D3strukt0r\VotifierClienttoD3strukt0r\Votifier\Client. Update everyusestatement.Classes were moved and renamed:
ServerType\ClassicVotifierβServer\VotifierServerType\NuVotifierβServer\NuVotifierServerType\ServerTypeInterfaceβServer\ServerInterfaceVoteType\ClassicVoteβVote\ClassicVoteVoteType\VoteInterfaceβVote\VoteInterfaceServerConnectionβSocket(internal), and theMessagesclass was removed.
Construction is now a fluent builder (no more positional constructors), and you send on the server object directly β the
Votewrapper class is gone.sendVote()is variadic, so several votes can be sent at once:// before (2.x) $serverType = new ClassicVotifier('127.0.0.1', null, $publicKey); $voteType = new ClassicVote($username, 'Your vote list', $ip); (new Vote($voteType, $serverType))->send(); // after (3.0.0) use D3strukt0r\Votifier\Client\Server\Votifier; use D3strukt0r\Votifier\Client\Vote\ClassicVote; $server = (new Votifier())->setHost('127.0.0.1')->setPublicKey($publicKey); // ->setPort() optional, defaults to 8192 $vote = (new ClassicVote())->setUsername($username)->setServiceName('Your vote list')->setAddress($ip); $server->sendVote($vote);
For NuVotifier v2:
(new NuVotifier())->setHost('127.0.0.1')->setProtocolV2(true)->setToken('...').Failures now throw dedicated typed exceptions instead of a generic
\Exception. Catch what you need:Exception\NotVotifierException; the NuVotifier familyException\NuVotifierChallengeInvalidException,Exception\NuVotifierSignatureInvalidException,Exception\NuVotifierUnknownServiceException,Exception\NuVotifierUsernameTooLongException; and the transport-levelException\Socket\NoConnectionException,Exception\Socket\PackageNotSentException,Exception\Socket\PackageNotReceivedException. A missing required field throws\InvalidArgumentException.verifyConnection()is available on a server to check reachability before sending.
β»οΈ Refactoringο
2.1.2 (2020-08-31)ο
π§Ή Choresο
migrate CI from Travis CI to GitHub Actions and fix coverage reporting (67165e1)
2.1.1 (2020-04-25)ο
π Bug Fixesο
use correct NuVotifier server-error message and default language to null (dfdf118)
π Documentationο
migrate documentation from README to Sphinx (c04368e)
2.1.0 (2020-03-09)ο
π Bug Fixesο
resolve socket connection bugs and add PHP_CodeSniffer (df15ece)
β»οΈ Refactoringο
2.0.0 (2018-04-24)ο
β BREAKING CHANGESο
Namespace changed from
Votifier\ClienttoD3strukt0r\VotifierClient(withServerType\andVoteType\sub-namespaces). Update everyusestatement.The single
Voteclass with a six-argument constructor was removed. You now compose a server type, a vote type and aVotewrapper, then callsend():// before (1.x) use Votifier\Client\Vote; (new Vote('127.0.0.1', 8192, $publicKey, $username, 'My list', $ip))->send(); // after (2.0.0) use D3strukt0r\VotifierClient\ServerType\ClassicVotifier; use D3strukt0r\VotifierClient\VoteType\ClassicVote; use D3strukt0r\VotifierClient\Vote; $serverType = new ClassicVotifier('127.0.0.1', null, $publicKey); // null port defaults to 8192 $voteType = new ClassicVote($username, 'My list', $ip); (new Vote($voteType, $serverType))->send();
NuVotifier is now supported via
ServerType\NuVotifier($host, $port, $publicKey, $protocolV2 = false, $token = null)β passtrueand a token for the v2 protocol.Sending still throws a generic
\Exceptionon failure (typed exceptions arrive in 3.0.0).
1.0.0 (2018-04-22)ο
π§Ή Choresο
0.0.1 (2016-03-13)ο
β¨ Featuresο
add Votifier client and convert to a Composer package (2c59024)