library rhubarb-leaf-twitter-timeline
Provides a simple twitter feed
jamesanderson9182/rhubarb-leaf-twitter-timeline
Provides a simple twitter feed
- Friday, September 30, 2016
- by jamesanderson9182
- Repository
- 1 Watchers
- 0 Stars
- 26 Installations
- PHP
- 1 Dependents
- 0 Suggesters
- 0 Forks
- 0 Open issues
- 1 Versions
- 0 % Grown
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"];
}
}