I couldn't find out there a PHP tutorial for storing a file in the free bucket of a Google Apps Engine project and retrieving its contents. The idea of this post is to do it step by step assuming the GAE project was correctly created.
1) If you created a GAE project it has been granted a 5Gb of a free Google Cloud Storage bucket. Its name is "YOUR_PROJECT_ID.appspot.com"
https://console.cloud.google.com/storage/browser
2) A Service Account must be created and asgigned to use the SDK.
Steps Here
3) This is the basic PHP code to store a file with a "Hello World" content. This code could be executed from the terminal windows.
<?php
$filename = "tutorial.txt"; // filename in the bucket
$txt_toSave = "Hello Word"; // text content in the file
// lets add code here
?>
php GCStorage_save_example.php
4) This is the basic PHP code to retrieve a file's content from the bucket.
<?php
// lets add code here
echo $txt_fileContent;
?>
php GCStorage_retrieve_example.php
a) if permissions must be granted feel free to add the step b) if any other step must be done feel free to add it