bahjaat/daisycon
Larablocks Analysis
bahjaat/daisycon works with any PHP project: the latest release (2.0.7, Aug 4, 2017) doesn't depend on Laravel.
Laravel 5 in earlier releases.
Recommendation checks
Not advisedNot advised: no release or commit in over 2 years.
- No release or commit in over 2 years
- No release in the last 12 months (last: Aug 4, 2017)
- 0 downloads a month (needs 10,000)
- 1 GitHub star (needs 100)
State
Likely abandoned- No release or commit in over 2 years.
- Last stable release: Aug 4, 2017.
- No releases in the last 12 months.
- First released: Aug 21, 2016.
- 0 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.
| Install | |
|---|---|
composer require bahjaat/daisycon |
|
| Latest Version: | 2.0.7 |
| PHP: | >=5.4 |
| Older releases: | 5 |
| Last Updated: | Nov 25, 2017 |
| Links: | GitHub · Packagist |
Daisycon
Laravel package to import data via Daisycon Rest API (affiliates)
Installation
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.
Setup
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
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
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
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
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.
Just run these commands:
php artisan db:seed --class=CountrycodesTableSeederphp artisan db:seed --class=ActiveProgramTableSeeder
Artisan
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
Todo
- Writing tests
Last words
Need some adjustments? Please create a pull-request and we will make this package a better one together.
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.
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.
Related Packages
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.0.7 | >=5.4 | |||
| 2.0.6 | >=5.4 | |||
| 2.0.5 | >=5.4 | |||
| 2.0.4 | >=5.4.0 | |||
| 2.0.3 | >=5.4.0 | |||
| 2.0.2 | >=5.4.0 | |||
| 2.0.1 | >=5.4.0 | ~5 | ||
| 2.0.0 | >=5.4.0 | ~5 | ||
| 1.0.0 | >=5.4.0 | ~5 |