Magento modules can be used from app/code/*
and from vendor
directory, which used by composer
.
In order to understand whether the package is a magento
module, find in the root of the package the file registration.php
.
If file exist and contains code like
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'Vendor_ModuleName',
__DIR__ );
then it is magento module and you can use default ways (applicable to any core module) for customization (including using custom theme).
For component registration in composer package can be used files with other name (not registration.php
). For get used file you can look at composer.json
section autoload/files
"autoload": {
"files": [ "mycustomfilename.php" ],
}