PHPackages                             yamez/laravel-packer - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [CLI &amp; Console](/categories/cli)
4. /
5. yamez/laravel-packer

ActiveProject[CLI &amp; Console](/categories/cli)

yamez/laravel-packer
====================

Awesome Command Line Tool for speeding up your package creation.

v4.7.5(4y ago)03MITPHPPHP ^7.3|^8.0

Since Oct 9Pushed 4y agoCompare

[ Source](https://github.com/yame/laravel-packer)[ Packagist](https://packagist.org/packages/yamez/laravel-packer)[ RSS](/packages/yamez-laravel-packer/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (4)Versions (40)Used By (0)

Laravel Packer
==============

[](#laravel-packer)

[![GitHub issues](https://camo.githubusercontent.com/1ef23b281297d30d845cae6ac00d58078d85291b0d9382c4ad7dfb00b99fa57f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f6973737565732f62697466756d65732f6c61726176656c2d7061636b65722e737667)](https://github.com/bitfumes/laravel-packer/issues)[![Latest Stable Version](https://camo.githubusercontent.com/8662e26922fa7e52dd3300a2dc592790ffc477027ed2bd4d5ca530f017d1c954/68747470733a2f2f706f7365722e707567782e6f72672f62697466756d65732f6c61726176656c2d7061636b65722f762f737461626c65)](https://packagist.org/packages/bitfumes/laravel-packer)[![Total Downloads](https://camo.githubusercontent.com/486abcc5d3a809ade55f2241262dc676ca3182df1caf44bc93241992c67d8bb9/68747470733a2f2f706f7365722e707567782e6f72672f62697466756d65732f6c61726176656c2d7061636b65722f646f776e6c6f616473)](https://packagist.org/packages/bitfumes/laravel-packer)[![GitHub stars](https://camo.githubusercontent.com/83728c0598aa12e51f55d1d36cbf47792286635fa6b3a4a05215505f67ea545f/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f73746172732f62697466756d65732f6c61726176656c2d7061636b65722e737667)](https://github.com/bitfumes/laravel-packer/stargazers)[![License](https://camo.githubusercontent.com/cdbb5df1ebc85e288e0be8b020afaa2c950591281691b117a835a676d1e13c6d/68747470733a2f2f706f7365722e707567782e6f72672f62697466756d65732f6c61726176656c2d7061636b65722f6c6963656e7365)](https://packagist.org/packages/bitfumes/laravel-packer)[![Twitter](https://camo.githubusercontent.com/dec9b42ed830161893d97c448ef3c4ea4bf1ab689aaed443f6ae1d59bd6d0ddc/68747470733a2f2f696d672e736869656c64732e696f2f747769747465722f75726c2f68747470732f6769746875622e636f6d2f62697466756d65732f6c61726176656c2d7061636b65722e7376673f7374796c653d736f6369616c)](https://twitter.com/intent/tweet?text=Wow:&url=https%3A%2F%2Fgithub.com%2Fsarthaksavvy%2Flaravel-packer)

Laravel Packer was created by, and is maintained by [Sarthak](https://github.com/sarthaksavvy), and it is a Command Line Tool which is going to help you in creating package.

- Built on with [Laravel-zero](http://laravel-zero.com).
- Detailed tutorials found on [Youtube playlist](https://www.youtube.com/playlist?list=PLe30vg_FG4OR9xvBpNW-SkK3T1IiLVM98)

Features
--------

[](#features)

- [Features](#features)
- [Installation](#installation)
- [Creating new Package Scaffolding](#creating-new-package-scaffolding)
- [Same as Artisan commands](#same-as-artisan-commands)
- [Smart Clone](#smart-clone)
    - [Specify directory to clone](#specify-directory-to-clone)
    - [Specify branch to clone](#specify-branch-to-clone)
- [CRUD Generator](#crud-generator)
    - [step 1](#step-1)
    - [step 2](#step-2)
    - [Todo](#todo)
- [License](#license)

Installation
------------

[](#installation)

Install via composer.

Note: For windows user, first run `composer global update`

```
composer global require bitfumes/laravel-packer
```

Creating new Package Scaffolding
--------------------------------

[](#creating-new-package-scaffolding)

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

[![new](https://user-images.githubusercontent.com/41295276/46673797-38331580-cbf8-11e8-88e6-5d6b0dc18b93.gif)](https://user-images.githubusercontent.com/41295276/46673797-38331580-cbf8-11e8-88e6-5d6b0dc18b93.gif)

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

[](#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](https://user-images.githubusercontent.com/41295276/46673800-38cbac00-cbf8-11e8-9a1b-c02e91da8563.gif)](https://user-images.githubusercontent.com/41295276/46673800-38cbac00-cbf8-11e8-9a1b-c02e91da8563.gif)

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

*Now you can create Migrations and Factories also*

Smart Clone
-----------

[](#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

[](#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

[](#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](https://user-images.githubusercontent.com/41295276/46906649-7eec7c80-cf24-11e8-9f18-7dd7fbfe1695.gif)](https://user-images.githubusercontent.com/41295276/46906649-7eec7c80-cf24-11e8-9f18-7dd7fbfe1695.gif)

CRUD Generator
--------------

[](#crud-generator)

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

### step 1

[](#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

[](#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}
```

### Todo

[](#todo)

- Add resource in controller for CRUD maker
- Add form request in controller for CRUD maker

License
-------

[](#license)

This package inherits the licensing of its parent framework, Laravel, and as such is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)

###  Health Score

31

—

LowBetter than 68% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity3

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity79

Established project with proven stability

 Bus Factor1

Top contributor holds 86.3% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~29 days

Recently: every ~0 days

Total

38

Last Release

1683d ago

Major Versions

v1.5.5 → v2.0.02019-07-21

v2.0.0 → v3.0.02019-10-20

v3.1.1 → v4.0.02020-10-01

PHP version history (6 changes)v1.0.0PHP ^7.1.3

v3.0.3PHP ^7.2

v4.0.0PHP ^7.3

v4.1.0PHP ^7.2.5

v4.3PHP ^7.3|^7.4

v4.4.0PHP ^7.3|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/8a5e9d4d2e2d82d17f4e88594e7868355e9e831b2c5f66813d8d4119da250145?d=identicon)[hiyame](/maintainers/hiyame)

---

Top Contributors

[![sarthaksavvy](https://avatars.githubusercontent.com/u/41295276?v=4)](https://github.com/sarthaksavvy "sarthaksavvy (88 commits)")[![spekulatius](https://avatars.githubusercontent.com/u/8433587?v=4)](https://github.com/spekulatius "spekulatius (5 commits)")[![nunomaduro](https://avatars.githubusercontent.com/u/5457236?v=4)](https://github.com/nunomaduro "nunomaduro (3 commits)")[![morpheus7CS](https://avatars.githubusercontent.com/u/8884582?v=4)](https://github.com/morpheus7CS "morpheus7CS (2 commits)")[![innoflash](https://avatars.githubusercontent.com/u/12772919?v=4)](https://github.com/innoflash "innoflash (2 commits)")[![hotmeteor](https://avatars.githubusercontent.com/u/378585?v=4)](https://github.com/hotmeteor "hotmeteor (1 commits)")[![pratiksh404](https://avatars.githubusercontent.com/u/40533219?v=4)](https://github.com/pratiksh404 "pratiksh404 (1 commits)")

---

Tags

cliconsolelaravel package generatorpackage makerlaravel package maker

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/yamez-laravel-packer/health.svg)

```
[![Health](https://phpackages.com/badges/yamez-laravel-packer/health.svg)](https://phpackages.com/packages/yamez-laravel-packer)
```

###  Alternatives

[bitfumes/laravel-packer

Awesome Command Line Tool for speeding up your package creation.

4391.3k](/packages/bitfumes-laravel-packer)[mehrancodes/laravel-harbor

A CLI tool to Quickly create On-Demand preview environment for your apps.

9989.0k](/packages/mehrancodes-laravel-harbor)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
