Download the PHP package nativephp/laravel-cloud-deploy without Composer

On this page you can find all versions of the php package nativephp/laravel-cloud-deploy. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package laravel-cloud-deploy

Laravel Cloud Deploy

Deploy Laravel applications to Laravel Cloud from the command line.

Sponsor

This project is sponsored by Bifrost - the fastest way to ship native apps with AI.

Installation

Configuration

Publish the configuration file:

This will create a config/cloud.php file where you can configure your deployment settings.

Environment Variables

Add your Laravel Cloud API token to your .env file:

Generate an API token in your Laravel Cloud organization settings, under "API tokens". LARAVEL_CLOUD_SOURCE_CONTROL defaults to github; the other options are gitlab, gitlab_self_hosted and bitbucket. The provider has to be connected to your Cloud organization before the application can be created.

Supported Regions

Usage

Deploy All Environments

Deploy Specific Environment

Options

Option Description
--skip-deploy Configure infrastructure without initiating a deployment
--force Skip confirmation prompts
--dry-run Show what would be done without making changes

A dry run only reads from the Cloud API. It looks everything up the same way a real run does and prints what it would create, update or attach, including background processes and databases. It never writes .laravel-cloud.json; it tells you whether a real run would.

Examples

Preview changes without deploying:

Configure infrastructure only (useful for initial setup):

Deploy production with no prompts:

Configuration File

The config/cloud.php file allows you to define:

See the published config file for detailed examples and documentation.

Databases

cloud:deploy owns the databases section. For each environment it deploys, it finds the cluster by name and only creates it when no cluster has that name. It then makes sure the environment's database exists in the cluster (named after the environment unless you give it a name) and attaches it.

It never detaches, drops or recreates a cluster or database. If an environment already has a different database attached, it's left alone and you get a warning. The settings of an existing cluster aren't changed.

State Management

The package maintains a .laravel-cloud.json file in your project root to track deployed infrastructure IDs. This allows subsequent deployments to update existing resources rather than creating duplicates.

Add it to git and share it with your team or CI tool. The file is only written when an ID in it changes, so a deploy that finds nothing new leaves it alone. Deployment IDs and timestamps aren't kept in it.

If the file is lost, the next run rebuilds it by looking everything up: the application by repository, and environments, instances, domains, database clusters and databases by name. Background processes have no name in Cloud, so they're matched on their settings (type, then queue connection and queues for workers, or the command for custom processes). A lost state file doesn't lead to duplicate workers.

Requirements

License

MIT License. See LICENSE for details.


All versions of laravel-cloud-deploy with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/console Version ^11.0|^12.0|^13.0
illuminate/http Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package nativephp/laravel-cloud-deploy contains the following files

Loading the files please wait ...