joomlatools/composer
Composer 安装命令:
composer require joomlatools/composer
包简介
A Composer plugin to install Joomla extensions into your installation.
README 文档
README
This Composer plugin will install extensions into your Joomla setup.
Usage
Defining a package
The easiest way to get started is by defining a custom package in your composer.json file. 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)
Update the composer.json file in the root directory of your Joomla installation by adding the following properties:
{
"repositories": [
{
"type": "package",
"package": {
"name": "vendor/extension",
"type": "joomlatools-extension",
"version": "1.0.0",
"dist": {
"url": "file:////Users/johndoe/Downloads/com_extension.1.0.0.tar.gz",
"type": "tar"
},
"require": {
"joomlatools/composer": "*"
}
}
}
],
...
"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
typehas to be set tojoomlatools-extension - Make sure the
urldirective points to the location of the install package.
Executing composer install will now fetch the joomlatools/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",
"type": "joomlatools-extension",
"require": {
"joomlatools/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.
If you want to move the main Joomla installer manifest to the repository root before running the installation, provide the following information in your composer.jsonfile:
{
"extra": {
"manifest": "path/to/manifest/joomlatools.xml"
}
}
If the package is for a Joomlatools Framework reusable component, provide the following information in your composer.jsonfile:
{
"extra": {
"joomlatools-component": "component-name"
}
}
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.
More
For more information, FAQ and examples, refer to our developer documentation.
Development
Refer to the wiki on how to set up this repository for local development.
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 3.6+
Contributing
The joomlatools/composer plugin is an open source, community-driven project. Contributions are welcome from everyone. We have contributing guidelines to help you get started.
Contributors
See the list of contributors.
License
The joomlatools/composer plugin is free and open-source software licensed under the GPLv3 license.
Community
Keep track of development and community news.
- Follow @joomlatoolsdev on Twitter
- Join joomlatools/dev on Gitter
- Read the Joomlatools Developer Blog
- Subscribe to the Joomlatools Developer Newsletter
joomlatools/composer 适用场景与选型建议
joomlatools/composer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 33.15k 次下载、GitHub Stars 达 53, 最近一次更新时间为 2015 年 12 月 01 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「installer」 「composer」 「extension」 「joomla」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 joomlatools/composer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 joomlatools/composer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 joomlatools/composer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
A custom URL rule class for Yii 2 which allows to create translated URL rules
Installs Aura packages to the Aura system "package" directory.
The Yii2 extension uses jQuery jquery.carousel-1.1.min.js and makes image carousel from php array of structure defined.
TYPO3 CMS extension to create gallery content element with preset crop ratios and pagination
UI Kit 3 Extension for Yii2
Adds more BBCode
统计信息
- 总下载量: 33.15k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 53
- 点击次数: 22
- 依赖项目数: 24
- 推荐数: 0
其他信息
- 授权协议: GPL-3.0-only
- 更新时间: 2015-12-01