otgs / installer
Installs and updates WPML and Toolset dependencies automatically
Requires
- php: >=5.6.0
- composer/installers: ~1.0
- jakeasmith/http_build_url: ^1.0
- otgs/icons: ~1.0
Requires (Dev)
- lucatume/function-mocker: ^1.3
- otgs/build-tools: ~0.1
- otgs/build-tools-ci: ~0.10
- otgs/unit-tests-framework: ~2.0
- sebastian/phpcpd: ~4.0
- website/api: dev-develop
Suggests
- otgs/ui: Some elements will have nicer styling, e.g. switcher instead of checkbox
- dev-develop
- 3.1.8
- 3.1.7
- 3.1.6
- 3.1.5
- 3.1.4
- 3.1.3
- 3.1.2
- 3.1.1
- 3.1.0.x-dev
- 3.1.0
- 3.0.5.x-dev
- 3.0.5
- 3.0.4
- 3.0.3
- 3.0.2
- 3.0.1
- 3.0.0
- 2.6.2
- 2.6.1
- 2.6.0
- 2.5.4
- 2.5.3
- 2.5.2
- 2.5.1
- 2.5.0
- 2.4.4
- 2.4.3
- 2.4.2
- 2.4.1
- 2.4.0.2
- 2.4.0.1
- 2.4.0
- 2.3.0
- 2.2.8
- 2.2.7
- 2.2.6
- 2.2.5
- 2.2.4
- 2.2.3
- 2.2.2
- 2.2.1
- 2.2.0
- 2.1.0
- 2.0.1
- 2.0.0
- 1.9.4
- 1.9.3
- 1.9.2
- 1.9.1
- 1.9.0
- 1.8.27
- 1.8.26
- 1.8.25
- 1.8.24
- 1.8.23
- 1.8.22
- 1.8.21
- 1.8.20
- 1.8.19
- 1.8.18
- 1.8.17
- 1.8.16
- 1.8.15
- 1.8.14.1
- 1.8.14
- 1.8.13
- 1.8.12
- 1.8.11
- 1.8.10
- 1.8.9
- 1.8.8
- 1.8.7
- 1.8.6
- 1.8.5
- 1.8.4
- 1.8.3
- 1.8.2
- 1.8.1
- 1.8.0
- 1.8.0-b1
- 1.7.17
- 1.7.16
- 1.7.15
- 1.7.14
- 1.7.13
- 1.7.12
- 1.7.11
- 1.7.10
- 1.7.9
- 1.7.8
- 1.7.7
- 1.7.6
- 1.7.5
- 1.7.4
- 1.7.3
- 1.7.2
- 1.7.1
- 1.7
- 1.6.8
- 1.6.7
- 1.6.6
- 1.6.5
- dev-release/3.1.8
- dev-wpmldev-3648
- dev-automatic_translations_october-14-2024-13-01-14743234
- dev-tm_edits_october-14-2024-13-01-53132148
- dev-tm_edits_october-14-2024-09-09-55286625
- dev-test_october-14-2024-09-09-15814234
- dev-tm_edits_october-11-2024-15-03-22468195
- dev-greg/dep-fixes
- dev-release/3.1.7
- dev-release/3.1.6
- dev-automatic_translations_february-01-2024-10-10-45274077
- dev-release/3.1.5
- dev-release/3.1.4
- dev-christian/test469
- dev-release/3.1.3
- dev-tag/3.1.2
- dev-tag/3.1.1
- dev-wpmldev-1724
- dev-test
- dev-release/3.0.4
- dev-wpmldev-776
- dev-design-159
- dev-release/3.0.3
- dev-master
- dev-wcml-3948
- dev-release/3.0.1
- dev-wpmldev-245-throttling
- dev-composer-autoload
- dev-wpmldev-245-logging
- dev-version-update-3-0-0
- dev-wpmldev-96
- dev-christian/wpmlsystem-34
- dev-wpmldev-245
- dev-wpmldev-146
- dev-site-url-detection-before-rollback
- dev-installer-818
- dev-master_backup
- dev-installer-821
- dev-feature/installer-791-bare-develop
- dev-feature/installer-791
- dev-installer-782-notices-demo
- dev-feature/wpmlcore-7536
- dev-feature/wpmlcore-7667
- dev-feature/installer-784-refactor
- dev-auto-updates-support
- dev-feature/installer-768
- dev-hotfix/installer-791
- dev-hotfix/installer-781
- dev-hotfix/installer-763
- dev-wpmlcore-7462
- dev-wpmlcore-6302-ajax-plugin-download
- dev-wpmlcore-6302-2
- dev-branch-4.3.17
- dev-wpmlcore-6302-notification
- dev-installer-716-recommendations-ajax-action
- dev-hotfix/installer-757-bare-fix
- dev-installer-757
- dev-installer-757-notice
- dev-tagging-2-4-0
- dev-installer-742
- dev-installer-741
- dev-ci-implement-template
- dev-wpmlcore-6302
- dev-wpmlcore-6302-clear
- dev-installer-716-2
- dev-autoload-test
- dev-hotfix/installer-703
- dev-test-fix-bruce
- dev-hotfix/api-db-tests-fix
- dev-hotfix/fix-test-db-config
- dev-feature/account-notices
- dev-installer-678
- dev-installer-687
- dev-installer-663
- dev-installer-679
- dev-installer-676
- dev-installer-674
- dev-installer-674-andrea
- dev-installer-675
- dev-installer_api-2
- dev-installer-671
- dev-installer-670
- dev-installer-668
- dev-installer-669
- dev-feature/installer-655
- dev-feature/installer-661
- dev-installer-634
- dev-installer-624
- dev-installer-618-andrea
- dev-installer-618
- dev-installer-621
- dev-integration-tests
- dev-installer_server-2
- dev-security-checker
- dev-installer-606-dependencies
- dev-installer-606
- dev-installer-596
- dev-installer-598
- dev-installer-589
- dev-ma-2595
- dev-installer-588-develop
- dev-installer-555
- dev-installer-585
- dev-wpmlcore-6259
- dev-installer-567
- dev-wpmlcore-6362
- dev-installer-563-andrea
- dev-wpmlcore-6303
- dev-wpmlga-453
- dev-wpmlcore-6060
- dev-dev-kasia-andrea
- dev-ditch-yarn
- dev-installer-531-1
- dev-installer-531
- dev-wpmlcore-5361-test-fix
- dev-wpmlcore-5361
- dev-installer-525
- dev-installer-521
- dev-installer-518-1
- dev-ci-php-extensions
- dev-installer-513
- dev-installer-516
- dev-installer-508
- dev-installer-502
- dev-installer-505
- dev-installer-487
- dev-installer-497
- dev-installer-486
- dev-installer-483
- dev-installer-477
- dev-oursystem-4989
- dev-wpmltm-2645
- dev-installer-465-1
- dev-installer-458
- dev-installer-445
- dev-wpmltm-2566
- dev-installer-440
- dev-1.8.14-dev
- dev-1.8.11.1-dev
- dev-installer-428
- dev-switcher-styles-handling-maybe-better
- dev-switcher-styles-handling
- dev-wpmlcore-5293-1
- dev-installer-424
- dev-installer-419
- dev-installer-403-1
- dev-installer-403
- dev-installer-400
- dev-installer-393-2
- dev-installer-392-3
- dev-installer-392-2
- dev-installer-392
- dev-installer-395
- dev-installer-394
- dev-installer-393
- dev-installer-389
- dev-installer-386
- dev-installer-381
- dev-installer-379
- dev-installer-380
- dev-installer-378
This package is auto-updated.
Last update: 2024-11-13 12:52:22 UTC
README
OTGS WP Installer is a library that allows you to install and upgrade plugins and themes developed by OnTheGoSystems.
Installation
First, add OTGS WP Installer as a dependency with Composer:
composer require otgs/installer
Make sure that your bootstrap file is loading the composer autoloader:
require_once 'vendor/autoload.php';
Then, load the OTGS WP Installer bootstrap. Before the plugins_loaded
action add:
include 'vendor/otgs/installer/loader.php';
Optionally, you can specify parameters to configure showing a dedicated UI under Plugins -> Install New
or to load specific repositories.
By default, all repositories configrede in repositories.xml
will be loaded:
- wpml - WPML.org
- toolset - WP-Types.com
WP_Installer_Setup( $wp_installer_instance,
array(
'plugins_install_tab' => '1', // optional, default value: 0
'repositories_include' => array( 'wpml' ) // optional, default to empty (show all)
)
);
After init
, configure display the OTGS WP Installer UI like in the example below:
WP_Installer_Show_Products(
array(
'template' => 'compact', //required
'product_name' => 'WPML',
'box_title' => 'Multilingual Avada',
'name' => 'Avada', //name of theme/plugin
'box_description' => 'Avada theme is fully compatible with WPML - the WordPress Multilingual plugin. WPML lets
you add languages to your existing sites and includes advanced translation management.',
'repository' => 'wpml', // required
'package' => 'multilingual-cms', // required
'product' => 'multilingual-cms' // required
)
);
template
two options available: default and compact. Default will be the same GUI as on the Plugins -> Install new page while compact is a smaller version that can be fit in a different already existing screenrepository
only one product of a specific product package from a specific repository can be shownpackage
only one product of a specific product package from a specific repository can be shownproduct
only one product of a specific product package from a specific repository can be shown