mirror of
https://github.com/twisterarmy/twister-php.git
synced 2025-01-14 16:57:57 +00:00
PHP 8 / Composer Library for Twister
php-8twistertwister-apitwister-api-phptwister-clienttwister-composertwister-curltwister-librarytwister-p2ptwister-phptwister-php-8twister-php-clienttwister-rss
src | ||
.gitignore | ||
composer.json | ||
LICENSE | ||
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');
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
],
...