GithubHelp home page GithubHelp logo

jeremykenedy / laravel-packer Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitfumes/laravel-packer

0.0 2.0 0.0 70.76 MB

Awesome Command Line Tool for speeding up your package creation.

License: MIT License

PHP 100.00%

laravel-packer's Introduction

Laravel Packer

GitHub issues Latest Stable Version Total Downloads GitHub stars License Twitter

Laravel Packer was created by, and is maintained by Sarthak, and it is a Command Line Tool which is going to help you in creating package.

Features

Installation

Install via composer.

Note: For windows user, first run composer global update

composer global require bitfumes/laravel-packer

Creating new Package Scaffolding

packr new your-package-name {vendor} {author} {author_email}

new

With the above command it will create package scaffolding for you.

Optional fields like 'vendor', 'author' and 'author_email' can also be given via command line interface if you are not willing to provide on command.

Same as Artisan commands

With this CLI, you will have access to all artisan commands you are familiar on Laravel.

You can create controller just like you do with php artisan

packr make:controller controller_name

make

Explore all commands, just run packr on your command line.

Now you can create Migrations and Factories also

Smart Clone

With packr clone command you can do 3 steps in just one.

packr clone {repositoryname}

This not only clone repository but also install composer and if that repository type is project, then it will generate key for project also.

Specify directory to clone

Just like git, you can clone repository to any directory, just give --dir= option for above command

packr clone {repositoryname} --dir={custom_directory_name}

Specify branch to clone

Just like git, you can clone any branch of given repository.

packr clone {repositoryname} --branch={branch_name}

Above command will create various files like

  • Model with relationships
  • Controller with all crud functions
  • Routes based on web or api file
  • factory
  • migration
  • unit test (if relationship is described in json)
  • Feature test for all crud part

This not only clone repository but also install composer and if that repository type is project, then it will generate key for project also.

clone

CRUD Generator

With packr crud command you can create crud for laravel appication with fully green tests

step 1

First we need to create a json structure for our migration of any model/table To do so run this command

packr crud:json {exactModelName}

step 2

Now you have json file, you can describe how your migration/schema is going to look. After giving all details you can now run command to actually create full crud for the model

packr crud:make {relativePathOfThatJsonFile}

License

This package inherits the licensing of its parent framework, Laravel, and as such is open-sourced software licensed under the MIT license

laravel-packer's People

Contributors

innoflash avatar morpheus7cs avatar mrailton avatar nunomaduro avatar pratiksh404 avatar sarthaksavvy avatar spekulatius avatar

Watchers

 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.