PHP code example of perfcom / magento2-non-composer-registration

1. Go to this page and download the library: Download perfcom/magento2-non-composer-registration 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/ */

    

perfcom / magento2-non-composer-registration example snippets



return [
    'Vendor/ModuleName',
    'AnotherVendor/AnotherModule',
    'path/to/exclude',
    // Add more exclusions as needed
];



$registrationFiles = array(
    '/path/to/app/code/Vendor/Module/registration.php',
    '/path/to/app/design/frontend/Vendor/Theme/registration.php',
    // ... more registration files
);

foreach ($registrationFiles as $registrationFile) {