Git Product home page Git Product logo

bolt-thumbs's Introduction

Bolt Thumbs

New and improved Thumbnail handler for Bolt Images

Here's a quick run through of how to get this running on a dev version of Bolt. It should hopefully be fairly simple.

#####If you use composer to pull / update bolt then this method will work

First add this repo to your composer.json so that it loads from github rather than Packagist.

    ....
    "repositories": [
        { "type": "vcs","url":  "https://github.com/bolt/bolt-thumbs"}
    ],
    ....

Then add bolt/thumbs as a requirement for the project.

    "require": {
        .....
        "bolt/thumbs": "dev-master",
        .....
    }

running a composer update should now get you the package. Then all we need to do is mount it as a controller.

To do this, just make one modification to the main Bolt\Application file in side the initMountpoints() methods and add in this mount command:

    // Mount the 'thumbnail' provider on /thumbs.
    $this->mount('/thumbs', new \Bolt\Thumbs\ThumbnailProvider());

#####If you manually manage your install without Composer:

Download this project and put it somewhere in your project.

If you are not using composer all you need to di is make sure is that the bolt-thumbs package can autoload correctly.

Add the same line as above to your Bolt\Application initMountpoints() method. Then download this package and make sure that the classes can be autoloaded.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.