jamesanderson9182 / rhubarb-leaf-twitter-timeline
Provides a simple twitter feed
Installs: 46
Dependents: 1
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
pkg:composer/jamesanderson9182/rhubarb-leaf-twitter-timeline
Requires
- rhubarbphp/module-leaf: ^1.0
This package is not auto-updated.
Last update: 2025-09-28 01:33:27 UTC
README
Instalation
composer require rhubarbphp/module-twitter-timeline
Usage
<?php
use Rhubarb\Leaf\Views\View;
namespace Your\WebApp\Leaves;
class IndexView extends View
{
protected function createSubLeaves()
{
parent::createSubLeaves();
$this->registerSubLeaf(
$twitter = new TwitterFeed("Twitter", "yourTwitterUsernameHere")
);
//Optional Settings
$twitter->setLinkColor("#19CF86");
$twitter->setHeight("250px");
$twitter->setWidth("250px");
}
protected function printViewContent()
{
parent::printViewContent();
print $this->leaves["Twitter"];
}
}