PHPackages                             jai/createpackage - 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. jai/createpackage

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

jai/createpackage
=================

artisan command to create laravel package .

v1.0(11y ago)417MITPHP

Since May 17Pushed 11y ago1 watchersCompare

[ Source](https://github.com/jaiwalker/laravel5-package-creator-command)[ Packagist](https://packagist.org/packages/jai/createpackage)[ RSS](/packages/jai-createpackage/feed)WikiDiscussions master Synced 1w ago

READMEChangelog (1)Dependencies (3)Versions (2)Used By (0)

Laravel 5 Package Template/Skeleton Creator
===========================================

[](#laravel-5-package-templateskeleton-creator)

idea from Laracast Generators

Notes : at this stage very messy need to clean up

L5 includes an artisan command to create a laravel specific package out of the box, so this package only needs to add a few things, like:

- php artisan `create-package vendorName PackageName `

Usage
-----

[](#usage)

### Step 1: Install Through Composer

[](#step-1-install-through-composer)

```
composer require jai/createpackages --dev

```

### Step 2: Add the Service Provider

[](#step-2-add-the-service-provider)

You'll only want to use these generators for local development, so you don't want to update the production `providers` array in `config/app.php`. Instead, add the provider in `app/Providers/AppServiceProvider.php`, like so:

Place ` Jai\Createpackages\CreatepackagesServiceProvider` in config/app.php providers array.

for Local

```
public function register()
{
	if ($this->app->environment() == 'local') {
		$this->app->register('Jai\Createpackages\CreatepackagesServiceProvider');
	}
}
```

### Step 3: Run Artisan!

[](#step-3-run-artisan)

You're all set. Run `php artisan` from the console, and you'll see the new command .

Examples
--------

[](#examples)

- [create package With Service Provider](#CreatePackage-with-ServiceProvider)

### Create Package With Service Provider

[](#create-package-with-service-provider)

```
php artisan create-package vendorName PackageName"

```

Done !! package will be created with service provider - now all you need to do is register this package with laravel and autolaod it

example consider you have run

```
php artisan create-package Jai example

```

Autoload your created package:
------------------------------

[](#autoload-your-created-package)

Add your package path to composer.json file in prs-4 so it looks like this

```
"psr-4": {
		"App\\": "app/",
		  "Jai\\Createpackages\\":"packages/jai/createpackage/src/"
		  }

```

Now in root console run : to autoload your package

```
composer dumpautoload

```

Now Registering Created package with laravel:

in root/config/app.php in providers array add

```
"Jai\Example\ExampleServiceProvider"

```

Test it : in ExampleServiceProvider.php - in boot function place

```
  dd("Testing package loading");

```

```
 after this  run laravel url - you should see this "Testing package loading".

```

\###TODO :

-Extend this to load - routes -Extend this to load - config -Extend this to load - views -Extend this to load - model

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity10

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity63

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

Unknown

Total

1

Last Release

4041d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/49a69893fd5e848eb64d8ad79588282a3e3fc6bf6a0d3d08bb940ad43d427899?d=identicon)[jaiwalker](/maintainers/jaiwalker)

---

Top Contributors

[![jaiwalker](https://avatars.githubusercontent.com/u/5422736?v=4)](https://github.com/jaiwalker "jaiwalker (11 commits)")

---

Tags

laravel-packagecreate laravel package

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/jai-createpackage/health.svg)

```
[![Health](https://phpackages.com/badges/jai-createpackage/health.svg)](https://phpackages.com/packages/jai-createpackage)
```

###  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.2k3.1M22](/packages/realrashid-sweet-alert)[markwalet/nova-modal-response

A Laravel Nova asset for Modal responses on an action.

17818.7k](/packages/markwalet-nova-modal-response)[fresns/plugin-manager

Enhance Laravel Apps: Organized &amp; Scalable

513.2k2](/packages/fresns-plugin-manager)[crumbls/layup

A visual page builder plugin for Filament 5 — Divi-style grid layouts with extensible widgets.

591.7k1](/packages/crumbls-layup)[tomshaw/electricgrid

A feature-rich Livewire package designed for projects that require dynamic, interactive data tables.

119.2k](/packages/tomshaw-electricgrid)

PHPackages © 2026

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