Create a php function that returns an image (QR-Code) performing an action to open a URL passed as input parameter.
To do this first find a library to generate QR-Code.
Then make a php function that will use the library chosen to generate the image.
Finally you should also tell us the method of installation of the library selected on a Linux server.
We use Code Igniter.