前言介紹
- 這款 WordPress 外掛「WP Composer Sync」是 2018-07-25 上架。
- 目前尚無安裝啟用數,是個很新的外掛。如有要安裝使用,建議多測試確保功能沒問題!
- 上一次更新是 2018-07-26,距離現在已有 2472 天。超過一年沒更新,安裝要確認版本是否可用。以及後續維護問題!
- 外掛最低要求 WordPress 4.6 以上版本才可以安裝。
- 外掛要求網站主機運作至少需要 PHP 版本 7.0 以上。
- 尚未有人給過這款外掛評分。
- 還沒有人在論壇上發問,可能目前使用數不多,還沒有什麼大問題。
外掛協作開發者
外掛標籤
composer |
內容簡介
WP Composer Sync 是一款 WordPress 外掛,可將 WordPress 安裝的 composer.json 與已安裝的外掛保持同步。
使用方式
安裝後,外掛大部分情況下應可自行運作,但仍有幾個需要注意的事項:
1) 商業外掛並不會收錄在 WordPress.org 的外掛庫中,因此仍需手動修改庫(例如 wpackagist、wp-premium 或使用自訂安裝器或庫)或先添加自訂外掛。WP Composer Sync 將遵循這些庫並保持它們的同步。
2) 當 Composer 安裝套件時,它會完全清空目標目錄,然後再安裝新檔案。因此,WordPress 路徑應僅指定給 WordPress 核心檔案,而其他任何東西(例如外掛、佈景主題和 wp-config.php)都會在安裝或更新時被清除。建議您將 wp-config.php 檔案放在 WordPress 路徑的父目錄中(WordPress 可在那裡自動找到它),然後使用符號連接到實際的 wp-content 資料夾。請參閱連結了解更多詳細資訊。
3) Composer 要求版本號碼的通配符(例如 *, 1.* 等)將無法生效(因為 WordPress 不遵循這個)。它們將被 WordPress 使用的確切版本號碼替換。
關於
為何使用?
Composer 是管理 WordPress 和它的外掛的好方法。然而,在真實運作中,當管理使用者透過 wp-admin 或 S/FTP 安裝外掛時,它的內容可能會與實際網站不一致。
如何運作?
使用 WordPress 的「plugins_loaded」動作和連結,此外掛會檢查您的 composer.json 檔案是否有任何過時或未找到的外掛,並自動將它們添加到 require 段落中。
路線圖
該外掛已適用於生產環境,但未來將添加一些額外的功能和特性:
1) 添加能夠在https://github.com/balbuf/composer-wp和 wpackagist之間進行選擇的功能
2) 當前僅同步外掛和 WordPress 核心,添加同步佈景主題的功能
3) 研究一些更有效地監控外掛上傳和更改的方法(例如連結 連結,連結 和 連結或 Transients連結 連結 或連結)。
原文外掛簡介
WP Composer Sync is a WordPress plugin that keeps a WordPress installation’s composer.json synchronised with the plugins installed.
Usage
Once installed the plugin should be largely set and forget, however there a couple of gotchas.
1) Commercial plugins that are not available from the WordPress.org plugins repository will still be added you will need to manually modify the repository (eg. wpackagist, wp-premium or using a custom installer or repository) or add your custom plugins first. WP Composer Sync will then honor these repositories and keep them synchronised as well.
2) When composer installs a package, it completely empties the target directory before installing the new files. As such, the WordPress path should be designated for WordPress core files only, as anything else (e.g. plugins, themes, and wp-config.php) will be wiped away on install or update. It is recommended that you keep your wp-config.php file in the parent directory of the WordPress path (WordPress can find it there automatically) and replace the wp-content directory with a symlink to your real wp-content folder. See link for more details.
3) Compposer require versioning wildcards (eg. *, 1.*, etc) will not be honoured (as WordPress does not adhere to this). They will be replaced by the exact version number in use by WordPress.
About
Why?
Composer is a great way to manage WordPress and its plugins. However in real life it runs the risk of becoming outdated with the actual contents of the website when admin users are installing plugins via wp-admin or S/FTP.
How?
Using WordPress’s “plugins_loaded” action and link, this plugin will check your composer.json file for any outdated or unfound plugins and will automatically add them to the require section.
Roadmap
The plugin is production ready however there are some additional functions and features which will be added in the future:
1) Add ability to select bewteen https://github.com/balbuf/composer-wp and wpackagist
2) Currently only syncs plugin and wordpress core, add ability to sync themes
3) Research some ways to monitor plugin-uploads and changes more effectively (eg. link link, link and link or Transients link link or link)
各版本下載點
- 方法一:點下方版本號的連結下載 ZIP 檔案後,登入網站後台左側選單「外掛」的「安裝外掛」,然後選擇上方的「上傳外掛」,把下載回去的 ZIP 外掛打包檔案上傳上去安裝與啟用。
- 方法二:透過「安裝外掛」的畫面右方搜尋功能,搜尋外掛名稱「WP Composer Sync」來進行安裝。
(建議使用方法二,確保安裝的版本符合當前運作的 WordPress 環境。
0.1 |
延伸相關外掛(你可能也想知道)
Divi Lightbox for Images 》如果在 Divi 選項菜單中啟用了 Divi Gallery 設置,Divi 主題和生成器將使用本地燈箱腳本,在用戶從相冊中點擊圖像時打開模態窗口。但是,此腳本對於個別自身...。
Falang for YOOtheme Lite 》YOOTheme 的 Falang 外掛可讓您的網站翻譯更簡單。您需要使用 Falang 系統進行翻譯。, 您不再需要複製頁面以進行翻譯,只需翻譯必要的部分即可。這使得維護更...。
WP Composer 》將 Composer 依賴管理工具添加到 WP CLI 中。讓您可以遞歸地安裝/更新 Composer 套件在您所有的 WordPress 外掛程式和佈景主題之中。, 這是使用什麼工具?, ...。
Advanced Composer Blocks for Newsletter 》**總結**:, 這個 WordPress 外掛讓您使用自訂字段和新的設計選項打造現代電子報。透過升級的區塊和自訂字段功能,Advanced Composer Blocks 提升了您的電子...。
Falang for WPBakery Lite 》Falang for WPBakery外掛可以使得你的WPBakery頁面翻譯更加簡單。需要使用Falang系統來進行網站的翻譯。, 現在不需要再複製頁面來進行翻譯,只需翻譯必要的內...。
RSS Block for Newsletter 》這個簡單且輕量的外掛會在Newsletter的編輯器中添加一個區塊,可以在電子報內加入RSS feeds的內容。, RSS 在當今有些式微,但仍有很多服務仍然支援它,並有一...。
BCorp Visual Editor 》強大的拖放頁面建構器。需要安裝並啟用 BCorp Shortcodes 外掛程式才能運作。, 如果未安裝或啟用 BCorp Shortcodes 外掛程式,BCorp Visual Editor 會提示你...。
Tiny Addons for WPBakery Page Builder 》Tiny Addons for WPBakery Page Builder 是一個旨在成為 WordPress Layout Builder WPBakery Page Builder 的輕量、簡單和沒有膨脹內容的附加組件包。, 價值...。
Rexpansive Builder 》nt with your website. With Rexpansive, you can easily move and resize blocks containing photos, videos, texts, and more, using an advanced matrix t...。
Newsletter Composer 》此外掛可讓您使用自訂範本建立電子報,並且從特定類別中加入文章。您可以使用所見即所得(editor)編輯器編輯您的產生結果。, 這個外掛程式會產生一個HTML檔案...。
MiniComposer 》MiniComposer 是一個佈局頁面建構外掛。, 您可以使用直覺易用的拖放編輯器,在 12 列網格中構建任何佈局。, 無需編程知識。, 適用於使用 Bootstrap 或 Founda...。
Known Plugin Dependencies 》這棒極了的 WordPress Plugin Dependencies 外掛程式將外掛程式相依性管理引入您的 WordPress 管理區域。, 不幸的是,現實是很少的外掛程式目前包含相依性資...。
Talk to Composer 》此外掛在啟用時向 composer.json 檔案中添加插件,在停用時刪除插件。, 這樣就可以透過 composer 管理您的外掛。, 外掛將透過 wpackagist 加入到 composer.js...。
SymfoPress Lite 》這個外掛讓你在 WordPress 安裝中使用 Symfony 2 元件和 Bundle。你可以使用 Symfony 套件以及 WordPress 外掛,並開發所需的功能。, 外掛首頁:http://tokar...。
LC Widget Modules 》這是一個針對「Live Composer」的額外模組,也可以當作 WordPress 的簡碼或小工具使用:, * #anchor 模組,適用於 Live Composer。。