PHP code example of starbug / modules
1. Go to this page and download the library: Download starbug/modules library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
starbug / modules example snippets
// vendor/modules.php is generated by starbug/composer-modules-plugin from the installed composer packages.
$modules = a module
$config->disable("my-module");
// Enable multiple modules
$config->enableAll(["type" => "module"]);
// Disable multiple modules
$config->disableAll(["type" => "theme"]);
// Get enabled modules
$config->getEnabled();
// Get all modules
$config->getModules();
// Get module properties
$config->get("my-module")
// Get module property
$config->get("my-module", "path");