In my Joomla application, I have functionality where I use server variables, like request_uri and query parameters for parsing url string.
This function is used in many modules. So, I wanted to implement the same functionality by using a custom plugin, following Joomla tutorial.
My question is whether using a plugin in this case is appropriate.
And can we use server objects in a plugin class?
If yes, how to use this plugin in my other modules and components.
Any detailed answers are appreciated.