]> jfr.im git - irc/unrealircd/unrealircd-rpc-php.git/log
irc/unrealircd/unrealircd-rpc-php.git
17 months agoAdd a small warning too :D
Bram Matthys [Fri, 6 Jan 2023 17:27:44 +0000 (18:27 +0100)] 
Add a small warning too :D

17 months agoUpdate README.
Bram Matthys [Fri, 6 Jan 2023 17:24:05 +0000 (18:24 +0100)] 
Update README.

17 months agoActually require PHP8 again, since our dependencies do too.
Bram Matthys [Fri, 6 Jan 2023 15:58:02 +0000 (16:58 +0100)] 
Actually require PHP8 again, since our dependencies do too.

17 months agoDrop PHP8 requirement (testing testing :D)
Bram Matthys [Fri, 6 Jan 2023 14:48:36 +0000 (15:48 +0100)] 
Drop PHP8 requirement (testing testing :D)

17 months agoSame as previous, explicit args, but for ServerBan and Channel
Bram Matthys [Fri, 6 Jan 2023 14:31:26 +0000 (15:31 +0100)] 
Same as previous, explicit args, but for ServerBan and Channel

17 months agoGet rid of PHP Contracts
Bram Matthys [Fri, 6 Jan 2023 14:28:50 +0000 (15:28 +0100)] 
Get rid of PHP Contracts

17 months agoDon't use arrays in parameters but use explicit options everwhere.
Bram Matthys [Fri, 6 Jan 2023 14:24:17 +0000 (15:24 +0100)] 
Don't use arrays in parameters but use explicit options everwhere.
For example in ServerBan, from:
public function add(string $user, array $params): stdClass;
To:
public function add(string $name, string $type, string $duration, string $reason): stdClass;

As the whole point of having these PHP functions is that it is immediately
transparent which things you need to pass.

17 months agoBan -> ServerBan part II
Bram Matthys [Fri, 6 Jan 2023 14:10:38 +0000 (15:10 +0100)] 
Ban -> ServerBan part II

17 months agoBan -> ServerBan
Bram Matthys [Fri, 6 Jan 2023 14:09:46 +0000 (15:09 +0100)] 
Ban -> ServerBan

17 months agoMajor API break:
Bram Matthys [Fri, 6 Jan 2023 14:06:13 +0000 (15:06 +0100)] 
Major API break:
* Change all the ->get() to ->getAll()
  and all the ->show() to ->get()
  .. eg for User, Channel, etc.
* You now only create an API connection once, as it was always
  intended:
  $rpc = new UnrealIRCd\Connection(..)
* You can then either use the non-connection classes like this:
  $user = new User($rpc);
  $result = $user->getAll();
  Or simply use this style:
  $result = $rpc->user()->getAll();
* More breakage to come

21 months agoReplace a stray "response" prop with "result"
Denver F [Mon, 5 Sep 2022 15:52:23 +0000 (16:52 +0100)] 
Replace a stray "response" prop with "result"

22 months agoMerge pull request #6 from unrealircd/wip
Denver F [Sun, 21 Aug 2022 19:07:28 +0000 (20:07 +0100)] 
Merge pull request #6 from unrealircd/wip

Accidentally checked for "reply" prop instead of "result"

22 months agoAccidentally checked for "reply" prop instead of "result" 6/head
Denver F [Sun, 21 Aug 2022 19:07:13 +0000 (20:07 +0100)] 
Accidentally checked for "reply" prop instead of "result"

22 months agoMerge pull request #5 from unrealircd/wip
Denver F [Wed, 17 Aug 2022 15:36:47 +0000 (16:36 +0100)] 
Merge pull request #5 from unrealircd/wip

Wip

22 months agoAdded version to composer.json and a couple of small (hopefully non-breaking) changes 5/head
Denver F [Wed, 17 Aug 2022 15:35:25 +0000 (16:35 +0100)] 
Added version to composer.json and a couple of small (hopefully non-breaking) changes

22 months agoUpdate Connection::query to listen for a "reply" response rather than "response"...
Denver F [Wed, 17 Aug 2022 15:29:13 +0000 (16:29 +0100)] 
Update Connection::query to listen for a "reply" response rather than "response" from the rpc server.

