How to add a custom PHP library as a non-GitHub composer package to a custom Magento 2 extension?

Thanks for advice,

While installing the custom module, automatically files download into local path or any think want to do for proper installing custom module.

In the case of using non github files, how can import and use the lib files.

Composer supports a lot of repository types, not only GutHub: How to install an extension not from a Git repository?