Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Plugin Bundle Laravel Package

codeages/plugin-bundle

View on GitHub
Deep Wiki
Context7

Build Status

README

编写一个插件

目录结构

如果您的插件名称为Demo那么目录结构为:

plugins/
  DemoPlugin/
    Biz/
      Dao/
      Service/
    Controller/
    Migrations/
    Resources/
    Scripts/
      database.sql
      InstallScript.php
    DemoPlugin.php
    plugin.json

插件的源信息

即插件目录下的plugin.json

{
    "code": "Demo",
    "name": "演示插件",
    "description": "这是一个演示插件",
    "author": "EduSoho官方",
    "version": "1.0.0",
    "support_version": "7.2.0"
}

插件的引导文件

即插件目录下的DemoPlugin.php

<?php
namespace DemoPlugin;

use Codeages\PluginBundle\System\PluginBase;

class DemoPlugin extends PluginBase
{

}

DemoPlugin类必须继承自Codeages\PluginBundle\System\PluginBase类。

插件的注册/注销

** 注册 **

app/console plugin:register Demo

** 注销 **

app/console plugin:remove Demo
Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
codifyo/ts-generator-bundle
andydefer/laravel-cluster
testo/fiber
mintobit/jobqueue
a4sex/maintenance-bundle
a4sex/entity-date-update
a4sex/client-identifier
a4sex/base-utilites
a4sex/key-value-storage
a4sex/micro-status
chilldev/dependency-injection-extra
datinglibre/datinglibre-app-api
biberltd/corebundle
bricre/symfony-bundle-test
biberltd/logbundle
dominium/http-adapter-bundle
dominium/google-analytics
a4sex/auto-clean-entity
christhompsontldr/laravel-inky
spatie/mailcoach-vapor