Stream Laravel

screenshot of Stream Laravel
laravel

Laravel Client - Build Activity Feeds & Streams with GetStream.io

Overview

Stream Laravel is a Laravel client for Stream, offering seamless integration with Laravel applications or any application using Eloquent ORM. With Stream Laravel, users can easily build activity streams, news feeds, and various other functionalities.

Features

  • Activity Streams: Build activity streams similar to those on GitHub.
  • Twitter-like Feed: Create a feed similar to Twitter.
  • Photo Feeds: Develop photo feeds similar to Instagram or Pinterest.
  • Newsfeeds: Construct Facebook-style newsfeeds.
  • Notification System: Implement a notification system.
  • Easy Integration: Instant integration with Eloquent models.
  • Custom Data Fields: Ability to add custom data fields to activities.

Composer

  1. Install the package using Composer:
    composer require get-stream/stream-laravel
    
  2. For Laravel versions prior to 5.5, add the following to config/app.php:
    'providers' => [
        GetStream\StreamLaravel\StreamLaravelServiceProvider::class,
    ]
    
    'aliases' => [
        'FeedManager' => GetStream\StreamLaravel\Facades\FeedManager::class,
    ]
    
  3. Publish the configuration file:
    php artisan vendor:publish --provider="GetStream\StreamLaravel\StreamLaravelServiceProvider"
    
  4. Set your Stream credentials in the config/stream-laravel.php file.

GetStream.io Dashboard

  1. Create an application on GetStream.io.
  2. Retrieve the API key, API secret, and API app id from the dashboard.
  3. Create the necessary feeds for your application.

Lumen

  1. Install the package using Composer.
  2. Add 'GetStream\StreamLaravel\StreamLumenServiceProvider' to bootstrap/app.php.
  3. Manually create a config file in ./config/stream-laravel.php.

Summary

Stream Laravel is a versatile tool for integrating activity streams and news feeds into Laravel applications. By following the installation guide and utilizing its key features like Eloquent integration and custom data fields, developers can easily implement powerful functionalities within their projects.

laravel
Laravel

Laravel is a powerful and elegant PHP framework that provides developers with a comprehensive set of tools and features to build robust web applications. It follows the Model-View-Controller (MVC) architectural pattern, offering a clean and organized structure for writing efficient and maintainable code.