PHPackages                             zencodex/package-make - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. zencodex/package-make

AbandonedArchivedPackage[Utility &amp; Helpers](/categories/utility)

zencodex/package-make
=====================

create separate laravel package/plugin

v1.0.6(4y ago)14563[1 issues](https://github.com/zencodex/package-make/issues)Apache-2.0PHPPHP ^7.1|^8.0

Since Nov 11Pushed 3y ago1 watchersCompare

[ Source](https://github.com/zencodex/package-make)[ Packagist](https://packagist.org/packages/zencodex/package-make)[ Docs](https://github.com/zencodex/package-make)[ RSS](/packages/zencodex-package-make/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (7)Dependencies (2)Versions (9)Used By (0)

package-make was abandon, please use packagit:

[![](https://camo.githubusercontent.com/1d44fc29fc1bfc7d6d327569f0e6b2ee0a81a0542955b3f4cc60bc78fd8a4ed8/68747470733a2f2f67697465652e636f6d2f7a656e636f6465782f696d616765732f7261772f6d61737465722f7061636b6167652d6d616b652e706e67)](https://camo.githubusercontent.com/1d44fc29fc1bfc7d6d327569f0e6b2ee0a81a0542955b3f4cc60bc78fd8a4ed8/68747470733a2f2f67697465652e636f6d2f7a656e636f6465782f696d616765732f7261772f6d61737465722f7061636b6167652d6d616b652e706e67)

Create PHP or laravel package/plugin
====================================

[](#create-php-or-laravel-packageplugin)

[![Latest Version on Packagist](https://camo.githubusercontent.com/621d73bbde07400de01b3f3509ebc72e28f263f1211ce29fe2d5583142dcea31/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f7a656e636f6465782f7061636b6167652d6d616b652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zencodex/package-make)[![Build Status](https://camo.githubusercontent.com/ee6781e0ab7bbdc9d1e34980b0a033a8aa107c5a35844458864a6738384ce0de/68747470733a2f2f696d672e736869656c64732e696f2f7472617669732f7a656e636f6465782f7061636b6167652d6d616b652f6d61737465722e7376673f7374796c653d666c61742d737175617265)](https://travis-ci.org/zencodex/package-make)[![Quality Score](https://camo.githubusercontent.com/14c92ebfc3211906426edbf0dab198e1c3a3b86840e038c4d7831d24d705f0aa/68747470733a2f2f696d672e736869656c64732e696f2f7363727574696e697a65722f672f7a656e636f6465782f7061636b6167652d6d616b652e7376673f7374796c653d666c61742d737175617265)](https://scrutinizer-ci.com/g/zencodex/package-make)[![Total Downloads](https://camo.githubusercontent.com/9eb4dd927ea8979409ee192b5649f36d070be1da2cab1c1d7cf6d1e14f42903b/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f7a656e636f6465782f7061636b6167652d6d616b652e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/zencodex/package-make)

You can manage huge project with many separate laravel packages.

Thanks to `nwidart/laravel-modules`, I get many code from it and reimplement.

**Why I re-implement (don't use `nwidart/laravel-modules`)?**

1. `nwidart/laravel-modules` stubs injected `module_path`, you can't remove it in production.
2. Just a standard composer package, you don't need `nwidart/laravel-modules` to manage modules.
3. Update some stubs and folders structure, keep it like laravel.
4. You can remove this package in production, Just required in devepopment.

So I seperate new one `zencodex/package-make`, resovled above issues.

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

[](#installation)

You can install the package via composer:

```
composer require --dev zencodex/package-make
```

Usage
-----

[](#usage)

```
// modules/NewPackage
php artisan package:make NewPackage
```

NewPackage structure:

```
modules/NewPackage
├── Config
│   └── config.php
├── Console
│   └── UserCommand.php
├── Database
│   ├── Migrations
│   ├── Seeders
│   │   └── NewPackageDatabaseSeeder.php
│   └── factories
├── Http
│   ├── Controllers
│   │   └── NewPackageController.php
│   ├── Middleware
│   ├── Requests
│   └── Resources
│       └── UserResource.php
├── Models
│   └── User.php
├── Providers
│   ├── NewPackageServiceProvider.php
│   └── RouteServiceProvider.php
├── Resources
│   ├── assets
│   │   ├── js
│   │   │   └── app.js
│   │   └── sass
│   │       └── app.scss
│   ├── lang
│   └── views
│       ├── index.blade.php
│       └── layouts
│           └── master.blade.php
├── Routes
│   ├── api.php
│   └── web.php
├── Tests
│   ├── Feature
│   └── Unit
├── composer.json
├── package.json
└── webpack.mix.js

```

Custom namespace and path
-------------------------

[](#custom-namespace-and-path)

`php artisan vendor:publish --tag=package`

```
// edit config/package.php
// use namespace Balabala
// generate package files in plugins folder

return [

     // Custom package namespace
    'namespace' => 'Balabala',

    'paths'     => [
        // Custom generated files path
        'modules' => base_path('plugins'),

// ...
```

Usage in project
----------------

[](#usage-in-project)

option 1:

```
// app/Providers/AppServiceProvider.php

use Package\NewPackage\Providers\NewPackageServiceProvider;

class AppServiceProvider extends ServiceProvider

    public function register()
    {
        $this->app->register(NewPackageServiceProvider::class);
        ...
    }
```

or

Edit `config/app.php`, add `Package\NewPackage\Providers\NewPackageServiceProvider::class` to providers.

```
    'providers' => [
        Illuminate\Validation\ValidationServiceProvider::class,
        Illuminate\View\ViewServiceProvider::class,
        Package\NewPackage\Providers\NewPackageServiceProvider::class
        ...
    ],
```

option 2:

```
// 1. edit composer.json, add following
"repositories": [
    {
        "type": "path",
        "url": "modules/*"
    }
]

// use private package or gitlab
"repositories": [
    {
        "type": "vcs",
        "url": "git@gitlab.example.com:/newpackage.git"
    }
]

// 2. composer require local path package (replace package/newpackage to yours)
composer require package/newpackage
```

### Testing

[](#testing)

```
composer test
```

### Changelog

[](#changelog)

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

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

[](#contributing)

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

### Security

[](#security)

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

Credits
-------

[](#credits)

- [禅师](https://github.com/zencodex)
- [All Contributors](../../contributors)

License
-------

[](#license)

The Apache License 2. Please see [License File](LICENSE.md) for more information.

###  Health Score

30

—

LowBetter than 64% of packages

Maintenance19

Infrequent updates — may be unmaintained

Popularity17

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity64

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~78 days

Recently: every ~112 days

Total

7

Last Release

1542d ago

PHP version history (2 changes)v1.0.0PHP ^7.1

v1.0.5PHP ^7.1|^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/5e2e4c13033d08787ed1d14726e5fb74f15fdd7836e655cb558b2a34eb689a9e?d=identicon)[zencodex](/maintainers/zencodex)

---

Top Contributors

[![zencodex](https://avatars.githubusercontent.com/u/295317?v=4)](https://github.com/zencodex "zencodex (3 commits)")

---

Tags

laravellaravel-packagelaravel-plugin

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/zencodex-package-make/health.svg)

```
[![Health](https://phpackages.com/badges/zencodex-package-make/health.svg)](https://phpackages.com/packages/zencodex-package-make)
```

###  Alternatives

[realrashid/sweet-alert

Laravel Sweet Alert Is A Package For Laravel Provides An Easy Way To Display Alert Messages Using The SweetAlert2 Library.

1.2k2.9M21](/packages/realrashid-sweet-alert)[imanghafoori/laravel-nullable

A package to help you write expressive defensive code in a functional manner

151423.7k6](/packages/imanghafoori-laravel-nullable)[fresns/plugin-manager

Enhance Laravel Apps: Organized &amp; Scalable

523.2k2](/packages/fresns-plugin-manager)[djunehor/laravel-bible

Laravel package to fetch from the Holy Bible

182.8k](/packages/djunehor-laravel-bible)[paxha/laravel-reportable

This Laravel Eloquent extension provides record according to dates using models.

111.2k](/packages/paxha-laravel-reportable)

PHPackages © 2026

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