Download the PHP package nathancox/silverstripe-social-feed without Composer

On this page you can find all versions of the php package nathancox/silverstripe-social-feed. 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 silverstripe-social-feed

SilverStripe Social Feed

Combine social media posts from Facebook, Twitter and Instagram into a single feed. Each feed is available separately also.

Installation

Usage

Alternatively you can call the SocialFeed method directly like so:

The posts are ordered from newest to oldest.

Within the SocialFeed control loop the following values are available:

Caching

All SocialMediaProvider::getFeed() calls are cached for 15 minutes and can be cleared either in the CMS or by appending ?socialfeedclearcache=1 in developer mode.

There is also a SocialFeedCacheTask that you can setup as a cronjob on your server to ensure that the end-user never has to wait for your server to make its API calls to Facebook, Twitter, etc and update the various social feed caches.

Alternatively, if you're using the QueuedJobs module, this process will be handled automatically for you, as a queued job is setup to update the cache every 10 minutes.

Requirements

SilverStripe 4 or newer

Twitter

The Twitter data is a collection of the most recent Tweets posted by the user. The following API endpoint is used https://api.twitter.com/1.1/statuses/user_timeline.json?screen_name=twitterapi

Twitter API documentation for user timeline

Credentials

You'll need to create a Twitter app here https://apps.twitter.com/app/

Facebook

The Facebook data returned is the most recent posts for a given Facebook Page. The following API endpoint is used https://graph.facebook.com/PAGE_ID/feed?access_token=ACCESS_TOKEN

Facebook API documentation

Credentials

To get the necessary Facebook API credentials you'll need to create a Facebook App.

Instagram

The most recent media published for a user. The following API endpoint is used https://api.instagram.com/v1/users/self/media/recent/?access_token=ACCESS_TOKEN Instagram API documentation for resent user media

Credentials

To get the necessary Instagram API credentials you'll need to create an Instagram Client.

You'll need to add the correct redirect URI in the settings for the Instagram App, such as http://yoursite.com/admin/social-feed/SocialFeedProviderInstagram/


All versions of silverstripe-social-feed with dependencies

PHP Build Version
Package Version
Requires silverstripe/framework Version ^4
abraham/twitteroauth Version ^0.9.2
league/oauth2-facebook Version ^2.0
league/oauth2-instagram Version ^2.0
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 nathancox/silverstripe-social-feed contains the following files

Loading the files please wait ....