Learn how to get started on Square Cloud with PHP
composer.json
(*Optional dependency file).START
field is not defined in the configuration file, a local PHP server will be started using the php -S 0.0.0.0:80
command. If the START
field is defined in the configuration file, the value in the START
field will be executed directly. For more information on configuration file parameters, visit configuration parameters.
composer.json
file exists, all dependencies will be installed using the php composer.phar install
command.
composer.json
file, Square Cloud will automatically install dependencies using Composer. However, if your project also has Node dependencies (i.e., a package.json
file), you should specify the installation process in the START
field of your squarecloud.app
file. For example:
squarecloud.app/.config
) file must be located in the root of the zip file. Otherwise, Square Cloud will not be able to find it during deployment.