eniams/linkedin-notifier
Composer 安装命令:
composer require eniams/linkedin-notifier
包简介
Symfony LinkedIn Notifier Bridge
关键字:
README 文档
README
Provides LinkedIn integration for Symfony Notifier.
Installation
$ composer require eniams/linkedin-notifier
Enable the Bundle
Add Eniams\Notifier\LinkedIn\LinkedInNotifierBundle::class => ['all' => true], in bundles.php
Enable the LinkedIn transport
Add the linkedin chatter in config/packages/notifier.yaml
framework: notifier: chatter_transports: linkedin: '%env(LINKEDIN_DSN)%'
Define the DSN with your credential.
You can see how to get credentials from LinkedIn
LINKEDIN_DSN='linkedin://token:user-id@default'
Use it !
the example suppose that you have enable the autowiring
<?php use Symfony\Component\Notifier\Notification\Notification; use Symfony\Component\Notifier\NotifierInterface; public function message(NotifierInterface $notifier) { $notification = new Notification('Hello World', ['chat/linkedin']); $notifier->send($notification); }
统计信息
- 总下载量: 43
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 4
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-12-08