PHPackages                             shipu/laratie - 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. [Framework](/categories/framework)
4. /
5. shipu/laratie

ActiveLibrary[Framework](/categories/framework)

shipu/laratie
=============

Laravel Package Boilerplate

v1.9.0(3y ago)648.1k↓47.6%14MITPHP

Since Feb 18Pushed 3y ago3 watchersCompare

[ Source](https://github.com/Shipu/laratie)[ Packagist](https://packagist.org/packages/shipu/laratie)[ RSS](/packages/shipu-laratie/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (1)Versions (17)Used By (0)

[![](./laratie.svg)](https://github.com/Shipu/laratie)

 Laravel Package Development Boilerplate.

### Features

[](#features)

- Make package structure within a second
- Adding package resource using command line
- Easy way to define your package custom structure
- Adding custom stubs facilities
- Support Spatie Laravel Package Tools ([Read More](https://github.com/spatie/laravel-package-tools))
- Support [Filament Plugin Development](https://github.com/Shipu/laratie#package-stub-configuration) ([Read More](https://filamentphp.com/docs/2.x/admin/plugins))

### Installation

[](#installation)

Go to terminal and run this command

```
composer require shipu/laratie
```

Wait for few minutes. Composer will automatically install this package for your project.

### For Laravel

[](#for-laravel)

Below **Laravel 5.5** open `config/app` and add this line in `providers` section

```
Shipu\Tie\LaravelTieServiceProvider::class,
```

Now run this command in your terminal to publish this package resources:

```
php artisan vendor:publish --tag=tie-config

```

Quick Usages
------------

[](#quick-usages)

Go to terminal and run this command with replace `vendor` to your username and `package_name` to your package name

```
php artisan package:create vendor package_name
or
php artisan package:create vendor/package_name
or
php artisan package:create
```

Then run `composer dump-autoload `;

### Package Resources

[](#package-resources)

if you want to create your package resource then run below command:

```
php artisan package:file vendor/package --stubkey=fileName
or
php artisan p:f vendor/package --stubkey=fileName
```

Suppose you want make a controller for your package then:

```
php artisan package:file vendor/package --controller=TestController
```

Available `stubKey` :

```
--controller
--command
--events
--facades
--config
--migration
--job
--provider
--routes
--middleware
--class
--exceptions
--key

```

If you have your own custom `stubKey` then you can choose `--key` for create package resource and value will be your stubKey.

### Package Root Directory

[](#package-root-directory)

If you need to change your all packages root directory then Open `config/tie.php` and update `root` directory path.

```
'root'          => base_path('packages'), // Base directory

```

### Pckage Owner

[](#pckage-owner)

Open `config/tie.php` for setup your vendor name and rootNamespace. It's not mendatory.

```
'vendor'        => '', // Your github username. For Example 'vendor' => 'shipu'
'rootNamespace' => '', // Root Namespace For Example: 'rootNamespace'   => 'Shipu'

```

### Package Structure

[](#package-structure)

Open `config/tie.php` for setup your own package structure. Available configuration:

```
