2017 © Pedro Peláez
 

library stream-zend

Build newsfeeds and activity feeds with Zend Framework using getstream.io

image

get-stream/stream-zend

Build newsfeeds and activity feeds with Zend Framework using getstream.io

  • Tuesday, February 13, 2018
  • by hannesvdvreken
  • Repository
  • 9 Watchers
  • 0 Stars
  • 1 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 1 Open issues
  • 2 Versions
  • 0 % Grown

The README.md

Stream Zend

Build Status Code Coverage Code Quality Latest Stable Version License, (*1)

stream-zend is a package that sets up a GetStream client in your Zend Framework application., (*2)

You can sign up for a Stream account at https://getstream.io/get_started., (*3)

Note there is also a lower level PHP - Stream integration library which is suitable for all PHP applications., (*4)

Build Activity Streams, News Feeds, and More

, (*5)

You can build:, (*6)

  • Activity Streams - like the one seen on GitHub
  • A Twitter-like feed
  • Instagram / Pinterest Photo Feeds
  • Facebook-style newsfeeds
  • A Notification System
  • Lots more...

Installation

Composer

composer require get-stream/stream-zend

Composer will install our latest stable version automatically., (*7)

PHP compatibility

Current releases require PHP 5.6 or higher., (*8)

See the Travis configuration for details of how it is built and tested against different PHP versions., (*9)

Zend framework configuration

This package contains a Zend Framework module, so you'll have to add GetStream\Zend to your application's config/modules.config.php file for it to be loaded whenever your application boots., (*10)

Next add a file to config/autoload directory (for example, call it stream.local.php) and copy paste the content of this file, and modify it to your needs. Keep either the url config variable (useful in Heroku environments), or the app_key and app_secret., (*11)

<?php

return [
    'stream' => [
        // Heroku connection url:
        'url' => getenv('STREAM_URL'),

        // Just regular key and secret found in your app dashboard: https://getstream.io/dashboard
        'app_key' => getenv('STREAM_APP_KEY'),
        'app_secret' => getenv('STREAM_APP_SECRET'),
    ],
];

Now you're done! You can inject a configured GetStream\Stream\Client object anywhere in your Zend application using the service container:, (*12)

$client = $container->get(GetStream\Stream\Client::class);

GetStream.io Dashboard

Now, login to GetStream.io and create an application in the dashboard., (*13)

Retrieve the API key, API secret, and API app id, which are shown in your dashboard., (*14)

Copyright (c) 2014-2017 Stream.io Inc, and individual contributors. All rights reserved., (*15)

See the file "LICENSE" for information on the history of this software, terms & conditions for usage, and a DISCLAIMER OF ALL WARRANTIES., (*16)

The Versions

13/02 2018

dev-master

9999999-dev https://getstream.io/

Build newsfeeds and activity feeds with Zend Framework using getstream.io

  Sources   Download

BSD BSD-3-Clause

The Requires

 

The Development Requires

zend feed zf3 activity stream newsfeed activity feed feedly getstream notification feed aggregated feed

16/01 2018

1.0.0

1.0.0.0 https://getstream.io/

Build newsfeeds and activity feeds with Zend Framework using getstream.io

  Sources   Download

BSD

The Requires

 

The Development Requires

zend feed zf3 activity stream newsfeed activity feed feedly getstream notification feed aggregated feed