Skip to content

fractaslabs/silverstripe-seeder-unsplash-provider

SilverStripe Seeder Unsplash provider [WIP]

Latest Stable Version Latest Unstable Version Total Downloads License

Overview

This is a SilverStripe Seeder Unsplash provider which grabs "random" beautiful photos from Unsplash API.

Note: this branch is under-development

Requirements

  • SilverStripe Framework 4+
  • SilverStripe Seeder

Installation

  • Install via Composer
composer require fractas/seeder-unsplash-provider
  • Add to your configuration: mysite/_config/seeder.yml
---
Name: seeder-config
---
Seeder\Seeder:
  create:
    Page:
      count: 100
        fields:
          Image: 'unsplashimage(1024,768)'
  • Run dev/build?flush=1
  • Change to project root and run
(unix)      $ framework/sake seed flush=1
(windows)   > php framework/cli-script.php seed flush=1

Bugtracker

Bugs are tracked on github.com

Licence

See Licence