eniams / linkedin-notifier
Symfony LinkedIn Notifier Bridge
Installs: 41
Dependents: 0
Suggesters: 0
Security: 0
Stars: 4
Watchers: 2
Forks: 0
Open Issues: 3
Type:symfony-bridge
Requires
- php: ^7.2.5
- symfony/http-client: ^4.3|^5.0
- symfony/notifier: ^5.0|^5.1
This package is auto-updated.
Last update: 2024-12-21 17:58:49 UTC
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); }