We have a few library plugins that we want to open source on GitHub, but we want to preserve the author credit for us when our libraries are used by others. I see a lot of different open source licenses like Apache 2.0, MIT, GPL etc. What should be the best to use in my case? I am not that good with all this TL;DR stuff.My primary goal is we preserve author credit for source and versioning both. In addition, if someone wants to use this in commercial products they pay us a little fee.
Best open source license to preserve author credit?
license recommendation;attribution;software
Essentially all open source licenses cover your author credit requirement. None will allow restrictions for a certain use case.You'll either have to dual-license your software by releasing it under both, say, the MIT license (which is widely used and very simple) and a commercial license as an alternative or look beyond open source. As you can't prevent commercial users from simply using the MIT version you'd have to add something of value to the commercial version, such as premium support.