Code Monkey home page Code Monkey logo

forkmodule-cli's Introduction

Forkmodule-cli

Forkmodule-cli is a simple php command line program that helps you create new plugins for ForkCMS by creating a skeleton of boilerplate directories and files that you otherwise need to create by hand.

  1. Features

Currently Forkmodule-cli only supports creating a module from scratch. It will create all frontend and backend actions and widgets files that you need. You can then get started with writing code instead of creating directories for half an hour.

  • Based on Symfony Console
  • Twig templates for easy templating
  • Built-in support for fork tags, fork search engine, fork meta/seo
  1. Configuration

When you run forkmodule-cli, it will ask you everything it needs to know.

  1. Installing forkmodule-cli on your system

Assuming you're on Mac OSX or GNU/Linux with git, php and curl installed:

git clone https://github.com/turanct/forkmodule-cli.git /usr/local/forkmodule-cli && cd /usr/local/forkmodule-cli && curl -sS https://getcomposer.org/installer | php && php composer.phar install && ln -s /usr/local/forkmodule-cli/forkmodule.php /usr/local/bin/forkmodule && cd -

Or you could use the installer, do this (the installer will allow you to use a prefix):

curl https://raw.github.com/turanct/forkmodule-cli/master/install.sh | sh

You can now run the forkmodule command from your command line.

  1. Updating to the latest version

Run this in your terminal, assuming you used the installer to install forkmodule-cli

cd /usr/local/forkmodule-cli/ && git pull origin master && php composer.phar install && cd -

This will fetch the latest commits on the master branch of this repo.

Alternatively if you're using a recent version of forkmodule-cli, you can just run this command from anywhere in your terminal to update your current install to the newest version:

forkmodule update
  1. Usage

You can use forkmodule-cli to create a module by running it, like this:

forkmodule

Alternatively, you can specify the name of the module as a parameter, like this:

forkmodule create module_name_here
  1. License

Forkmodule-cli is licensed under the MIT License

forkmodule-cli's People

Contributors

turanct avatar jonasdekeukelaere avatar woutersioen avatar carakas avatar tijsverkoyen avatar

Watchers

James Cloos avatar  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.