chuoke/image-gallery

A unified package of images for access to image sites.

0.0.3 2021-08-07 15:02 UTC

This package is auto-updated.

Last update: 2024-10-16 21:53:13 UTC


README

Latest Version on Packagist GitHub Code Style Action Status Total Downloads

Installation

You can install the package via composer:

composer require chuoke/image-gallery

Usage

$config = [
    'default' => 'bing',

    'drivers' => [
        'pexels' => [
            'api_key' => 'your-api-key',
        ],
        'unsplash' => [
            'access_key' => 'your-access-key',
        ],
    ],
];

$imageGallery = (new \Chuoke\ImageGallery\ImageGalleryFactory($config))->gallery('pexels');

$images = $imageGallery->get();

License

The MIT License (MIT). Please see License File for more information.