2017 © Pedro Peláez
 

library daisycon

Laravel package to import data via Daisycon Rest API (affiliates)

image

bahjaat/daisycon

Laravel package to import data via Daisycon Rest API (affiliates)

  • Saturday, November 25, 2017
  • by bahjaat
  • Repository
  • 1 Watchers
  • 0 Stars
  • 122 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 1 Forks
  • 0 Open issues
  • 13 Versions
  • 0 % Grown

The README.md

Daisycon

Laravel package to import data via Daisycon Rest API (affiliates), (*1)

Installation

First install the package via Composer:, (*2)

composer require "bahjaat/daisycon":"^2.0"

Or manually include it into your composer.json file, (*3)

{
    "require": {
        "bahjaat/daisycon": "^2.0"
    }
}

and run composer update after that., (*4)

Setup

Skip this step when using Laravel 5.5 or above., (*5)

Edit your config/app.php file, to include the service provider:, (*6)

Bahjaat\Daisycon\DaisyconServiceProvider::class, (*7)

Publishing config files

php artisan vendor:publish --provider="Bahjaat\Daisycon\DaisyconServiceProvider" --tag="config"
php artisan vendor:publish --provider="Cviebrock\EloquentSluggable\ServiceProvider"

Migrate the database

php artisan migrate, (*8)

Configuration

After setting up you have to configure your Daisycon settings at app/config/daisycon.php Really important attribute are: * username * password * media_id * publisher_id, (*9)

When using >= v2.0.6 you can also set your .env file with the following variables:, (*10)

DAISYCON_USERNAME
DAISYCON_PASSWORD
DAISYCON_MEDIA_ID
DAISYCON_PUBLISHER_ID

Seeding database

For your convenience there are some database seed classes provided with the package. - The first one is adding some country(codes) into the databse. - The second one is adding some active programs., (*11)

Just run these commands:, (*12)

  • php artisan db:seed --class=CountrycodesTableSeeder
  • php artisan db:seed --class=ActiveProgramTableSeeder

Artisan

After all, you can import your programs, feeds and subscriptions into you own database. Go hit the road!, (*13)

php artisan daisycon:get-programs
php artisan daisycon:get-subscriptions
php artisan daisycon:get-feeds
php artisan daisycon:get-products

Todo

  • Writing tests

Last words

Need some adjustments? Please create a pull-request and we will make this package a better one together., (*14)

LICENSE

This library is free software; you can redistribute it and/or modify it under the terms of the GNU Lesser General Public License as published by the Free Software Foundation; either version 2.1 of the License, or (at your option) any later version., (*15)

This library is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details or LICENSE.txt distributed with this class., (*16)

The Versions

25/07 2017
25/07 2017
21/08 2016

1.0.0

1.0.0.0

Laravel package to import data via Daisycon Rest API (affiliates)

  Sources   Download

The Requires

 

The Development Requires

by Edwin Heij

laravel affiliates daisycon

13/03 2015

2.x-dev

2.9999999.9999999.9999999-dev

Laravel package to import data via Daisycon Rest API (affiliates)

  Sources   Download

The Requires

 

by Edwin Heij

18/11 2014

1.x-dev

1.9999999.9999999.9999999-dev

  Sources   Download

The Requires

 

by Edwin Heij