承接 djlimix/laravel-extended-commands 相关项目开发

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

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

djlimix/laravel-extended-commands

最新稳定版本:1.2

Composer 安装命令:

composer require djlimix/laravel-extended-commands

包简介

A simple package to add more Make: commands to Laravel.

README 文档

README

This is a simple package used to add more make:* commands.

Right now, it adds these commands:

  • make:interface
  • make:service
  • make:trait

All files generated by the commands are stored in App/Type, so for example, trait files are stored in App/Traits with the same namespace.

Installation

You should install this as a dev dependency:

composer require djlimix/laravel-extended-commands --dev

Command structure

Making an interface

php artisan make:interface InterfaceName

This generates a file called InterfaceName.php with the namespace of App\Interfaces inside the folder app\Interfaces.

Making a service

php artisan make:service ServiceName

This generates a file called ServiceName.php with the namespace of App\Services inside the folder app\Services.

Making a trait

php artisan make:trait TraitName

This generates a file called TraitName.php with the namespace of App\Traits inside the folder app\Traits.

Using a slash in the name of interface/service/trait creates the file in a subfolder, for example: php artisan make:trait User/CreateUserTrait creates a trait named CreateUserTrail inside the folder app\Traits\User with the namespace of app\Traits\User

Requirements

This package requires Laravel 8 or higher.

Contributing

Contributing is always welcome.

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-10-22

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固