PHPackages                             sthira-labs/laravel-deployments - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [DevOps &amp; Deployment](/categories/devops)
4. /
5. sthira-labs/laravel-deployments

ActiveLibrary[DevOps &amp; Deployment](/categories/devops)

sthira-labs/laravel-deployments
===============================

A simple, migration-like deployment script manager for Laravel applications.

v1.0.0(6mo ago)01MITPHPPHP ^8.1

Since Dec 25Pushed 6mo agoCompare

[ Source](https://github.com/sthira-labs/laravel-deployments)[ Packagist](https://packagist.org/packages/sthira-labs/laravel-deployments)[ RSS](/packages/sthira-labs-laravel-deployments/feed)WikiDiscussions main Synced today

READMEChangelogDependencies (5)Versions (4)Used By (0)

Laravel Deployments
===================

[](#laravel-deployments)

A simple, migration-like deployment script manager for Laravel applications.

Installation
------------

[](#installation)

```
composer require sthira-labs/laravel-deployments
```

Setup
-----

[](#setup)

Publish the configuration and migration:

```
php artisan vendor:publish --tag=deployments-config
php artisan vendor:publish --tag=deployments-migrations
php artisan vendor:publish --tag=deployments-stubs
```

Run the migration:

```
php artisan migrate
```

Usage
-----

[](#usage)

### Create a Deployment

[](#create-a-deployment)

```
php artisan make:deployment PatAutomation
```

This creates a timestamped file in `app/Deployments/`.

### Run Deployments

[](#run-deployments)

```
# Dry run (no DB writes)
php artisan deploy:run --dry

# Execute deployments
php artisan deploy:run

# Production (requires --force)
php artisan deploy:run --force
```

### Check Status

[](#check-status)

```
php artisan deploy:status
```

### Rollback

[](#rollback)

```
# Rollback last batch
php artisan deploy:rollback

# Rollback specific batch
php artisan deploy:rollback --batch=1

# Production rollback
php artisan deploy:rollback --force
```

Example Deployment
------------------

[](#example-deployment)

```
