mirror of
https://github.com/twisterarmy/twister-php.git
synced 2025-08-26 06:21:51 +00:00
twister-php
PHP 8 / Composer tools for twister P2P JSON-RPC API
Install
composer require twisterarmy/twister
Features
Client
Implements JSON-RPC API
$client = new \Twisterarmy\Twister\Client('http', 'localhost', 28332, 'user', 'pwd');
var_dump(
$client->getPosts(
[
'twisterarmy'
]
)
);
Methods
See the src/Client.php
source for more details!
importWallet
getBlockHash
getBlock
getPosts
getPostK
follow
unFollow
getFollowing
getDHTProfileRevisions
getDHTAvatarRevisions
putDHT
createWalletUser
sendNewUserTransaction
newPostMessage
newRetwistMessage
Tools
Atom
$array = \Twisterarmy\Twister\Tools\Atom::feed('url');
RSS
$array = \Twisterarmy\Twister\Tools\Rss::feed('url');
Request
url
- feed addressformat
-{title} {link}
by default{nl}
- new line{title}
- item title{link}
- target link
length
-256
by defaulterrors
- array of errors
Response
[
time: int,
message: string
],
...
Description
PHP 8 / Composer Library for Twister
php-8twistertwister-apitwister-api-phptwister-clienttwister-composertwister-curltwister-librarytwister-p2ptwister-phptwister-php-8twister-php-clienttwister-rss
Readme
MIT
46 KiB
Languages
PHP
100%