how to create custom module in magento with example
Example: register module in magento 2
\Magento\Framework\Component\ComponentRegistrar::register(
\Magento\Framework\Component\ComponentRegistrar::MODULE,
'MyModule_Condition',
__DIR__
);