Magento 2
Create a Module Skeleton
Free Preview
app/code/Foo/Bar/etc/module.xml
<?xml version="1.0"?>
<!--
The "urn:magento:framework:Module/etc/module.xsd" schema is used to validate the
format of this XML file. You can inspect this file at:
vendor/magento/framework/Module/etc/module.xsd
-->
<config
    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
    xsi:noNamespaceSchemaLocation="urn:magento:framework:Module/etc/module.xsd">
    <!--
    The module node "name" attribute defines the module in Title_Snake syntax:
    -->
   <module name="Foo_Bar"/>
</config>
app/code/Foo/Bar/registration.php
<?php
// Import the ComponentRegistrar class
use Magento\Framework\Component\ComponentRegistrar;

// Register the component with Magento
ComponentRegistrar::register(
    ComponentRegistar::MODULE, // The type of module to register
      'Foo_Bar', // The name of your module in Title_Snake syntax
    __DIR__ // Look at the current working directory for the module
);
Want to learn more?

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

M.academy logo