fractas/silverstripe-seeder-unsplash-provider

An Unsplash image provider for SilverStripe Seeder module

1.0 2017-10-10 20:24 UTC

This package is auto-updated.

Last update: 2024-11-29 05:26:45 UTC


README

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