2017 © Pedro Peláez
 

library laravel-packager

Create a Laravel package template with ease

image

luna/laravel-packager

Create a Laravel package template with ease

  • Wednesday, March 15, 2017
  • by DuckThom
  • Repository
  • 1 Watchers
  • 1 Stars
  • 7 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 6 Versions
  • 0 % Grown

The README.md

Laravel Packager

Latest Stable Version Total Downloads Latest Unstable Version StyleCI TravisCI License , (*1)

# Prerequisites

This package should run on PHP 5.5+ and Laravel 5.1+., (*2)

# Setup

First, add this package to your composer.json:, (*3)

    composer require luna/laravel-packager "~1.0"

Then, add the service provider to config/app.php:, (*4)

    "providers" => [
        // snip
        Luna\Packager\ServiceProvider::class,
    ];

If you want to use the package in the current project without adding it to, for example, packagist just yet, ie. for development, add the following line to your main project's composer.json:, (*5)

{
    "autoload": {
        "classmap": [
            "database",
            "packages"   #  Add this line to your main projects composer.json
        ],
        "psr-4": {
            "App\\": "app/",
            "Tests\\": "tests/"
        }
    }
}

After adding that line, run composer dump, and add the package's service provider to config/app.php., (*6)

For example, you made a package which has the following structure: <project_root>/packages/Foo/Bar/BarServiceProvider.php., (*7)

When you add the line to the composer.json in the project root, you can use that service provider with it's usual namespace: Foo\Bar\BarServiceProvider::class., (*8)

# Usage

    php artisan make:package <Vendor> <Package> [--base-dir=packages]

Be default, the package files are created in <project_root>/packages/Vendor/Package., (*9)

By specifying --base-dir in the make:package command, you can change where the files are placed., (*10)

The Versions

15/03 2017

dev-master

9999999-dev

Create a Laravel package template with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thomas Wiringa

15/03 2017

1.1.0

1.1.0.0

Create a Laravel package template with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thomas Wiringa

14/03 2017

1.0.3

1.0.3.0

Create a Laravel package template with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thomas Wiringa

14/03 2017

1.0.2

1.0.2.0

Create a Laravel package template with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thomas Wiringa

14/03 2017

1.0.1

1.0.1.0

Create a Laravel package template with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thomas Wiringa

14/03 2017

1.0.0

1.0.0.0

Create a Laravel package template with ease

  Sources   Download

MIT

The Requires

 

The Development Requires

by Thomas Wiringa