szepeviktor / composer-theme-fusion
Composer plugin for ThemeFusion
Installs: 22
Dependents: 0
Suggesters: 1
Security: 0
Stars: 2
Watchers: 2
Forks: 4
Open Issues: 0
Type:composer-plugin
Requires
- php: ^7.4 || ^8.0
- composer-plugin-api: ^2.0
- composer/installers: ^1.10 || ^2.0
- szepeviktor/composer-envato: ^0.1.2
Requires (Dev)
- composer/composer: ^1.10.23
- phpstan/phpstan: ^0.12
This package is auto-updated.
Last update: 2024-10-09 21:09:13 UTC
README
A Composer plugin to load WordPress plugins from ThemeFusion.
💡 Always the latest version is installed, as ThemeFusion does not make other versions available. Package version locking can only be achieved by local persistent cache, not across hosts or users.
Installation
This Composer plugin must be installed globally as it adds a virtual package repository.
composer global require --update-no-dev szepeviktor/composer-theme-fusion
Configuration
Add your token and theme version to your config.json
(in $COMPOSER_HOME
).
You find the token
in WordPress option fusion_registration_data
.
Get its value with e.g. WP-CLI wp option get fusion_registration_data
.
{ "config": { "theme-fusion": { "token": "YOUR THEME-FUSION TOKEN", "themeVersion": "YOUR AVADA THEME VERSION, EG. '6.2.2'" } } }
Usage
Once the plugin is installed and configured,
you can simply install any of the premium plugins (e.g. theme-fusion/fusion-core
) as Composer packages.
You find the list plugin slugs in this JSON:
https://updates.theme-fusion.com/?avada_action=get_plugins&avada_version=
💡 Use the vendor name theme-fusion
.
Behind the scenes
- This package is a Composer plugin
- In the
activate
method it creates anArrayRepository
with package data from ThemeFusion API - Package version is queried from ThemeFusion API
- When installing a package its URL is also queried from ThemeFusion API