twistertwister-phptwister-p2ptwister-composertwister-rssphp-8twister-clienttwister-php-clienttwister-librarytwister-api-phptwister-php-8twister-curltwister-api
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
ghost
75695d73ad
|
11 months ago | |
---|---|---|
src | 11 months ago | |
.gitignore | 11 months ago | |
LICENSE | 11 months ago | |
README.md | 11 months ago | |
composer.json | 11 months ago |
README.md
twister-php
PHP 8 / Composer Tools for Twister API
Install
composer require twisterarmy/twister
Features
Client
Twister client communication toolkit
RSS
Useful to create twister news bot
Feed
Read remote URL and convert response to formatted twister messages
$array = \Twisterarmy\Twister\Rss::feed('url');
Attributes
url
- feed addressformat
-{title} {link}
by default{nl}
- new line{link}
- target link{title}
- item title
length
-256
by defaulterrors
- array of errors
Result
[
time: int,
message: string
],
...