Giter Club home page Giter Club logo

stream-zend's Introduction

Stream Zend

Build Status Code Coverage Code Quality Latest Stable Version License

stream-zend is a package that sets up a GetStream client in your Zend Framework application.

You can sign up for a Stream account at https://getstream.io/get_started.

Note there is also a lower level PHP - Stream integration library which is suitable for all PHP applications.

Build Activity Streams, News Feeds, and More

You can build:

  • 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.

PHP compatibility

Current releases require PHP 5.6 or higher.

See the Travis configuration for details of how it is built and tested against different PHP versions.

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.

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.

<?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:

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

GetStream.io Dashboard

Now, login to GetStream.io and create an application in the dashboard.

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

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

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

stream-zend's People

Contributors

hannesvdvreken avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.