PHPackages                             codeages/plugin-bundle - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Framework](/categories/framework)
4. /
5. codeages/plugin-bundle

ActiveSymfony-bundle[Framework](/categories/framework)

codeages/plugin-bundle
======================

Symfony PluginBundle

v0.2.6(1mo ago)74.5k↓100%9[1 issues](https://github.com/codeages/plugin-bundle/issues)[2 PRs](https://github.com/codeages/plugin-bundle/pulls)MITPHPPHP &gt;=7.2.5

Since Dec 1Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/codeages/plugin-bundle)[ Packagist](https://packagist.org/packages/codeages/plugin-bundle)[ Docs](https://github.com/codeages/plugin-bundle)[ RSS](/packages/codeages-plugin-bundle/feed)WikiDiscussions master Synced today

READMEChangelogDependencies (9)Versions (34)Used By (0)

[![Build Status](https://camo.githubusercontent.com/7fbf2b7a101d00ad9ca7754f92afc53a4800a7767a293b8dbd0c514c10c53e3d/68747470733a2f2f7472617669732d63692e6f72672f636f6465616765732f706c7567696e2d62756e646c652e7376673f6272616e63683d6d6173746572)](https://github.com/codeages/plugin-bundle)

README
======

[](#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`：

```
