How to start writing a plugin

for example I need to add my twig {{phpTextFromVariable}} in content. how to pass variable from plugin to {{phpTextFromVariable}}.

Hi, check this cookbook recipe: Output some PHP code result in a Twig template

very grateful! works fine!

Ready! Gallery From a Folder of Images

Grats! See the dev docs if you want to make it available to everyone.