Giter Site home page Giter Site logo

laravel-cision's Introduction

Laravel-Cision

Fetches and exposes news from Cision in Laravel.

Configuration

'feed_id'           => 'Cision Feed Id',
'feed_news_types'   => 'Type type of news to display',
'feed_image_style'  => 'The style to use for images',
'feed_date_format'  => 'The date format to use',
'feed_num_items'    => 'Number of items that should be fetched',
'feed_items_per_page'   => 'Number of items per page',
'feed_cache_duration' => 30,
'feed_base_slug'    => 'The base slug to use for the news feed',
'feed_tags'         => 'Tags to filter on',
'feed_start_date'   => 'Start date to fetch news from',
'feed_end_date'     => 'End date to fetch news from'

You can also use the following environment variables to set configuration values:

CISION_FEED_ID=A275C0BF733048FFAE9126ACA64DD08F
CISION_FEED_NEWS_TYPES=PRM,RPT
CISION_FEED_IMAGE_STYLE=UrlTo400x400ArResized
CISION_FEED_DATE_FORMAT=Y-m-d
CISION_FEED_NUM_ITEMS=50
CISION_FEED_ITEMS_PER_PAGE=0
CISION_FEED_CACHE_DURATION=0
CISION_FEED_BASE_SLUG=ir
CISION_FEED_TAGS=foo,bar*
CISION_FEED_START_DATE=2001-01-01*
CISION_FEED_END_DATE=2010-01-01*

* not used at the moment

Information types

The are the different information types that are being used:

  • KMK - Annual Financial statement
  • RDV - Annual Report
  • PRM - Company Announcement
  • RPT - Interim Report
  • INB - Invitation
  • NBR - Newsletter

Installation

First add the repository in your composer.json file:

"repositories": [
    {
        "url": "https://github.com/krollobrocket/laravel-cision.git",
        "type": "git"
    }
],

Then require and publish the package:

composer require cyclonecode/cision
php artisan vendor:publish
# Now you can add your own configuration to the config/cision.php file.
# Then go to route configured by 'feed_base_slug' to view your news feed.

laravel-cision's People

Contributors

cyclonecode avatar

Watchers

krollobrocket avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.