PHPackages                             toanld/laravel-package-maker - 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. toanld/laravel-package-maker

ActivePackage

toanld/laravel-package-maker
============================

Get a package skeleton and all other `make` commands from laravel base for package development.

v1.0.3(2y ago)010MITPHP

Since Oct 17Pushed 2y agoCompare

[ Source](https://github.com/toanld/laravel-package-maker)[ Packagist](https://packagist.org/packages/toanld/laravel-package-maker)[ GitHub Sponsors](https://github.com/Naoray)[ RSS](/packages/toanld-laravel-package-maker/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (2)Dependencies (5)Versions (4)Used By (0)

laravel-package-maker
=====================

[](#laravel-package-maker)

[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Total Downloads](https://camo.githubusercontent.com/c1466839c9232cf32d4aa7c134881d6966af8de0e5e94095a7555b9294c4d71e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6e616f7261792f6c61726176656c2d7061636b6167652d6d616b65722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/naoray/laravel-package-maker)

All the `make` commands you use in your daily Laravel app development workflow but for packages! This package was created solely for the purpose to make package development as fast and easy as possible. Creating a new package only takes one command (`make:package`) and you will end up with the following file structure:

```
.
└── package
    ├── .codecov.yml
    ├── composer.json
    ├── CONTRIBUTING.md
    ├── .gitignore
    ├── LICENSE.md
    ├── phpunit.xml
    ├── readme.md
    ├── src
    │   └── PackageServiceProvider.php
    ├── .styleci.yml
    ├── tests
    │   └── TestCase.php
    └── .travis.yml
```

Install
-------

[](#install)

`composer require toanld/laravel-package-maker --dev`

Usage
-----

[](#usage)

- [laravel-package-maker](#laravel-package-maker)
    - [Install](#install)
    - [Usage](#usage)
        - [Create a package](#create-a-package)
        - [Create a nova tool](#create-a-nova-tool)
        - [Add a package](#add-a-package)
        - [Save package credentials](#save-package-credentials)
        - [Delete package credentials](#delete-package-credentials)
        - [Clone a package](#clone-a-package)
        - [Replace Content](#replace-content)
        - [Make Commands](#make-commands)
            - [Foundation](#foundation)
            - [Database](#database)
            - [Routing](#routing)
            - [Standard Php](#standard-php)
        - [Commands used for creating initial package stubs](#commands-used-for-creating-initial-package-stubs)
        - [Example Usage](#example-usage)
    - [Testing](#testing)
    - [Changelog](#changelog)
    - [Contributing](#contributing)
    - [Credits](#credits)
    - [Security](#security)
    - [License](#license)

### Create a package

[](#create-a-package)

```
php artisan make:package

```

![make:package](https://user-images.githubusercontent.com/10154100/44323501-89bdf000-a452-11e8-8fc4-3ec5c451c30a.gif)

### Create a nova tool

[](#create-a-nova-tool)

```
php artisan make:nova

```

Inspired by [Spatie's nova-skeleton-tool](https://github.com/spatie/skeleton-nova-tool) this command clones the repository, replaces all strings with your own and adds it to your own project.

[![make:nova](https://user-images.githubusercontent.com/10154100/44515270-5d100f80-a6c2-11e8-9a8c-a26e9a3af55d.png)](https://user-images.githubusercontent.com/10154100/44515270-5d100f80-a6c2-11e8-9a8c-a26e9a3af55d.png)

### Add a package

[](#add-a-package)

```
php artisan package:add

```

If you have already created a package or you want to add a modified version of a package which is currently only available locally, you can use the following command to add you package to your project. It does simply add your package to your project`s composer repositories and requires a local version of it.

**This command is run by `make:package` automatically, so you have no need to execute it after creating a package!**

### Save package credentials

[](#save-package-credentials)

```
php artisan package:save
				{namespace : Root namespace of the package (Vendor\Package_name)}
				{path : Relative path to the package's directory}

```

Every `package:*` command needs to know the package's *namespace* and the relative *path* to the location your package is stored. Because of that every `package:*` command comes with those two options by default. To avoid entering those two options every time a `package:*` command executed this command saves the credentials of your package in the cache.

### Delete package credentials

[](#delete-package-credentials)

```
php artisan package:delete

```

This one wipes all stored credentials from your cache.

### Clone a package

[](#clone-a-package)

```
php artisan package:clone
                {src : Source path of the package to clone}
                {target : Path where it should be cloned in}

```

The clone command clones a given repository or directory into the given target.

### Replace Content

[](#replace-content)

```
php artisan package:replace
                {path : The path to a file or directory}
                {--O|old=* : Old strings which will be replaced}
                {--N|new=* : New strings which will be used as replacement}'

```

The replace command takes a path of a file or a directory and an indefinite number of 'old' options which will be replaced by the 'new' options.

### Make Commands

[](#make-commands)

All of these commands do have all arguments &amp; options to which you are used to in a normal laravel app! To execute any of these commands simply add the prefix `package:`.

#### Foundation

[](#foundation)

- `channel`
- `console`
- `event`
- `exception`
- `job`
- `listener`
- `mail`
- `model`
- `notification`
- `observer`
- `policy`
- `provider`
- `request`
- `resource`
- `rule`
- `test`

#### Database

[](#database)

- `factory`
- `migration`
- `seeder`

#### Routing

[](#routing)

- `controller`
- `middleware`

#### Standard Php

[](#standard-php)

All of the following routes only accept a `name` argument.

- `contract`
- `interface` (same as `contract`)
- `trait`

### Commands used for creating initial package stubs

[](#commands-used-for-creating-initial-package-stubs)

- `package:basetest {provider : The package's provider name}` - creates `TestCase` in `tests` folder
- `package:codecov` - creates a `.codecov.yml` file
- `package:composer {--author : The author of the package.} {--email : The author's email.}` - creates `composer.json`
- `package:contribution` - creates `CONTRIBUTING.md`
- `package:gitignore` - creates `.gitignore` file
- `package:license {--copyright : The company or vendor name to place it int the license file}` - creates `LICENSE.md` file
- `package:phpunit` - creates `phpunit.xml`
- `package:readme {--author : The author of the package.} {--email : The author's email.}` - creates `readme.md`
- `package:styleci` - creates `.styleci.yml`
- `package:travis` - creates `.travis.yml`

### Example Usage

[](#example-usage)

*Use a few `make` commands*![package:*](https://user-images.githubusercontent.com/10154100/44323506-8cb8e080-a452-11e8-9f7c-fb07462c9b96.gif)

*All arguments &amp; options you know from the standard `make` commands are available. Create a model with all option.*![package:model --all](https://user-images.githubusercontent.com/10154100/44323509-8f1b3a80-a452-11e8-9a98-1ecaa96b1ae6.gif)

Testing
-------

[](#testing)

Run the tests with:

```
vendor/bin/phpunit
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Krishan König](https://github.com/naoray)
- [All Contributors](https://github.com/naoray/laravel-package-maker/contributors)

Security
--------

[](#security)

If you discover any security-related issues, please email  instead of using the issue tracker.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](/LICENSE.md) for more information.

###  Health Score

22

—

LowBetter than 22% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity5

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity45

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 85% 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 ~0 days

Total

3

Last Release

937d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b884bdad7cead7cd70b807b4c4f3453d6eee6f4e7e8326b42a799553fb63eb9c?d=identicon)[toanld1905](/maintainers/toanld1905)

---

Top Contributors

[![Naoray](https://avatars.githubusercontent.com/u/10154100?v=4)](https://github.com/Naoray "Naoray (215 commits)")[![rennokki](https://avatars.githubusercontent.com/u/21983456?v=4)](https://github.com/rennokki "rennokki (21 commits)")[![byjujohn](https://avatars.githubusercontent.com/u/1469621?v=4)](https://github.com/byjujohn "byjujohn (8 commits)")[![immeyti](https://avatars.githubusercontent.com/u/24190257?v=4)](https://github.com/immeyti "immeyti (4 commits)")[![toanld](https://avatars.githubusercontent.com/u/33773069?v=4)](https://github.com/toanld "toanld (4 commits)")[![myckhel](https://avatars.githubusercontent.com/u/34090541?v=4)](https://github.com/myckhel "myckhel (1 commits)")

---

Tags

laravel

### Embed Badge

![Health badge](/badges/toanld-laravel-package-maker/health.svg)

```
[![Health](https://phpackages.com/badges/toanld-laravel-package-maker/health.svg)](https://phpackages.com/packages/toanld-laravel-package-maker)
```

###  Alternatives

[barryvdh/laravel-ide-helper

Laravel IDE Helper, generates correct PHPDocs for all Facade classes, to improve auto-completion.

14.9k123.0M686](/packages/barryvdh-laravel-ide-helper)[laravel/ui

Laravel UI utilities and presets.

2.7k134.9M599](/packages/laravel-ui)[laravel/breeze

Minimal Laravel authentication scaffolding with Blade and Tailwind.

3.0k31.3M148](/packages/laravel-breeze)[tucker-eric/eloquentfilter

An Eloquent way to filter Eloquent Models

1.8k4.8M26](/packages/tucker-eric-eloquentfilter)[laravel/wayfinder

Generate TypeScript representations of your Laravel actions and routes.

1.7k4.1M69](/packages/laravel-wayfinder)[laravel/ai

The official AI SDK for Laravel.

732506.3k60](/packages/laravel-ai)

PHPackages © 2026

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