Download the PHP package pyrsmk/streams without Composer

On this page you can find all versions of the php package pyrsmk/streams. 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 streams

Streams 1.2.0

Streams aims to unify several social feeds with the same API. It is heavily based on Guzzle and async requests.

This library is part of the Myriade 2 project (link coming soon).

It currently supports :

Install

A quick example

Let's see how we can get 50 photos from a National Geographic album on Facebook :

Notes

The several supported APIs don't support pagination similarly. While pagination is completely transparent in Streams, if we don't set a limit in the stream parameters, the stream will try to get all the possible elements. Often, the stream is unable to get all existing elements, because the corresponding API forbids it (the pagination is incomplete). But some streams have an infinite pagination (they get all existing elements), and the request can take a really long time, even throw a memory exceeded exception from PHP (our tests showed us that PHP crashes around 10000 retrieved elements).

Types

Each element can be of 4 different types : text, image, video and embed. Embed can be an embedded video, or any other HTML code that an API can return.

Here's the data returned by each type of element.

Text

Image

Video

Embed

Notes

Streams

Here's the list of the available streams and their respective options.

Options

Streams have some base options :

Streams can have several additional options, according to the respective API. They often need an api and secret options fulfilled. These options are usually the client_id and client_secret after the creation of an application on the remote website.

File system

Notes

DeviantArt

Get images from a category (the ID of a category is visible in the URI of the corresponding page on DeviantArt) :

Get root images on a gallery of a user (other specific galleries are not supported) :

Notes

The DeviantArt API is not really mature. We had pretty bad times with it, and as far as we can tell, there're many things that don't work because of design problems on the API (and some other weird things).

Dribbble

Get images from a bucket :

Get images from a project :

Get images from a team :

Get images from a user :

Notes

Facebook

Get images from an album on a page :

Get profile photos from a page :

Get root (uploaded) photos from a page :

Get videos from a page :

Get notes (articles) from a page :

Notes

500px

Get images from a user :

Get images from a user's gallery :

Notes

Flickr

Get medias from a user :

Get medias from a user's album :

Notes

Google Plus

Get medias from people :

Notes

Instagram

Get last images from a user :

Notes

Reddit

Get medias from a subreddit :

Get medias from user's posts :

Notes

Vimeo

Get videos from a category :

Get videos from a channel :

Get videos from a group :

Get videos from a user :

Notes

Youtube

Get videos from a channel :

Get videos from a playlist :

Notes

Group requests

If you want to get several streams at once (and because it's more effective), you can use the Guzzle Pool class :

For more reading on concurrent requests with Guzzle, please read the documentation.

License

MIT.


All versions of streams with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^6.2
facebook/graph-sdk Version ^5.4
james-heinrich/getid3 Version ^1.9
symfony/dom-crawler Version ^3.2
symfony/css-selector Version ^3.2
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 pyrsmk/streams contains the following files

Loading the files please wait ....