定制 backtheweb/laravel-package-maker 二次开发

按需修改功能、优化性能、对接业务系统,提供一站式技术支持

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

backtheweb/laravel-package-maker

最新稳定版本:0.1.0

Composer 安装命令:

composer require backtheweb/laravel-package-maker

包简介

A Laravel package to create new packages with a simple command

README 文档

README

Laravel PackageMaker

Installation

Install the package via composer:

$ composer require backtheweb/laravel-package-maker --dev

Publish the config file and edit it to your needs

$ php artisan vendor:publish --provider="Backtheweb\PackageMaker\PackageMakerServiceProvider" --tag="config"

Create a new folder called modules (or wherever you want, don't forget update the config file) in the root of your Laravel project and add the following to your composer.json file:

"repositories": [
  {
    "type": "path",
    "url": "modules/*/**",
    "options": {
    "symlink": false
  }
]
  $ php artisan make:package vendor/package

The command will create the following structure and files:

  • packageName
    • config
      • packageName.php
    • src
      • PackageNameServiceProvider.php
    • tests
      • Feature
      • Unit
      • TestCase.php
    • .gitignore
    • CHANGELOG.md
    • composer.json
    • LICENSE
    • phpunit.xml
    • README.md

USer --force option to overwrite existing files

  $ php artisan make:package yourPackageName --force

How Laravel package development

https://laravelpackage.com/#reasons-to-develop-a-package

Credits

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-05-09