mediasoep/acf-pro-installer
Composer 安装命令:
composer require mediasoep/acf-pro-installer
包简介
An install helper for Advanced Custom Fields PRO
README 文档
README
A composer plugin that makes installing ACF PRO with composer easier.
Fork from ACF Pro Installer.
Differences between this repo and parent:
- support for new ACF version format (ex beta versions)
- ACF Pro key can be stored in a
.acffile - Updated vlucas/phpdotenv from version ^2.2 to ^3.3
Usage
It reads your :key: ACF PRO key from the environment or a .env file.
1. Add the package repository to the repositories field in composer.json
(based on this gist):
{
"type": "package",
"package": {
"name": "advanced-custom-fields/advanced-custom-fields-pro",
"version": "*.*.*(.*)",
"type": "wordpress-plugin",
"dist": {
"type": "zip",
"url": "https://connect.advancedcustomfields.com/index.php?p=pro&a=download"
},
"require": {
"MediaSoep/acf-pro-installer": "^1.0",
"composer/installers": "^1.0"
}
}
}
Replace "version": "*.*.*(.*)" with your desired version.
Replace "type": "wordpress-plugin" with "type": "library" if you would like to have ACF PRO installed in the ./vendor directory instead of ./wp-content/plugins. This may be desireable if for example, you are including ACF PRO in a WordPress theme.
2. Make your ACF PRO key available
Set the environment variable ACF_PRO_KEY to your ACF PRO key.
Alternatively you can add an entry to your .env file:
# .env (same directory as composer.json)
ACF_PRO_KEY=Your-Key-Here
or add the key to an .acf file:
# .acf (same directory as composer.json)
Your-Key-Here
3. Require ACF PRO
composer require advanced-custom-fields/advanced-custom-fields-pro:*
You can specify an exact version (that matches your desired version).
If you use *``**, composer will install the version from the package repository (see 1). This has the benefit that you only need to change the version in the package repository when you want to update.
Be aware that composer update will only work if you change the version in the package repository. Decreasing the version only works if you require an exact version.
mediasoep/acf-pro-installer 适用场景与选型建议
mediasoep/acf-pro-installer 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 1.19k 次下载、GitHub Stars 达 0, 最近一次更新时间为 2019 年 01 月 03 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「plugin」 「composer」 「wordpress」 「wp」 「env」 「acf」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 mediasoep/acf-pro-installer 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 mediasoep/acf-pro-installer 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 mediasoep/acf-pro-installer 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
CakePHP 4.x AdminLTE Theme.
This composer plugin enables installation of GravityForms WordPress plugin and its addons.
Simple ASCII output of array data
Plugin for YOURLS. Default tools to use in some laemmi plugins
Generate a Composer repository from installed WordPress plugins and themes.
统计信息
- 总下载量: 1.19k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 0
- 点击次数: 11
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2019-01-03