Download the PHP package alvis/magento2-twitter without Composer

On this page you can find all versions of the php package alvis/magento2-twitter. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package magento2-twitter

Magento 2: Twitter

Twitter feeds using the most popular TwitterOAuth PHP library.

Multiple configuration options giving you full control over your tweets. Global integration option available along with an easy to use widget.

Installation

Recommended installation through composer, within your Magento root directory enter the following:

composer require alvis/magento2-twitter

Enable the module

php bin/magento module:enable Alvis_Core
php bin/magento module:enable Alvis_Twitter

You may also need to re-compile:

php bin/magento setup:upgrade
php bin/magento setup:di:compile

Create your Twitter app

You will need to create a Twitter app to get your API credentials. Please use the following steps as a guide:

  1. Go to https://apps.twitter.com and login using your Twitter account credentials
  2. Create a new application filling in your details. The Callback URL can be left empty
  3. Click on the 'Keys and Access Tokens' tab and then 'Create my access token'

Module configuration

The module configuration can be found through the main menu under Alvis. As a minimum please ensure you enter your screen name, consumer key, consumer key secret, access token and access token secret.

Display settings

Multiple settings available giving you full control over your tweets including:

Media settings

Multiple settings for when tweets include images:

Search settings

Display tweets based off a search query, used when displaying searched tweets.

Integration

By default Twitter displays in the main content.

Extend the layout within your theme <VendorName>/<ThemeName>/Alvis_Twitter/layout/default.xml.

Move xml block:

Remove xml block:

Update xml block arguments:

Override the default templates within your theme create the following files:

<VendorName>/<ThemeName>/Alvis_Twitter/templates/tweets.phtml
<VendorName>/<ThemeName>/Alvis_Twitter/templates/widget/tweets.phtml

The original contents of the files can be found under:

<Root>/vendor/alvis/magento2-twitter/view/frontend/templates/tweets.phtml
<Root>/vendor/alvis/magento2-twitter/view/frontend/templates/widget/tweets.phtml

Widget

Alternatively you can use the Twitter Feed widget which has the following settings available:

Styling

Currently no styling is provided with the module, please create your own.


All versions of magento2-twitter with dependencies

PHP Build Version
Package Version
Requires alvis/magento2-core Version ~1.0.0
abraham/twitteroauth Version ^0.6.4
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package alvis/magento2-twitter contains the following files

Loading the files please wait ....