PHP 8 / Composer Library for Twister
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 7c0039bd91 update readme 1 year ago
src update API 1 year ago
.gitignore initial commit 1 year ago
LICENSE Initial commit 1 year ago
README.md update readme 1 year ago
composer.json initial commit 1 year 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');
Request
  • url - feed address
  • format - {title} {link} by default
    • {nl} - new line
    • {link} - target link
    • {title} - item title
  • length - 256 by default
  • errors - array of errors
Response
[
  time:    int,
  message: string
],
...