23 months agoThis brings this branch up-to-date with the changes I made to the package in the...
Denver F [Sun, 10 Jul 2022 06:20:36 +0000 (07:20 +0100)] 
This brings this branch up-to-date with the changes I made to the package in the webpanel project.

23 months agoUse the correct parameter for gline expiry timestamp
Denver F [Sun, 10 Jul 2022 01:08:00 +0000 (02:08 +0100)] 
Use the correct parameter for gline expiry timestamp

23 months agoReturn errors from the ircd
Denver F [Sun, 10 Jul 2022 01:02:58 +0000 (02:02 +0100)] 
Return errors from the ircd

23 months agoMerge pull request #4 from unrealircd/wip
Denver F [Mon, 4 Jul 2022 18:34:01 +0000 (19:34 +0100)] 
Merge pull request #4 from unrealircd/wip

Wip

23 months agoThis should be everything working now. 4/head
Denver F [Mon, 4 Jul 2022 18:33:30 +0000 (19:33 +0100)] 
This should be everything working now.

23 months agoReturn types :<
Denver F [Mon, 4 Jul 2022 18:28:19 +0000 (19:28 +0100)] 
Return types :<

23 months agoReturn types again
Denver F [Mon, 4 Jul 2022 18:23:30 +0000 (19:23 +0100)] 
Return types again

23 months agoUpdate PHP version requirement
Denver F [Mon, 4 Jul 2022 18:22:09 +0000 (19:22 +0100)] 
Update PHP version requirement

23 months agoMore fixes on return types
Denver F [Mon, 4 Jul 2022 18:21:10 +0000 (19:21 +0100)] 
More fixes on return types

23 months agoMerge pull request #3 from unrealircd/wip
Denver F [Mon, 4 Jul 2022 18:18:27 +0000 (19:18 +0100)] 
Merge pull request #3 from unrealircd/wip

Fix querying the response object for ID when its not part of that obj…

23 months agoFix querying the response object for ID when its not part of that object. 3/head
Denver F [Mon, 4 Jul 2022 18:16:54 +0000 (19:16 +0100)] 
Fix querying the response object for ID when its not part of that object.
Remove useless code in Channel

23 months agoMerge pull request #2 from unrealircd/wip
Denver F [Mon, 4 Jul 2022 18:15:33 +0000 (19:15 +0100)] 
Merge pull request #2 from unrealircd/wip

Wip

23 months agoRemove $id from UnrealIRCd\Channel 2/head
Denver F [Mon, 4 Jul 2022 18:14:47 +0000 (19:14 +0100)] 
Remove $id from UnrealIRCd\Channel

23 months agoChange return types to \stdClass.
Denver F [Mon, 4 Jul 2022 18:14:08 +0000 (19:14 +0100)] 
Change return types to \stdClass.

23 months agoAllow any php8 version
Denver F [Mon, 4 Jul 2022 17:54:29 +0000 (18:54 +0100)] 
Allow any php8 version

23 months agoMerge pull request #1 from unrealircd/wip
Denver F [Mon, 4 Jul 2022 17:52:38 +0000 (18:52 +0100)] 
Merge pull request #1 from unrealircd/wip

Wip

23 months agoThis should be enough for some preliminary usage. 1/head
Denver F [Mon, 4 Jul 2022 17:42:56 +0000 (18:42 +0100)] 
This should be enough for some preliminary usage.

2 years agoWIP
Denver F [Sat, 2 Jul 2022 16:05:55 +0000 (17:05 +0100)] 
WIP

2 years agoUpdate installation example, use :dev-main for now.
Bram Matthys [Sun, 26 Jun 2022 15:29:58 +0000 (17:29 +0200)] 
Update installation example, use :dev-main for now.

2 years agoUpdate README
Bram Matthys [Sun, 26 Jun 2022 15:17:15 +0000 (17:17 +0200)] 
Update README

2 years agoImport of initial proof-of-concept
Bram Matthys [Sun, 26 Jun 2022 14:58:46 +0000 (16:58 +0200)] 
Import of initial proof-of-concept

2 years agoInitial commit
Bram Matthys [Sun, 26 Jun 2022 14:54:53 +0000 (14:54 +0000)] 
Initial commit