Giter Site home page Giter Site logo

dApp

This is the command line interface for the Dappur PHP Framework

Pre-Requisites

Composer - Dependency manager is required in order to use the Dappur PHP Framework. Installation Instructions

Phinx - Phinx is required in order to utilize the database migrations. It is recommended that you install Phinx globally via composer by running:

$ composer global require robmorgan/phinx

Installation

$ composer global require dappur/dapp

Usage

new

This command creates a new Dappur application in the specified folder using the composer create-project command.

  • name - The folder name for your new appliciation.
  • --theme -t (Optional) - Install a custom frontend theme from a git repo. Default: [email protected]:dappur/theme-dappur.git
  • --dashboard -d (Optional) - Install a custom dashboard theme from a git repo. Default: [email protected]:dappur/theme-AdminLTE.git
  • --vagrant (Optional) - If set, runs vagrant up when installation is complete. Default: false
$ dapp new name (--theme=THEME_REPO --dashboard=THEME_REPO --vagrant)

theme

This command allows you to install official and custom themes from git repositories.

  • url (Optional) - Git repo url for the theme that you wish to install. If no url is set, you will be presented a list of official themes to install.
  • --download-only (Optional) - If set, the theme will be copied into the view folder, but the database will not be updated.
$ dapp theme (url --download-only)

controller

This command generated a new controller class in app/src/Controller as well as having the controller automatically added to the container dependencies with an entry in app/src/bootstrap/controllers.php

  • name - The name of your controller class in PascalCase format. This command also supports generating nested class names, i.e. NewController\SubController.
$ dapp controller name

app

This command generated a new App class template in app/src/App using the class name that you specify.

  • name - The name of your class in PascalCase format. This command also supports generating nested class names, i.e. NewController\SubController.
$ dapp app name

middleware

This command generated a new App class template in app/src/Middleware using the class name that you specify.

  • name - The name of your class in PascalCase format. This command also supports generating nested class names, i.e. MyMiddleware\SubMiddleware.
$ dapp middleware name

twigex

This command generated a new App class template in app/src/TwigExtensions using the class name that you specify.

  • name - The name of your class in PascalCase format. This command also supports generating nested class names, i.e. MainExtension\SubExtension.
$ dapp twigex name

server

This command launches an instance of PHP's built-in web server, php -S defaulted to port 8181.

  • port (Optional) - Port to run the web server on. Default is 8181.
$ dapp server (port=PORT)

Dappur's Projects

dapp icon dapp

Command line interface for the Dappur PHP Framework

docs icon docs

FREE Bootstrap Theme for Your Documentation/Project

framework icon framework

A stylish PHP application framework crafted using Slim, Twig, Eloquent and Sentinel designed to get you from clone to production in a matter of minutes.

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.