desbest Do I interpret is correctly that you ask for a step-by-step guide? Such guides are a lot of work to write unfortunately, and probably too tailored to one example. Also if your challenge is in the php programming, tutorials on learning php are a better place to go. It is not doable for us to redo that.
To help you starting, we have tools available to let you quickly start with a skeleton of your plugin. Please checkout the plugin wizard (website) or dev plugin (for local use).
The suggestion above is also a very good one, studying existing plugins that look similar and try to understand how they did the job. The joy of open source ;-) Probably we can help you with some extra suggestions for similar plugins. You can browse the source code of all plugins at https://codesearch.dokuwiki.org/ without downloading any of them yourself, it includes search functionality as well.
Of course some of the existing guides could miss some helpful steps, if you found out you can improve them yourself already, or we of course can help improving these. For that it helps to ask specific questions about the specific challenges you face.