Getting Started with PHP Hosting
Deploy your PHP applications on ShardCloud with minimal configuration and maximum performance.ShardCloud supports PHP applications with automatic dependency management via Composer and built-in web server.
Prerequisites
Before uploading your PHP application, ensure you have the following project structure ready.Required Files
Essential files for deployment
Optional Files
Enhanced functionality files
Required Files
Your PHP application must include these two essential files:1. Entry Point File
- File:
index.phpor your main PHP file - Purpose: Main application entry point
- Requirements: Must contain your application’s main execution code
2. ShardCloud Configuration
- File:
.shardcloud - Purpose: Platform-specific deployment settings
- Requirements: Plain text configuration file in root directory
Optional Files
Enhance your PHP application with these optional configuration files:Composer Dependencies (Optional)
- File:
composer.json - Purpose: Defines PHP dependencies and project metadata
- Benefits: Automatic dependency installation and autoloading
- Note: If present, Composer will automatically install dependencies during deployment
composer.json is optional but recommended for applications using external packages or frameworks.
ShardCloud Configuration
The .shardcloud file configures your application deployment settings.Configuration Example
PHP applications have moderate memory requirements. Adjust based on your application’s complexity and traffic.
Deployment Process
Upload via Dashboard
Use ShardCloud dashboard to upload your archive
