Skip to content

thecloudstation/php-example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CloudStation Logo

CloudStation PHP Starter

Deploy your PHP application seamlessly with CloudStation.
Visit CloudStation · Documentation · Blog

Overview

CloudStation simplifies the deployment process for developers, allowing you to focus on writing code without worrying about infrastructure. This repository showcases a simple PHP application that can be effortlessly deployed on CloudStation.

Getting Started

Follow these steps to get your PHP application running on CloudStation.

Prerequisites

Ensure you have a CloudStation account. If you don't have one yet, sign up here.

Step-by-Step Deployment (For Customization)

Fork the Repository:

Click the Fork button at the top-right of this repository to create your own copy.

Deploy the Application:

  1. Navigate to the CloudStation Dashboard.
  2. Create a new project.
  3. Click on Add New and select GitHub.
  4. In the repositories list, select the repository you just forked.
  5. Choose a subdomain for your App i.e php-example, and click Deploy.

Automatic Build with Nixpacks

CloudStation first checks if your application contains a Dockerfile. If a Dockerfile is present, it will be used for building your application. If no Dockerfile is found, CloudStation uses Nixpacks, a build system that automatically detects the programming language and framework of your application. For this PHP application, Nixpacks identifies it as a PHP project and manages the entire build process seamlessly. This approach simplifies the deployment workflow and reduces setup time for projects without a custom Dockerfile.

Access Your Application:

Once deployed, your application will be accessible at https://php-example.cloud-station.app.

Application Structure

This sample PHP application consists of the following files:

  • index.php: The main entry point of the application.
  • config.php: Contains configuration settings.
  • functions.php: Includes utility functions.
  • style.css: Provides basic styling for the application.

Customization

To modify the application, simply make changes in your forked repository and push them. CloudStation will automatically rebuild and redeploy your application.

Contributing

We welcome contributions to enhance this example application. Feel free to fork the repository, create a feature branch, and submit a pull request.

Support

For support, visit our Help Center or reach out via Slack.

Connect with Us

Website - X - Slack

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published