You can run different types of applications on PHP using Hostman: APIs, background workers, cron jobs, private services, and more.
Hostman provides CI/CD for all types of services, as well as great scalability.
To deploy a PHP application, click "Create a service" in the top-left corner in your Dashboard and choose Back-end application.
Connect your Git account and choose the repository to deploy.
Like all back-end applications, a PHP application must run on a specific cloud server. Choose the location and configuration of this cloud server. You can upgrade it in the future.
Choose your framework in the App customization window.
PHP uses a composer dependencies manager. You don't have to include this in the Build command. Hostman detects the composer.json file and installs all dependencies on its own.
Click Deploy and you'll see the deployment process in the log. When it's complete, you'll receive a notification. You can also send these notifications to your Slack.
Usually it takes some time to install the cloud server during the first deployment.
First of all, check the deployment log. You'll see the stage where something went wrong.
The most common issues are with the launch command. Check that everything is working properly in your development environment. Check that all the packages your application needs are in the composer.json file.
Also, we are here to help, so don't hesitate to ask us about the causes via chat.