I want to upload files to Google Cloud Storage (Bucket) through my PHP or JavaScript application which is hosted in my localhost or external server.
As I tried the Goog
You can do it creating an upload URL. With that, an user can upload files to GCS using a HTML form, check this documentation. It has all the information to do it using PHP.