WARNING

This channel is deprecated. Please see the GitHub Repo (opens new window) for more information

# Evernote notifications channel for Laravel 5.3

Latest Version on Packagist (opens new window) Software License (opens new window) Build Status (opens new window) StyleCI (opens new window) SensioLabsInsight (opens new window) Quality Score (opens new window) Code Coverage (opens new window) Total Downloads (opens new window)

# Channel Deprecated

Please see this issue (opens new window) for more infomation.
This channel was deprecated in Oct 2019 due to lack of a maintainer.

This package makes it easy to create Evernote notes (opens new window) with Laravel 5.3.

# Contents

# Installation

You can install the package via composer:

composer require laravel-notification-channels/evernote

# Setting up the Evernote service

In order to add tickets to Evernote users, you need to obtain their access token.

Create a sandbox Evernote API key (opens new window) to get started.

To simplify development, you can also generate your personal development access token (opens new window).

# Usage

Now you can use the channel in your via() method inside the notification:

use NotificationChannels\Evernote\EvernoteChannel;
use NotificationChannels\Evernote\EvernoteContent;
use NotificationChannels\Evernote\EvernoteMessage;
use Illuminate\Notifications\Notification;

class ProjectCreated extends Notification
{
    public function via($notifiable)
    {
        return [EvernoteChannel::class];
    }

    public function toEvernote($notifiable)
    {
        return EvernoteMessage::create('Evernote message title')
                    ->sandbox()
                    ->content(EvernoteContent::create('Evernote content is here'))
                    ->tags(['Laravel','Notifications'])
                    ->reminder('tomorrow');
    }
}

In order to let your Notification know which Evernote user you are targeting, add the routeNotificationForEvernote method to your Notifiable model.

This method needs to return the access token of the authorized Evernote user.

public function routeNotificationForEvernote()
{
    return 'NotifiableAccessToken';
}

# Available Message methods

  • title(''): Accepts a string for the Evernote ticket title.
  • content(EvernoteContent): Accepts an EvernoteContent object.
  • sandbox(): Enables the Evernote sandbox mode (default false).
  • done(): Marks the Evernote ticket as done.
  • tags(''): Accepts an array with tags to add to the Evernote ticket.
  • reminder(''): Accepts a string or DateTime object for the Evernote ticket reminder.

# Available Content methods

  • content(''): Accepts a string value for the Evernote ticket content.
  • html(): Sets the content type to HTML.
  • plain(): Sets the content type to Plaintext (default).

# Changelog

Please see CHANGELOG (opens new window) for more information what has changed recently.

# Testing

$ composer test

# Security

If you discover any security related issues, please email m.pociot@gmail.com instead of using the issue tracker.

# Contributing

Please see CONTRIBUTING (opens new window) for details.

# Credits

# License

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