PHP 8 / Composer Library for Twister
Go to file
2023-12-21 03:32:31 +02:00
src update API 2023-12-21 03:26:39 +02:00
.gitignore initial commit 2023-12-21 00:55:35 +02:00
composer.json initial commit 2023-12-21 00:55:35 +02:00
LICENSE Initial commit 2023-12-21 00:51:07 +02:00
README.md update readme 2023-12-21 03:32:31 +02:00

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
    • {title} - item title
    • {link} - target link
  • length - 256 by default
  • errors - array of errors
Response
[
  time:    int,
  message: string
],
...