Package Data | |
---|---|
Maintainer Username: | bahjaat |
Maintainer Contact: | bahjaat@gmail.com (Edwin Heij) |
Package Create Date: | 2014-09-09 |
Package Last Update: | 2017-11-25 |
Home Page: | |
Language: | PHP |
License: | Unknown |
Last Refreshed: | 2024-11-24 15:06:01 |
Package Statistics | |
---|---|
Total Downloads: | 158 |
Monthly Downloads: | 1 |
Daily Downloads: | 0 |
Total Stars: | 1 |
Total Watchers: | 1 |
Total Forks: | 2 |
Total Open Issues: | 0 |
Laravel package to import data via Daisycon Rest API (affiliates)
First install the package via Composer:
composer require "bahjaat/daisycon":"^2.0"
Or manually include it into your composer.json file
{
"require": {
"bahjaat/daisycon": "^2.0"
}
}
and run composer update
after that.
Skip this step when using Laravel 5.5 or above.
Edit your config/app.php
file, to include the service provider:
Bahjaat\Daisycon\DaisyconServiceProvider::class
php artisan vendor:publish --provider="Bahjaat\Daisycon\DaisyconServiceProvider" --tag="config"
php artisan vendor:publish --provider="Cviebrock\EloquentSluggable\ServiceProvider"
php artisan migrate
After setting up you have to configure your Daisycon settings at app/config/daisycon.php
Really important attribute are:
When using >= v2.0.6 you can also set your .env
file with the following variables:
DAISYCON_USERNAME
DAISYCON_PASSWORD
DAISYCON_MEDIA_ID
DAISYCON_PUBLISHER_ID
For your convenience there are some database seed classes provided with the package.
Just run these commands:
php artisan db:seed --class=CountrycodesTableSeeder
php artisan db:seed --class=ActiveProgramTableSeeder
After all, you can import your programs, feeds and subscriptions into you own database. Go hit the road!
php artisan daisycon:get-programs
php artisan daisycon:get-subscriptions
php artisan daisycon:get-feeds
php artisan daisycon:get-products
Need some adjustments? Please create a pull-request and we will make this package a better one together.
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.
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.