This allows PHP scripts to control [UnrealIRCd](https://www.unrealircd.org/)
via the [JSON-RPC interface](https://www.unrealircd.org/docs/JSON-RPC).
-WARNING: Both the UnrealIRCd-side and this PHP library are under heavy
-development so major API breakages are likely, such as changing the
-function names, arguments that need to be passed and the way things
-are returned.
+This is used by the
+[https://github.com/unrealircd/unrealircd-webpanel/](UnrealIRCd webpanel).
If you are interested in helping out or would like to discuss API
capabilities, join us at `#unreal-webpanel` at irc.unrealircd.org
(IRC with TLS on port 6697).
-See also [Looking for webdevs to make UnrealIRCd webpanel](https://forums.unrealircd.org/viewtopic.php?t=9257).
-
Installation
------------
```bash
UnrealIRCd setup
-----------------
-UnrealIRCd 6.0.5 is needed and you need to configure it as explained in
-https://www.unrealircd.org/docs/JSON-RPC.
+UnrealIRCd 6.0.6 or later is needed and you need to configure it as explained
+in https://www.unrealircd.org/docs/JSON-RPC.
After doing that, be sure to rehash the IRCd.
$api_login = 'api:apiPASSWORD'; // same as in the rpc-user block in UnrealIRCd
- $rpc = new UnrealIRCd\Connection("wss://127.0.0.1:8000/",
+ $rpc = new UnrealIRCd\Connection("wss://127.0.0.1:8600/",
$api_login,
Array("tls_verify"=>FALSE));
If the example does not work, then make sure you have configured your
UnrealIRCd correctly, with the same API username and password you use
-here, and with an allowed IP, and changing the `127.0.0.1:8000` too
+here, and with an allowed IP, and changing the `127.0.0.1:8600` too
if needed.