rojtjo / lumen-glide by Rojtjo

Easily integrate Glide with the Lumen micro-framework
31
0
3
Package Data
Maintainer Username: Rojtjo
Maintainer Contact: me@rojvroemen.com (Roj Vroemen)
Package Create Date: 2015-12-09
Package Last Update: 2019-06-06
Language: PHP
License: MIT
Last Refreshed: 2025-02-06 03:12:15
Package Statistics
Total Downloads: 31
Monthly Downloads: 0
Daily Downloads: 0
Total Stars: 0
Total Watchers: 3
Total Forks: 0
Total Open Issues: 0

lumen-glide

Latest Version on Packagist Software License Build Status Coverage Status Quality Score Total Downloads

Easily integrate Glide with the Lumen micro-framework.

Install

Via Composer

$ composer require rojtjo/lumen-glide

Configuration

Configuration can be done in multiple ways.

First method

Copy the config file from {package_dir}/config/glide.php to config/glide and update it with your own values.

Second method

Update the container bindings.

// Example configure GridFS.
$app->bind('glide.source', function($app) {
    $gridFS = ...
    return new League\Flysystem\Filesystem(
        new League\Flysystem\GridFS\GridFSAdapter($gridFS)
    );
});

Usage

Register the service provider.

// bootstrap/app.php
$app->register(Rojtjo\LumenGlide\GlideServiceProvider::class);

Change log

Please see CHANGELOG for more information what has changed recently.

Testing

$ composer test

Contributing

Please see CONTRIBUTING and CONDUCT for details.

Security

If you discover any security related issues, please email me@rojvroemen.com instead of using the issue tracker.

Credits

License

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