承接 rbnvrw/pico-load-plugins-composer 相关项目开发

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

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

rbnvrw/pico-load-plugins-composer

最新稳定版本:v1.1

Composer 安装命令:

composer require rbnvrw/pico-load-plugins-composer

包简介

Automatically load Pico plugins from the Composer vendor directory.

README 文档

README

Automatically load Pico plugins from the Composer vendor directory. This avoids unneccesary cluttering of the plugins directory and loads the plugins via a helper plugin based on your config settings.

Step 1: add this repository to your composer.json

"repositories": [
  {
    "type": "vcs",
    "url": "https://github.com/rbnvrw/pico-load-plugins-composer"
  }
],
"require": {
  "rbnvrw/pico-load-plugins-composer": "dev-master"
}

Save the file and run composer update.

Step 2: add a loader file to the plugins directory

For this plugin to work, add a file pico_load_plugins_composer.php to the plugins directory with the following contents:

<?php

include_once(ROOT_DIR.'vendor/rbnvrw/pico-load-plugins-composer/pico_load_plugins_composer.php');

This will load the plugin, which in turn will load other plugins from the Composer vendor directory.

Step 3: edit the config.php file to add plugins

$config['composer_plugins'] = array(
	// Path to vendor directory relative to the Pico root directory
	// Default: vendor
	'path' => 'vendor',
	
	// List of all the plugins you'd like to add
	'plugins' => array(
		array(
		  // Name of the class
			'name' => 'adv_meta',
			// Name of the repository
			'repository' => 'adv-meta',
			// Author
			'author' => 'rbnvrw'
		),
		array(
			'name' => 'pico_multilanguage',
			'repository' => 'pico_multilanguage',
			'author' => 'rbnvrw'
		),
		array(
			'name' => 'pico_placing',
			'repository' => 'Pico-Placing',
			'author' => 'rbnvrw'
		)
	)
);

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-24

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固