PHPackages                             mpandar/laravel-packager - 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. mpandar/laravel-packager

ActiveLibrary

mpandar/laravel-packager
========================

A cli tool for creating Laravel packages.

V2.0.1(7y ago)014EUPL-1.1PHP

Since Jun 10Pushed 5y ago1 watchersCompare

[ Source](https://github.com/mpandar/laravel-packager)[ Packagist](https://packagist.org/packages/mpandar/laravel-packager)[ Docs](https://github.com/Jeroen-G/laravel-packager)[ RSS](/packages/mpandar-laravel-packager/feed)WikiDiscussions master Synced 2mo ago

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

Laravel Packager
================

[](#laravel-packager)

[![Latest Version on Packagist](https://camo.githubusercontent.com/3c02e1645987da1c0196575f54d7c5c4c3cf26ec313a87d5f380ff78ec319f8b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6a65726f656e2d672f6c61726176656c2d7061636b616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeroen-g/laravel-packager)[![Total Downloads](https://camo.githubusercontent.com/ef63e49bc201c3cf2e0c722eef371560da5cdbd81b20abb10d03f913421301dd/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6a65726f656e2d672f6c61726176656c2d7061636b616765722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/jeroen-g/laravel-packager)[![Build Status](https://camo.githubusercontent.com/906e0abdf29aa2dfb8c8008564aa490554fd68bd4d2d08bebb300fddf230a762/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f4a65726f656e2d472f6c61726176656c2d7061636b616765722f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/Jeroen-G/laravel-packager)[![StyleCI](https://camo.githubusercontent.com/a58d0a00659e0bc286ea57934d05e568c65bd18e879f3ec2fed2fe03fcc9a2ab/68747470733a2f2f7374796c6563692e696f2f7265706f732f33373231383131342f736869656c64)](https://styleci.io/repos/37218114)

This package provides you with a simple tool to set up a new package and it will let you focus on the development of the package instead of the boilerplate.

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

[](#installation)

Via Composer

```
$ composer require mpandar/laravel-packager

```

If you do not run Laravel 5.5 (or higher), then add the service provider in `config/app.php`:

```
JeroenG\Packager\PackagerServiceProvider::class,

```

If you do run the package on Laravel 5.5+, [package auto-discovery](https://medium.com/@taylorotwell/package-auto-discovery-in-laravel-5-5-ea9e3ab20518) takes care of the magic of adding the service provider. Be aware that the auto-discovery also means that this package is loaded in your production environment. Therefore you may [disable auto-discovery](https://laravel.com/docs/5.5/packages#package-discovery) and instead put in your `AppServiceProvider` something like this:

```
if ($this->app->environment('local')) {
    $this->app->register('JeroenG\Packager\PackagerServiceProvider');
}

```

Optional you can publish the configuration to provide a different service provider stub. The default is [here](https://github.com/jeroen-g/packager-skeleton).

```
$ php artisan vendor:publish --provider="JeroenG\Packager\PackagerServiceProvider"

```

Available commands
------------------

[](#available-commands)

### New

[](#new)

**Command:**

```
$ php artisan packager:new myvendor my-package

```

**Result:**The command will handle practically everything for you. It will create a packages directory, creates the vendor and package directory in it, pulls in a skeleton package, sets up composer.json, creates a service provider, registers the package in config/app.php and the app's composer.json.

**Options:**

```
$ php artisan packager:new myvendor my-package --i
$ php artisan packager:new --i

```

The package will be created interactively, allowing to configure everything in the package's `composer.json`, such as the license and package description.

**Remarks:**The new package will be based on [this custom skeleton](https://github.com/jeroen-g/packager-skeleton).

### Get &amp; Git

[](#get--git)

**Command:**

```
$ php artisan packager:get https://github.com/author/repository
$ php artisan packager:git https://github.com/author/repository

```

**Result:**This will register the package in `config/app.php` and in the app's `composer.json` file. If the `packager:git` command is used, the entire Git repository is cloned. If `packager:get` is used, the package will be downloaded, without a repository. This also works with Bitbucket repositories, but you have to provide the flag `--host=bitbucket` for the `packager:get` command.

**Options:**

```
$ php artisan packager:get https://github.com/author/repository --branch=develop
$ php artisan packager:get https://github.com/author/repository myvendor my-package
$ php artisan packager:git https://github.com/author/repository myvendor my-package

```

It is possible to specify a branch with the `--branch` option. If you specify a vendor and name directly after the url, those will be used instead of the pieces of the url.

### Tests

[](#tests)

**Command:**

```
$ php artisan packager:tests

```

**Result:**Packager will go through all maintaining packages (in `packages/`) and publish their tests to `tests/packages`. Add the following to phpunit.xml (under the other testsuites) in order to run the tests from the packages:

```

    ./tests/packages

```

**Options:**

```
$ php artisan packager:tests myvendor my-package

```

**Remarks:**If a tests folder exists, the files will be copied to a dedicated folder in the Laravel App tests folder. This allows you to use all of Laravel's own testing functions without any hassle.

### List

[](#list)

**Command:**

```
$ php artisan packager:list

```

**Result:**An overview of all packages in the `/packages` directory.

### Remove

[](#remove)

**Command:**

```
$ php artisan packager:remove myvendor my-package

```

**Result:**The `MyVendor\MyPackage` package is deleted, including its references in `composer.json` and `config/app.php`.

### Publish

[](#publish)

**Command:**

```
$ php artisan packager:publish myvendor my-package https://github.com/myvendor/mypackage

```

**Result:**The `MyVendor\MyPackage` package will be published to Github using the provided url.

### Check

[](#check)

**Command:**

```
$ php artisan packager:check myvendor my-package

```

**Result:**The `MyVendor\MyPackage` package will be checked for security vulnerabilities using SensioLabs security checker.

**Remarks**You first need to run

```
$ composer require sensiolabs/security-checker

```

Issues with cURL SSL certificate
--------------------------------

[](#issues-with-curl-ssl-certificate)

It turns out that, especially on Windows, there might arise some problems with the downloading of the skeleton, due to a file regarding SSL certificates missing on the OS. This can be solved by opening up your .env file and putting this in it:

```
CURL_VERIFY=false

```

Of course this means it will be less secure, but then again you are not supposed to run this package anywhere near a production environment.

Changelog
---------

[](#changelog)

Please see [changelog.md](changelog.md) for what has changed recently.

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

[](#contributing)

Please see [contributing.md](contributing.md) for details and a todolist.

Credits
-------

[](#credits)

- [JeroenG](https://github.com/Jeroen-G)
- [All Contributors](../../contributors%5D)

License
-------

[](#license)

The EU Public License. Please see [license.md](license.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 89.6% 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 ~68 days

Recently: every ~113 days

Total

17

Last Release

2896d ago

Major Versions

v0.2.1 → v1.02015-06-27

v1.6 → 2.02018-05-12

### Community

Maintainers

![](https://www.gravatar.com/avatar/79e1e7a7f20911edde481d66eb0eb14ab813078137b170a7d5e3b7307702ae8c?d=identicon)[mpandar](/maintainers/mpandar)

---

Top Contributors

[![Jeroen-G](https://avatars.githubusercontent.com/u/1116853?v=4)](https://github.com/Jeroen-G "Jeroen-G (69 commits)")[![mpandar](https://avatars.githubusercontent.com/u/3888401?v=4)](https://github.com/mpandar "mpandar (3 commits)")[![Remo](https://avatars.githubusercontent.com/u/129864?v=4)](https://github.com/Remo "Remo (1 commits)")[![shawnsandy](https://avatars.githubusercontent.com/u/28913?v=4)](https://github.com/shawnsandy "shawnsandy (1 commits)")[![synga-nl](https://avatars.githubusercontent.com/u/16606813?v=4)](https://github.com/synga-nl "synga-nl (1 commits)")[![ntavelis](https://avatars.githubusercontent.com/u/20874606?v=4)](https://github.com/ntavelis "ntavelis (1 commits)")[![ericcch](https://avatars.githubusercontent.com/u/3956215?v=4)](https://github.com/ericcch "ericcch (1 commits)")

---

Tags

laravelpackageSkeletonpackager

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/mpandar-laravel-packager/health.svg)

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

###  Alternatives

[jeroen-g/laravel-packager

A cli tool for creating Laravel packages.

1.4k707.3k18](/packages/jeroen-g-laravel-packager)[bensampo/laravel-embed

Painless responsive embeds for videos, slideshows and more.

142146.8k](/packages/bensampo-laravel-embed)[tzsk/sms

A robust and unified SMS gateway integration package for Laravel, supporting multiple providers.

320244.3k6](/packages/tzsk-sms)[erag/laravel-disposable-email

A Laravel package to detect and block disposable email addresses.

226102.4k](/packages/erag-laravel-disposable-email)

PHPackages © 2026

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