Giter Site home page Giter Site logo

cli2web's Introduction

CLI2Web (CommandLine Interface to Web)

FOSSA Status

Introduction

The aim of this project is to make it trivial to expose a shell script("command-line script" or "CLI script") as a web application.

This library offers conversion, logic and templates to gather user input, feed it to a shell script and render the output in the browser.

All that has to be provided is a shell script and configuration. Optionally logic can be added to compliment the input, output or render process.

Requirements

  • As this is a web application, it is assumed a web-server is available.
  • This project is written in PHP. Any actively support version is fine.

Installation

Installation is done using composer:

composer require potherca/cli2web

As this is a web application, it is assumed a web-server is available.

Usage

  • Create an index file in a public facing directory in the web-server
  • Include the cli2web engine
  • Feed the engine a configuration
  • Done.

For more advanced scenario's any of the following steps can also be taken:

  • Add logic that is called with the user input
    (instead of the CLI script being called directly)
  • Add logic that is called with the shell script output
    (instead of the output being displayed directly, "raw", as-is)
  • Add custom UI to display the returned output (instead of the output being displayed as plain-text)

License

FOSSA Status

cli2web's People

Contributors

fossabot avatar potherca avatar

Watchers

 avatar

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.