
September 09, 2026
13 min read
By Kokil Thapa | Last reviewed: September 2026
You need a cloud account that matches how you actually ship code, not a slide deck of product names. An Introduction to Google Cloud Platform for Developers starts with projects, IAM, billing, and the handful of services that run real apps — then moves to deploy paths you can copy today. If you already run Laravel on a VPS with Linux system administration and Git-based deploys, GCP gives you the same control with managed databases, object storage, and CI hooks. This guide maps the platform for working engineers, founders, and agency teams in Nepal and abroad.
What is Google Cloud Platform and why should developers care?
Google Cloud Platform (GCP) is Google's public cloud. It offers virtual machines, containers, managed databases, storage, networking, and AI APIs over the internet. Developers pay for what they use, scale resources up or down, and integrate with GitHub, GitLab, and standard CI tools.
GCP organizes everything under a project. Each project has its own billing, APIs, and IAM policies. You might use one project for staging and another for production. That separation keeps test mistakes away from live traffic.
For teams building custom software, GCP's strength is depth in data and Kubernetes. BigQuery, Pub/Sub, and Google Kubernetes Engine (GKE) are first-class citizens. If your stack is PHP, Laravel, WordPress, or WooCommerce, you still get solid paths through Compute Engine VMs, Cloud Run containers, and Cloud SQL for MySQL or PostgreSQL 18.
Nepal-based teams often pick the asia-south1 region (Mumbai) for lower latency to Kathmandu. US and EU regions work for global clients. Region choice affects price, latency, and data residency. Pick one early and keep staging in the same region as production when possible.
Read our AWS vs Azure vs Google Cloud comparison for 2026 if you are still choosing a primary vendor. GCP wins when Kubernetes, analytics, or Google Workspace integration matter most.
How do you set up a Google Cloud project for development?
Start in the Google Cloud documentation and create a billing account. Google requires a valid payment method even for free-tier usage. New accounts often receive USD 300 in trial credits for 90 days.
Create the project and install gcloud
Install the Google Cloud CLI on Ubuntu 22 or 24, macOS, or Windows. Authenticate once, then every command targets a project ID you set.
# Install gcloud (Debian/Ubuntu example)
curl -O https://dl.google.com/dl/cloudsdk/channels/rapid/downloads/google-cloud-cli-linux-x86_64.tar.gz
tar -xf google-cloud-cli-linux-x86_64.tar.gz
./google-cloud-sdk/install.sh
# Authenticate and set defaults
gcloud auth login
gcloud auth application-default login
gcloud projects create my-app-dev-2026 --name="My App Dev"
gcloud config set project my-app-dev-2026
gcloud billing projects link my-app-dev-2026 --billing-account=BILLING_ACCOUNT_ID Enable only the APIs you need. Each enabled API is a potential cost and attack surface. For a typical web application, start with these:
- Compute Engine API — virtual machines
- Cloud Run Admin API — container deploys without managing nodes
- Cloud SQL Admin API — managed MySQL or PostgreSQL
- Cloud Storage API — file and backup storage
- Secret Manager API — store database passwords and API keys
- Cloud Build API — CI builds in the cloud
gcloud services enable \
compute.googleapis.com \
run.googleapis.com \
sqladmin.googleapis.com \
storage.googleapis.com \
secretmanager.googleapis.com \
cloudbuild.googleapis.com Configure IAM before you deploy
IAM controls who can do what. Never give broad Owner roles to service accounts or contractors. Use least privilege.
- Create a dedicated service account for CI/CD, for example
deployer@my-app-dev-2026.iam.gserviceaccount.com. - Grant roles like
roles/run.developerorroles/compute.instanceAdmin.v1— not Project Owner. - Store the JSON key in your CI secret store, not in Git.
- Enable MFA on all human Google accounts with Console access.
Official IAM guidance lives in the Google Cloud IAM documentation. Treat it as mandatory reading before production.
Before pushing config files, validate JSON in your CI step. A broken cloudbuild.yaml wastes build minutes. Use the JSON formatter tool locally to catch syntax errors early.
Which GCP services do developers use most often?
GCP has hundreds of products. Most application developers touch a small set daily. Know these first, then add specialized services as requirements grow.
| Service | What it does | Best for | PHP/Laravel fit |
|---|---|---|---|
| Compute Engine (GCE) | Virtual machines you manage | Full control, legacy apps, custom stacks | Apache + PHP-FPM 8.5, same as a VPS |
| Cloud Run | Serverless containers | HTTP APIs, variable traffic, minimal ops | Dockerized Laravel with Octane or nginx |
| GKE | Managed Kubernetes | Microservices, high scale, multi-team ops | See our GKE practical guide |
| Cloud SQL | Managed MySQL, PostgreSQL, SQL Server | Production databases without DBA overhead | MySQL 8.4 or PostgreSQL 18 for Laravel 13 |
| Cloud Storage | Object storage (S3-compatible) | Uploads, backups, static assets | Laravel filesystem driver via GCS adapter |
| Cloud Build | Managed CI/CD builds | Build containers on push | Composer install, PHPUnit, deploy to Run |
| Secret Manager | Encrypted secret storage | DB credentials, API keys | Inject into Cloud Run at runtime |
| Cloud CDN + Load Balancing | Global edge caching and traffic distribution | Public sites with traffic spikes | WooCommerce, booking portals, media-heavy sites |
Compute Engine: the familiar VPS path
Compute Engine feels closest to the Ubuntu servers many Nepal agencies already run. You get a VM, install PHP 8.3 or 8.5, configure Apache or Nginx, and deploy with Git, Deployer 7, or a CI script.
# Create a small e2-medium VM in Mumbai
gcloud compute instances create laravel-app-01 \
--zone=asia-south1-a \
--machine-type=e2-medium \
--image-family=ubuntu-2404-lts \
--image-project=ubuntu-os-cloud \
--boot-disk-size=30GB \
--tags=http-server,https-server
# Allow HTTP and HTTPS
gcloud compute firewall-rules create allow-web \
--allow=tcp:80,tcp:443 \
--target-tags=http-server,https-server On a client project I maintain on EC2, the deploy pattern is identical: symlinked releases, shared .env, PHP-FPM reload. GCE supports the same workflow. The difference is GCP-native backups, snapshots, and IAM-bound service accounts instead of long-lived SSH keys everywhere.
Cloud Run: when you want less server admin
Cloud Run runs containers that scale to zero. You pay per request and CPU time. Cold starts matter for latency-sensitive apps, so keep images lean and consider minimum instances for production.
# Build and deploy a container (after pushing to Artifact Registry)
gcloud run deploy laravel-api \
--image=asia-south1-docker.pkg.dev/my-app-dev-2026/app/laravel:latest \
--region=asia-south1 \
--allow-unauthenticated \
--set-env-vars=APP_ENV=production \
--set-secrets=DB_PASSWORD=db-password:latest Cloud Run suits REST API development and webhook receivers. Full Laravel apps with queues and schedulers need extra planning. Run workers on a small GCE instance or use Cloud Run jobs for batch work.
Cloud SQL and Redis
Cloud SQL handles patches, replicas, and point-in-time recovery. Create a MySQL 8.4 or PostgreSQL 18 instance, restrict access to your VPC, and point Laravel's DB_HOST at the private IP.
For caching, use Memorystore for Redis 8.10 or a self-managed Redis on GCE. Laravel queue workers connect over the VPC internal network. Never expose Redis to the public internet.
Our PostgreSQL for Laravel developers guide applies directly when you choose Cloud SQL for PostgreSQL.
How does GCP pricing work for development workloads?
GCP bills per second for compute, per GB for storage, and per query for some managed services. There is no flat "developer plan." You control cost through machine sizing, preemptible VMs, committed use discounts, and budgets with alerts.
Set a billing budget on day one. A common mistake is leaving oversized Cloud SQL instances running after a demo. A db-custom-2-7680 instance costs far more per month than an e2-medium VM.
- Always Free tier — limited GCE, Cloud Storage, BigQuery, and Cloud Run usage per month
- Sustained use discounts — automatic price drops on GCE when a VM runs most of the month
- Committed use — one- or three-year discounts for predictable production loads
- Preemptible / Spot VMs — cheap interruptible compute for batch jobs and CI workers
Check current rates in the Google Cloud pricing page before quoting clients. A small production stack — e2-medium VM, Cloud SQL micro, 50 GB storage — often lands around USD 80–150/month (~Rs 10,600–20,000 at typical 2026 exchange rates). Staging can run smaller.
Compare against Vultr cloud compute or bare VPS hosting if budget is tight. GCP earns its premium when managed databases, global load balancing, and integrated CI matter.
How do you deploy a Laravel or PHP application on Google Cloud?
Laravel 13 needs PHP 8.3 or higher. Laravel 12 runs on PHP 8.2+. Match your Cloud Run or GCE image to your framework version before deploy.
Path A: Compute Engine with GitLab CI
This mirrors the Deployer 7 workflow I use on sister legal-tech sites. Build assets locally or in CI, rsync or Git-pull on the server, run migrations, reload PHP-FPM.
- Provision GCE with Ubuntu 24, install PHP-FPM 8.5, Composer 2.10, and Nginx.
- Create Cloud SQL MySQL, allow the VM's service account via private IP.
- Store production secrets in Secret Manager; fetch them in a deploy script.
- Configure GitLab CI to SSH or use
gcloud compute scpafter tests pass. - Point DNS A record to the VM's static external IP or a load balancer.
Projects like Adventure Third Pole Trek run Laravel with Livewire, queues, and booking logic. That workload fits GCE well because workers and schedulers need always-on processes.
Path B: Cloud Run with Cloud Build
Containerize the app. Use a multi-stage Dockerfile: Composer install in build stage, slim PHP-FPM or nginx runtime in final stage.
# cloudbuild.yaml (simplified)
steps:
- name: 'gcr.io/cloud-builders/docker'
args: ['build', '-t', '$_IMAGE', '.']
- name: 'gcr.io/cloud-builders/docker'
args: ['push', '$_IMAGE']
- name: 'gcr.io/google.com/cloudsdktool/cloud-sdk'
entrypoint: gcloud
args: ['run', 'deploy', 'laravel-app', '--image', '$_IMAGE', '--region', 'asia-south1']
images:
- '$_IMAGE' Read the dedicated Google Cloud Build guide for trigger setup from GitHub and GitLab. Wire PHPUnit into the build step so broken code never reaches Run.
Path C: WordPress and WooCommerce 11.1
WordPress 7.1 on WooCommerce 11.1 still prefers a traditional LAMP or LEMP stack on GCE for plugin compatibility. Cloud Run works for headless setups but adds complexity most shop owners do not need. Use Cloud Storage for media offloading and Cloud CDN for static assets.
For eCommerce builds, see e-commerce development services and the Quick And Easy Nepalese Grocery portfolio case for delivery-zone logic patterns that translate to any cloud.
Observability and hardening
Enable Cloud Logging and Error Reporting from the start. Laravel's log channel can ship JSON to stdout; Cloud Run picks it up automatically. Set uptime checks on critical endpoints.
Follow baseline hardening: disable password SSH login, use OS Login or short-lived keys, patch monthly, and run testing and optimization before traffic spikes. For PCI or payment integrations, review our PCI DSS essentials for developers article alongside GCP's own compliance docs.
What mistakes do developers make on GCP?
Experience from production PHP work transfers, but GCP has its own footguns. Avoid these early.
- Open firewall rules —
0.0.0.0/0on port 3306 exposes Cloud SQL. Use private IP only. - Over-provisioned instances — Right-size after a week of metrics, not on guesswork.
- Service account sprawl — One SA per app environment, not one shared key for everything.
- Ignoring quotas — New projects have API quotas. Request increases before launch day.
- Mixing regions — VM in asia-south1 talking to Cloud SQL in us-central1 adds latency and egress cost.
- Skipping backups — Enable automated Cloud SQL backups and test a restore quarterly.
Multi-cloud teams should read multi-cloud architecture guide and secrets management across clouds before splitting workloads between GCP and AWS.
If you are evaluating GCP for career growth, our cloud computing salaries in Nepal breakdown covers demand for GCP skills alongside AWS and Azure.
Key Takeaways
- Create a GCP project, link billing, enable only required APIs, and configure IAM with least privilege before any deploy.
- Pick Compute Engine for full-stack monoliths, Cloud Run for containerized APIs, and GKE when Kubernetes ops is already a team skill.
- Use Cloud SQL, Cloud Storage, and Secret Manager instead of self-managing databases and credentials on the VM disk.
- Deploy from Git through Cloud Build or your existing CI pipeline — the workflow parallels VPS deploys you may already run.
- Set billing budgets, choose asia-south1 for Nepal-facing latency, and right-size instances after reviewing metrics.
- Treat this Introduction to Google Cloud Platform for Developers as a starting map — deepen with GKE, Cloud Build, and vendor comparison articles next.
People Also Ask
Is Google Cloud free for developers?
GCP offers an Always Free tier with monthly limits on Compute Engine, Cloud Storage, Cloud Run, and other services. New customers also receive USD 300 in trial credits for 90 days. You still need a billing account, and charges apply when usage exceeds free limits.
Do I need to learn Kubernetes to use Google Cloud?
No. Many PHP and Laravel apps run fine on Compute Engine or Cloud Run without Kubernetes. GKE is optional and makes sense when you operate microservices at scale or your team already runs containers in production.
Which Google Cloud region is best for Nepal?
The asia-south1 region in Mumbai usually gives the lowest latency from Kathmandu. Test from your office network before committing. Global clients may need multi-region load balancing or CDN in front of a primary region.
Can I run Laravel 13 on Google Cloud?
Yes. Laravel 13 requires PHP 8.3 or higher. Install PHP 8.5 on Compute Engine or build a Docker image with the correct PHP extensions for Cloud Run. Pair it with Cloud SQL MySQL or PostgreSQL and Memorystore for Redis queues.
Start building on GCP with a clear first project
An Introduction to Google Cloud Platform for Developers is most useful when tied to one real app — a staging API, a migrated WordPress site, or a new Laravel module. Pick a compute path, wire CI, lock down IAM, and measure cost for thirty days before scaling up.
If you want help architecting a GCP deploy for a booking portal, eCommerce store, or legal-tech platform, review the portfolio, explore enterprise application development, and contact us with your stack and timeline. For AI features on GCP, Vertex AI pairs well with the patterns in our AI integration services and the Claude API developer guide.
Frequently Asked Questions
0 Comments
Leave a comment
Your email is not published. Comments appear once they have been read. Sign in to have your details filled in.

