Skip to content

jandersongcdtech/Module.Twitter-Timeline

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Module.Twitter-Timeline

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"];
        }
}   

About

A simple RhubarbPHP Leaf for displaying a twitter timeline

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages