How do i run wallet script through PHP code without command line?

My php code on cardano-sl is running well with browser but I’ve to manually write
on command line every time to perform API operation but now I want to run it dynamically with PHP code as I am running this code on localhost but It will get errors while upload on server.