承接 vinothvipin/lumen-artisan-service 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

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

vinothvipin/lumen-artisan-service

Composer 安装命令:

composer require vinothvipin/lumen-artisan-service

包简介

Adds Laravel Package Support in Lumen.

README 文档

README

Laravel Package Support for Lumen: Makes Lumen compatible with Laravel Packages. You can use any Laravel Packages in Lumen by installing Larasupport Package.

Laravel Packages make use of various global helpers that are not available in Lumen core by default which prevents us from using any Laravel Package in Lumen.

This package adds the missing pieces to make Lumen compatible along with the support for vendor:publish artisan command and other features.

Quick Start

Install

You can add the package directly by firing this command

$ composer require vinothvipin/lumenArtisanService

Add Service Provider

Add this service provider to your bootstrap/app.php file.

$app->register(vinothvipin\lumenArtisanService\Providers\ArtisanServiceProvider::class);

Artisan Service Provider is an optional provider required only if you want vendor:publish command working.

And you're done! You can now start installing any Laravel Package out there :)

Available Methods

These helpers can be used across your Lumen project, not only with Laravel Packages.

Paths

app_path

Get the fully qualified path to the app directory.

public_path

Get the fully qualified path to the public directory. You can set env variable PUBLIC_PATH and it'll return the same instead of the default public.

config_path

Get the fully qualified path to the config directory (Mostly used with Laravel Packages).

Artisan

vendor:publish

Artisan command to Publish any publishable assets from vendor packages (Required to get Laravel Packages working!).

php artisan vendor:publish

OR

php artisan vendor:publish --provider="Vendor\Providers\PackageServiceProvider" 

Other

route_parameter

route_parameter($name, $default = null)

Get a given parameter from the route.

统计信息

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

GitHub 信息

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

其他信息

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