Skip to content

Latest commit

 

History

History
81 lines (54 loc) · 1.77 KB

File metadata and controls

81 lines (54 loc) · 1.77 KB

Light Cloud

PHP API Boilerplate

A modern Slim Framework REST API, ready to deploy on Light Cloud.


Features

  • Slim Framework 4
  • PSR-7 HTTP message interfaces
  • REST API with health check endpoint
  • Docker-ready for Cloud Run

API Endpoints

Method Endpoint Description
GET / Welcome message and API info
GET /health Health check with uptime

Local Development

# Install dependencies
composer install

# Run with PHP built-in server
php -S localhost:8080 -t public

The API will be available at http://localhost:8080

Deploy to Light Cloud

1. Create an Account

Visit console.light-cloud.com and sign up with GitHub or Google.

2. Create New Application

  1. Click "New Application" in the dashboard
  2. Select "Container" as the deployment type
  3. Choose "PHP" as the runtime

3. Connect Repository

  • Option A: Fork this repository and connect it via GitHub
  • Option B: Push this code to your own GitHub repository and connect it

4. Configure Settings

Light Cloud will auto-detect your settings:

Setting Value
Port 8080
Dockerfile Auto-detected

5. Deploy

Click "Deploy" and your API will be live in minutes!

Your API will be available at https://your-app.light-cloud.io


WebsiteDocumentationConsole

Made with ☁️ by Light Cloud