{"id":19388878,"url":"https://github.com/james2doyle/pyro-twitter-widget","last_synced_at":"2026-04-18T05:33:41.497Z","repository":{"id":9855534,"uuid":"11851010","full_name":"james2doyle/pyro-twitter-widget","owner":"james2doyle","description":"A twitter widget for PyroCMS. Supports oAuth v1.1 API.","archived":false,"fork":false,"pushed_at":"2013-09-17T18:34:45.000Z","size":211,"stargazers_count":3,"open_issues_count":2,"forks_count":2,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-24T19:59:58.944Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/james2doyle.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-08-02T19:24:14.000Z","updated_at":"2014-07-25T00:59:51.000Z","dependencies_parsed_at":"2022-09-09T23:11:02.507Z","dependency_job_id":null,"html_url":"https://github.com/james2doyle/pyro-twitter-widget","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/james2doyle/pyro-twitter-widget","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpyro-twitter-widget","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpyro-twitter-widget/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpyro-twitter-widget/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpyro-twitter-widget/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/james2doyle","download_url":"https://codeload.github.com/james2doyle/pyro-twitter-widget/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/james2doyle%2Fpyro-twitter-widget/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":31957612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-04-18T00:39:45.007Z","status":"online","status_checked_at":"2026-04-18T02:00:07.018Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-11-10T10:13:56.600Z","updated_at":"2026-04-18T05:33:41.482Z","avatar_url":"https://github.com/james2doyle.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"pyro-twitter-widget\n===================\n\nA twitter widget for PyroCMS. Supports oAuth v1.1 API. It uses [J7mbo/twitter-api-php](https://github.com/J7mbo/twitter-api-php) for the oAuth and Twitter calls.\n\n##### Widget Form\n\n![form.png](https://raw.github.com/james2doyle/pyro-twitter-widget/master/form.png)\n\n##### API Choices\n\n![restchoices.png](https://raw.github.com/james2doyle/pyro-twitter-widget/master/restchoices.png)\n\n### Supported REST API Endpoints\n\n* statuses/mentions_timeline\n* statuses/user_timeline\n* statuses/home_timeline\n* statuses/retweets_of_me\n* favorites/list\n\n### Usage\n\n1. Create a [Twitter App](https://dev.twitter.com/apps)\n2. Install the widget (add to addons/shared_addons/widgets or addons/default/widgets) and run `git submodule init`\n3. Enter in all your information\n4. Choose your API target\n5. Add your username\n6. Add to your page\n\n### Tweet Properties\n\nHere are the results of a \"My Timeline\" tweet object:\n\n```php\nstdClass Object(\n    [created_at] =\u003e Fri Aug 02 15:45:54 +0000 2013\n    [id] =\u003e 363324789118603264\n    [id_str] =\u003e 363324789118603264\n    [text] =\u003e haha this is funny. The Hipster Logo Design Guide\u0026nbsp;\u003ca target=\"_blank\" href=\"http://t.co/eYwlKmbsjf\"\u003ehttp://t.co/eYwlKmbsjf\u003c/a\u003e\n    [source] =\u003e \u003ca href=\"https://chrome.google.com/webstore/detail/ikknnkomiokeodcdkknnhgjmncfiefmn\" rel=\"nofollow\"\u003eNotifier for Chrome\u003c/a\u003e\n    [truncated] =\u003e\n    [in_reply_to_status_id] =\u003e\n    [in_reply_to_status_id_str] =\u003e\n    [in_reply_to_user_id] =\u003e\n    [in_reply_to_user_id_str] =\u003e\n    [in_reply_to_screen_name] =\u003e\n    [user] =\u003e stdClass Object(\n            [id] =\u003e 320266583\n            [id_str] =\u003e 320266583\n            [name] =\u003e James Doyle\n            [screen_name] =\u003e james2doyle\n            [location] =\u003e London, Canada\n            [description] =\u003e Web Developer • Technophile • People Watcher • Paleo Eater • Movie Goer • Bike Lover • TV Enjoyer • Director at @WARPAINTMedia\n            [url] =\u003e http://t.co/cMaztGMk1v\n            [entities] =\u003e stdClass Object(\n                    [url] =\u003e stdClass Object(\n                            [urls] =\u003e Array(\n                                    [0] =\u003e stdClass Object(\n                                            [url] =\u003e http://t.co/cMaztGMk1v\n                                            [expanded_url] =\u003e http://ohdoylerules.com\n                                            [display_url] =\u003e ohdoylerules.com\n                                            [indices] =\u003e Array(\n                                                    [0] =\u003e 0\n                                                    [1] =\u003e 22\n                                                )\n                                        )\n                                )\n                        )\n                    [description] =\u003e stdClass Object(\n                            [urls] =\u003e Array(\n                                )\n                        )\n                )\n            [protected] =\u003e\n            [followers_count] =\u003e 176\n            [friends_count] =\u003e 440\n            [listed_count] =\u003e 14\n            [created_at] =\u003e Sun Jun 19 16:16:19 +0000 2011\n            [favourites_count] =\u003e 5\n            [utc_offset] =\u003e -14400\n            [time_zone] =\u003e Eastern Time (US \u0026amp; Canada)\n            [geo_enabled] =\u003e\n            [verified] =\u003e\n            [statuses_count] =\u003e 742\n            [lang] =\u003e en\n            [contributors_enabled] =\u003e\n            [is_translator] =\u003e\n            [profile_background_color] =\u003e FFFFFF\n            [profile_background_image_url] =\u003e http://a0.twimg.com/profile_background_images/776577586/5998b26a2430febb9e6ea8f0b5a1e9ee.png\n            [profile_background_image_url_https] =\u003e https://si0.twimg.com/profile_background_images/776577586/5998b26a2430febb9e6ea8f0b5a1e9ee.png\n            [profile_background_tile] =\u003e 1\n            [profile_image_url] =\u003e http://a0.twimg.com/profile_images/378800000119818419/75e06cffcd02d3ca6ae4ce68076e42e4_normal.png\n            [profile_image_url_https] =\u003e https://si0.twimg.com/profile_images/378800000119818419/75e06cffcd02d3ca6ae4ce68076e42e4_normal.png\n            [profile_banner_url] =\u003e https://pbs.twimg.com/profile_banners/320266583/1365780780\n            [profile_link_color] =\u003e 338AD6\n            [profile_sidebar_border_color] =\u003e FFFFFF\n            [profile_sidebar_fill_color] =\u003e 121212\n            [profile_text_color] =\u003e FFFFFF\n            [profile_use_background_image] =\u003e 1\n            [default_profile] =\u003e\n            [default_profile_image] =\u003e\n            [following] =\u003e\n            [follow_request_sent] =\u003e\n            [notifications] =\u003e\n        )\n    [geo] =\u003e\n    [coordinates] =\u003e\n    [place] =\u003e\n    [contributors] =\u003e\n    [retweet_count] =\u003e 0\n    [favorite_count] =\u003e 0\n    [entities] =\u003e stdClass Object(\n            [hashtags] =\u003e Array(\n                )\n\n            [symbols] =\u003e Array(\n                )\n\n            [urls] =\u003e Array(\n                    [0] =\u003e stdClass Object(\n                            [url] =\u003e http://t.co/eYwlKmbsjf\n                            [expanded_url] =\u003e http://www.hipsterlogo.com/\n                            [display_url] =\u003e hipsterlogo.com\n                            [indices] =\u003e Array(\n                                    [0] =\u003e 50\n                                    [1] =\u003e 72\n                                )\n                        )\n                )\n            [user_mentions] =\u003e Array(\n                )\n        )\n    [favorited] =\u003e\n    [retweeted] =\u003e\n    [possibly_sensitive] =\u003e\n    [lang] =\u003e en\n    [timeago] =\u003e 4 hours ago\n)\n```\n\n### Styling\n\nHere is the basic display. You can overide this view in your theme or just customize the default one.\n\n```html\n\u003cdiv class=\"pyro-twitter-widget\"\u003e\n  {{ tweets }}\n    \u003cspan class=\"timeago\"\u003e{{ timeago }}\u003c/span\u003e\n    \u003cspan class=\"tweet-text\"\u003e{{ text }}\u003c/span\u003e\n  {{ /tweets }}\n\u003c/div\u003e\n```\n\n#### Helper Function Sources\n\n*_parse_tweet function*\n\n[Parsing Twitter with RegExp](http://saturnboy.com/2010/02/parsing-twitter-with-regexp/)\n\n*_timeago function*\n\n[Convert twitter created_at time format to ago format](http://webcodingeasy.com/PHP/Convert-twitter-createdat-time-format-to-ago-format)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fpyro-twitter-widget","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjames2doyle%2Fpyro-twitter-widget","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjames2doyle%2Fpyro-twitter-widget/lists"}