定制 edalzell/laravel-features 二次开发

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

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

edalzell/laravel-features

Composer 安装命令:

composer require edalzell/laravel-features

包简介

Self-contained feature modules for Laravel with auto-registration of routes, migrations, views, events, and seeders

README 文档

README

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

Add self-contained features to your Laravel app or package, including all resources/routes/etc.

.
└── app/
...
└── features/
  │   └── MyGreatFeature/
  │       ├── database/
  │       │   ├── factories
  │       │   ├── migrations
  │       │   └── seeders
  │       ├── resources
  │       ├── routes
  │       └── src/
  │           ├── Models
  │           ├── ...
  │           └── ServiceProvider.php

Installation

You can install the package via composer:

composer require edalzell/laravel-features

Usage

To add a feature to your app:

php artisan make:feature MyGreatFeature

To add a feature to your package:

php artisan make:feature MyGreatFeature the-dev/my-package

This will create an empty (but necessary) service provider that autoloads/registers migrations, routes, & views and properly namespaces your factories, seeders and code.

If you want to add a feature manually, or convert something you already have into a feature:

  • create an features/YourFeature folder
  • create a ServiceProvider that extends FeatureServiceProvider (or PackageServiceProvider for a package feature).
  • add a pre-autoload-dump script to your composer.json:
"pre-autoload-dump": [
    "Edalzell\\Features\\Composer\\FeatureNamespaces::add"
]

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

License

The MIT License (MIT). Please see License File for more information.

统计信息

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

GitHub 信息

  • Stars: 18
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2025-10-25

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固