Recommend this page to a friend! |
Download |
Info | Example | Files | Install with Composer | Download | Reputation | Support forum | Blog | Links |
Last Updated | Ratings | Unique User Downloads | Download Rankings | |||||
2024-10-10 (Yesterday) | Not enough user ratings | Total: 10 This week: 10 | All time: 11,420 This week: 7 |
Version | License | PHP version | Categories | |||
helloworld_http_func 1.0 | MIT/X Consortium ... | 5 | PHP 5, Web services, Hosting |
Description | Author | |
This package provides a PHP example of the Google Cloud function. |
<?php |
This is the example for GCP Cloud function with PHP.
function_name="your function name"
REGION="your GCP region"
gcloud functions deploy ${function_name} \
--gen2 \
--runtime=php82 \
--region="$REGION" \
--source=. \
--entry-point=helloHttp \
--trigger-http \
--allow-unauthenticated
function_name="your function name"
REGION="your GCP region"
gcloud functions delete ${function_name} --region="$REGION"
Files (4) |
File | Role | Description |
---|---|---|
composer.json | Data | Auxiliary data |
index.php | Example | Example script |
LICENSE | Lic. | License text |
README.md | Doc. | Documentation |
The PHP Classes site has supported package installation using the Composer tool since 2013, as you may verify by reading this instructions page. |
Install with Composer |
Version Control | Unique User Downloads | Download Rankings | |||||||||||||||
100% |
|
|
Applications that use this package |
If you know an application of this package, send a message to the author to add a link here.