Magento 2
Local vs. Distributed Modules
Free Preview
## Local modules specific to your store are located in `app/code`
## Develop even distributed modules here first for debugging purposes

projectSrc

└── app
    └── code # Local modules

        └── {vendorName} # Your vendor name
            └── {moduleName} # Your module name
            └── {moduleName} # Another of your modules
            └── ...

        └── {vendorName} # Another local vendor
            └── ...

        └── ...

└── ...

## Modules intended for distribution are located in `vendor`
## Files within `vendor` are ephemeral artifacts (not persistent)
## Running `composer install` will remove any modules not in `composer.json`

└── vendor # Third-party modules

    └── magento # Magento source code
        └── ...

    └── {vendorName} # Third-party vendor
        └── {moduleName} # Module by this vendor
        └── {moduleName} # Another by same vendor
        └── ...

    └── {vendorName} # Another third-party vendor
        └── ...
Want to learn more?

Visit M.academy to learn much more about Magento, Laravel, PHP, Javascript, & Docker.

M.academy logo