承接 techinasia/laravel-stream 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

techinasia/laravel-stream

Composer 安装命令:

composer require techinasia/laravel-stream

包简介

Stream bridge for Laravel 5.

README 文档

README

Dependency Status Build Status Coverage Status StyleCI Status

Stream.io bridge for Laravel 5.

Contents

Features

  • Wrapper for Stream's low-level PHP client.
  • Multiple applications support.
  • Laravel facade for client.

Installation

Install this package with Composer:

composer require techinasia/laravel-stream

Register the service provider in your config/app.php:

Techinasia\GetStream\StreamServiceProvider::class

[Optional] Register the facade in your config/app.php, under aliases:

'Stream' => Techinasia\GetStream\Facades\Stream::class

Configuration

Publish all the vendor assets:

php artisan vendor:publish

This will create a file called stream.php in the config folder. Create an application via Stream's admin interface and copy the API key and secret to the configuration file.

You can add more applications by adding more key/secret pairs to the configuration file:

'applications' => [
    'main' => [
        'key' => 'key1',
        'secret' => 'secret1',
    ],
    'foo' => [
        'key' => 'foo',
        'secret' => 'bar',
    ],
],

Examples

use Techinasia\GetStream\Facades\Stream;

// Add an activity to a user feed via the default application.
$feed = Stream::feed('user', 1);
$feed->addActivity([
    'actor' => 1,
    'verb' => 'like',
    'object' => 3,
    'foreign_id' => 'post:42',
]);

// Add another activity to a user feed via another application.
$feed = Stream::application('another')->feed('user', 1);
$feed->addActivity([
    'actor' => 1,
    'verb' => 'like',
    'object' => 3,
    'foreign_id' => 'post:42',
]);

Changelog

Please see CHANGELOG for more information for what has changed recently.

Testing

composer test

Security

If you discover any security related issues, please email dev@techinasia.com instead of using the issues tracker.

Contributing

Please see CONTRIBUTING for details.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 23
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 0
  • 依赖项目数: 1
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 15
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-02-06

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固