Skip to content
This repository has been archived by the owner. It is now read-only.
Switch branches/tags

Latest commit


Git stats


Failed to load latest commit information.
Latest commit message
Commit time

ImguBox - Store Imgur favorites in Dropbox

Build Status Code Climate Test Coverage

This project is no longer maintained!

Found a funny cat GIF or an awesome wallpaper album? ImguBox stores those files within your Dropbox automatically.

Read more about this project on my blog.


This application was built with the PHP Framework Laravel 5.2. To run imgubox on your own server you need at least PHP 5.5!

To run the application you need the following:

### Installation

git clone && cd imgubox
cp .env.example .env
composer install
php artisan key:generate

### Configuration

After you’ve installed the PHP dependencies you have to update the .env file to your needs:

  • Add Database Credentials,
  • Add Client ID, Secret Key, Redirect URL for Imgur and Dropbox

You then need to migrate and seed your database. Run the following on your server:

php artisan migrate --seed

The Application should be ready to go. Open the site in your browser of choice and create an account. You should then be able to connect with your Imgur and Dropbox Account.

Running the Application

The core of imgubox is a scheduled command which runs every 30 minutes. The command will then dispatches a job to the queue for every user with an active Imgur and Dropbox token. The Job gets the latest favorited images of the given user and dispatches another job which will then store the passed Imgur Image in Dropbox.

Add the following line to your crontab. The schedule:run runs Laravel’s internal Scheduling class. Read more about it here.

* * * * * php /home/imgubox/artisan schedule:run 1>> /dev/null 2>&1

As described above, Laravel pushed Jobs onto the queue you have configured in the beginning. The Queue can be consumed by the queue:work command. You can add the following line to your supervisord configuration. Replace $YOUR_QUEUE_CONNECTION with whatever you have configured in this file.

php /home/imgubox/artisan queue:work $YOUR_QUEUE_CONNECTION --queue=high,low --daemon  2>&1