定制 mikoweb/joomla-rapid-composer 二次开发

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

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

mikoweb/joomla-rapid-composer

Composer 安装命令:

composer require mikoweb/joomla-rapid-composer

包简介

A Composer plugin to install Joomla extensions into your installation.

README 文档

README

This Composer plugin will install extensions into your Joomla setup.

Usage

Quick start with Joomla Startup

Checkout repository:

svn co http://repo.mikoweb.pl/svn/joomla-startup/trunk ./

Attach a domain to web directory or create symbolic link to public_html:

ln -s web public_html

Run command:

php joomla.php joomla:install 3.3.*

Defining a package

The easiest way to get started is by defining a custom package in your composer.jsonfile. All you need is the package file for the extension you wish to install. (ie. the installer file you downloaded from the vendor's website)

Create the composer.json file in the root directory of your Joomla installation and have it look something like this:

	{
    	"repositories": [
        	{
            	"type": "package",
            	"package": {
                	"name": "vendor/extension",
                	"type": "joomlatools-installer",
                	"version": "1.0.0",
                	"dist": {
                    	"url": "file:////Users/johndoe/Downloads/com_extension.1.0.0.tar.gz",
                    	"type": "tar"
                	},
                	"require": {
                    	"joomlatools/installer": "*"
                	}
            	}
        	}
    	],

    	"require": {
    		"vendor/extension": "1.0.0"
    	}
	}

Using this JSON file, we have now defined our own custom package. Pay attention to the following settings:

  • The type has to be set to joomlatools-installer
  • Make sure the url directive points to the location of the install package.

Executing composer install will now fetch the mikoweb/joomla-rapid-composer plugin and use it to install the package into your Joomla installation.

For more information on creating these custom packages for projects which do not support Composer, see the Composer docs.

Creating a custom package

To make use of all Composer's features, eg. upgrading to a newer version, you are better off creating a package using your extension's source code.

The package definition should contain the following basic information to make it installable into Joomla:

{
    	"name": "vendor/my-extension",
    	"require": {
        	"mikoweb/joomla-rapid-composer": "*"
    	}
}

If you want to make your extension available directly from Github or any other VCS, you want to make sure that the file layout in your repo resembles your install package.

You can now publish your extension on Packagist or serve it yourself using your own Satis repository.

For more information on rolling your own package, please refer to the Composer documentation.

Change the user

The installer injects a user called root into the Joomla application at runtime to make sure that the installer scripts have the necessary permissions to execute.

If for some reason, you need to change the details of this mock user, you can override them by adding a joomla block into the config section of your composer.json. Example:

{
    "config": {
        "joomla": {
            "basedir": "joomla",
            "username":  "johndoe",
            "name":		 "John Doe",
            "email": 	 "john@doe.com"
        }
    }
}

Debugging

Having trouble? You can increase Composer's verbosity setting (-v|vv|vvv) to gather more information. Increasing Composer's verbosity will also enable Joomla's log messages.

Requirements

  • Composer
  • Joomla version 2.5 and up.

Contributing

We appreciate any contribution, whether it is related to bugs, grammar, or simply a suggestion or improvement. We ask that any contribution follows a few simple guidelines in order to be properly received.

We follow the GitFlow branching model, from development to release. If you are not familiar with it, there are several guides and tutorials online to learn about it.

There are a few things you must know before submitting a pull request:

  • All changes need to be made against the develop branch. However, it is very well appreciated and highly suggested to start a new feature branch from develop and make your changes in this new branch. This way we can just checkout your feature branch for testing before merging it into develop.
  • We will not consider pull requests made directly to the master branch.

Authors

See the list of contributors.

License

The joomlatools/installer plugin is free and open-source software licensed under the GPLv3 license.

mikoweb/joomla-rapid-composer 适用场景与选型建议

mikoweb/joomla-rapid-composer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 27 次下载、GitHub Stars 达 2, 最近一次更新时间为 2014 年 08 月 21 日, 在 PHP 生态内属于活跃度较高的组件。

它主要适用于以下技术方向: 「installer」 「extension」 「joomla」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。

我们在过去多个企业项目中使用过 mikoweb/joomla-rapid-composer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。

围绕 mikoweb/joomla-rapid-composer 我们能提供哪些服务?
定制开发 / 二次开发

基于 mikoweb/joomla-rapid-composer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。

BUG 修复 & 性能优化

线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。

项目外包 & 长期维护

承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。

yvsm@zunyunkeji.com QQ:316430983 微信:yvsm316 西安尊云信息科技 · 专注 PHP / Go / 分布式系统研发

统计信息

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

GitHub 信息

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

其他信息

  • 授权协议: GPLv3
  • 更新时间: 2014-08-21