Is there a way to use PHP instead of python to detect callback from a GPIO pin? I see you can use shell_exec to execute a pin but not read output in real-time. An example is using a vibration sensor and detecting that sensor in real-time using ajax so I can see when the sensor vibrates via my browser hence the need for php.. I do not want to use a GUI library as I am most familiar with php.
There is currently no library to use PHP to manipulate the GPIO in that manner. I've seen one basic library, but it doesn't support using callbacks.
I would recommend using Python for this portion of your backend.