Packagist is a free online repository service for Composer packages. We can use it to easily distribute our free Magento modules. The fact that Packagist is a default Composer repository, makes it the de facto repository for any Composer user. This is why having our free Magento modules available via Packagist is a preferred way of distribution.
Pushing our Magento module to Packagist is quite easy. Assuming we have our account created, we should start by clicking on the Submit button, which will land us on the following screen:
We need to provide a link to our Git repository here, and click the Check button, followed by the Submit button, if the valid repository was found. This should create our package, as per the following screen:
The Packagist says that our created package is now available for use via the composer require magelicious/module-royal...