Download the PHP package mpalourdio/zf2-twitter-widget without Composer
On this page you can find all versions of the php package mpalourdio/zf2-twitter-widget. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download mpalourdio/zf2-twitter-widget
More information about mpalourdio/zf2-twitter-widget
Files in mpalourdio/zf2-twitter-widget
Package zf2-twitter-widget
Short Description ZF2 view helper to easily display twitter timelines widgets
License MIT
Homepage https://github.com/mpalourdio/zf2-twitter-widget
Informations about the package zf2-twitter-widget
zf2-twitter-widget
ZF2 view helper to easily display twitter embedded timelines widgets in a ZF2 project. Based on this library : https://github.com/mpalourdio/TwitterWidgets
Requirements
PHP 7.0+ - Only Composer installation supported
Installation
Run the command below to install via Composer
Add "ZfTwitterWidget" to your modules list in application.config.php
Usage
- 1) Create a timeline widget here : https://twitter.com/settings/widgets/new
- 2) In the javascript generated code, get the URL and the data-widget-id (minimum information required)
- 3) Finally, in a view, use with
All the following options are handled : https://dev.twitter.com/web/embedded-timelines#options
Their PHP equivalent as array keys to use in the view helper are :
You can give an instance of instead of an array (or any implementation of ).
The view helper second parameter is a boolean (true by default), that indicates if you must render the javascript code for your widget. If you have more that one widget on your page, use the to only add once the javascript code, just before your . This will avoid some overhead. See https://dev.twitter.com/web/javascript/loading
All versions of zf2-twitter-widget with dependencies
mpalourdio/twitter-widgets Version ^0.2
zendframework/zend-servicemanager Version ^2.3
zendframework/zend-view Version ^2.3
zendframework/zend-modulemanager Version ^2.3
zendframework/zend-mvc Version ^2.3
zendframework/zend-serializer Version ^2.3
zendframework/zend-log Version ^2.3
zendframework/zend-i18n Version ^2.3