Example Widget with Instructions (Object Method)
I just created an Example Widget with instructions on how to use it in the comments.
Unlike most widgets and modules, this uses the "object method" which allows you to echo directly and even copy and paste raw HTML code into the widget. Useful if you are reusing existing code and don't want to rewrite it. https://github.com/WisTex/Neuhub/blob/main/widget/Examplewidget/Examplewidget.php
Feel free to use it and adapt it. Let me know what you think. And I am open to feedback and pull requests.