GithubHelp home page GithubHelp logo

whip's Introduction

Whip

A sweet CLI tool that whips up image ads for any keywords you choose. It's backed by a whopping 1Kb JSON data file but can easily be extended to support MySQL or any other database of your choice.

Requirements

All you need is PHP 7.1.0+ and Composer for autoload dependencies.

  • PHP 7.1.0+
  • Composer

Installation

There are two ways: by downloading the ZIP file or by cloning this repository.

Install from ZIP file

The easiest way is just to download and extract the ZIP file and then from the command line cd to the directory with the composer.json file and run the following:

$ composer install

Install via git clone

Alternatively, you can use git to clone this repository. To clone this repository, run the following in the command line:

$ git clone https://github.com/slicvic/whip.git

When it's finished, run the following two commands:

$ cd whip
$ composer install

Usage

To start whipping run the following in the command line and follow the prompt. Enjoy!

$ cd whip/src
$ php whip-cli.php

Here it is in action:

#######################################################
                  Now watch me whip!
#######################################################


1) Data file (leave blank for default) [/home/vagrant/Code/whip/src/../data/cars.json]:
2) Number of images to display: 5
3) Keywords to match: (comma-separated, i.e. red, honda, 2017): honda,red


#######################################################
        Woot woot! Total of 4 result(s) found!
        You asked for 5 but that's all we got!
#######################################################


#1
	URL: https://red-honda-civic-2017.png
	Width: 100
	Height: 100
#2
	URL: https://2018-honda-fit.png
	Width: 200
	Height: 200
#3
	URL: https://honda-accord-sedan-2018-yellow.png
	Width: 300
	Height: 300
#4
	URL: https://2013-cooper-red.png
	Width: 500
	Height: 500

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.