Giter Site home page Giter Site logo

semiorbit-framework-console's Introduction

Semiorbit Framework CLI

Create Model

php sc make:model {model} {--table=1} {-c} {-u} {--case=p} {-r}
php sc mdl {model} {--table=1} {-c} {-u} {--case=p} {-r}

model Model name

--table [optional] related table

--case p= PascalCase [default], c= camelCase, s=snake_case

-c clean -u update -r overwrite

Create Controller

php sc make:controller {ctrl} {-a} {-b} {-c} {-r}
php sc ctrl {ctrl} {-a} {-b} {-c} {-r}

ctrl Controller name

-a RestController (Api Controller)

-b BaseController

-c clean -r overwrite

Create Package

php sc make:package {package} {-r} {-f}
php sc pkg {package} {-r} {-f}

package Package name

-r overwrite

'-f' create all package folders

Set Global Variables
php sc use {key} {value} {-c}

Generate Language File
php sc make:lang {dict} {--table=1} {--lang=0} {-c} {-u} {-r}
php sc lng {dict} {--table=1} {--lang=0} {-c} {-u} {-r}

Create All (Controller + Model + language Files)
php sc mk {name} {--table=1} {--case=p} {-r}

Clear Cache
php sc cache:clear {-f} {--key}
Clear Config Cache
php sc ccc
Clear Framework Cache
php sc ccf
Clear All Cache
php sc cc

SQL Migration

Create SQL files

Creates sql migration files in src/database/{con} and src/database/{con}/rollback

php sc mksql {table} {--con}

In the generated sql files write your sql queries that creates your tables, fields, indices...etc In rollback folder write queries that reverse operations.

Migrate

php sc migrate:sql {-r} {--con}

OR:

php sc db

Rollback

php sc migrate:sql -r

OR:

php sc db -r

semiorbit-framework-console's People

Contributors

ibrahimkhalil 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.