luna/laravel-packager 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

luna/laravel-packager

Composer 安装命令:

composer require luna/laravel-packager

包简介

Create a Laravel package template with ease

README 文档

README

Latest Stable Version Total Downloads Latest Unstable Version StyleCI TravisCI License

# Prerequisites

This package should run on PHP 5.5+ and Laravel 5.1+.

# Setup

First, add this package to your `composer.json`:
    composer require luna/laravel-packager "~1.0"

Then, add the service provider to config/app.php:

    "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:

{
    "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.

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

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.

# Usage

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

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

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

统计信息

  • 总下载量: 15
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2017-03-14

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固