PHPackages                             dragon-code/laravel-deploy-operations - 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. [Database &amp; ORM](/categories/database)
4. /
5. dragon-code/laravel-deploy-operations

ActiveLibrary[Database &amp; ORM](/categories/database)

dragon-code/laravel-deploy-operations
=====================================

Performing any actions during the deployment process

7.2.0(2mo ago)240173.5k—7.1%151MITPHPPHP ^8.2CI passing

Since Dec 7Pushed 1mo ago1 watchersCompare

[ Source](https://github.com/TheDragonCode/laravel-deploy-operations)[ Packagist](https://packagist.org/packages/dragon-code/laravel-deploy-operations)[ Fund](https://boosty.to/dragon-code)[ Fund](https://yoomoney.ru/to/410012608840929)[ RSS](/packages/dragon-code-laravel-deploy-operations/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (10)Dependencies (18)Versions (88)Used By (1)

🚀 Laravel Deploy Operations
===========================

[](#-laravel-deploy-operations)

  ![Laravel Deploy Operations](https://camo.githubusercontent.com/9940085a7dcc061279ac6088da11a1d848f0f47639740201ca804c9f35149e85/68747470733a2f2f62616e6e6572732e6265796f6e64636f2e64652f4465706c6f792532304f7065726174696f6e732e706e673f7061747465726e3d746f706f677261706879267374796c653d7374796c655f3226666f6e7453697a653d3130307078266d643d312673686f7757617465726d61726b3d31267468656d653d6c69676874267061636b6167654d616e616765723d636f6d706f7365722b72657175697265267061636b6167654e616d653d647261676f6e2d636f64652532466c61726176656c2d6465706c6f792d6f7065726174696f6e73266465736372697074696f6e3d506572666f726d696e672b616e792b616374696f6e732b647572696e672b7468652b6465706c6f796d656e742b70726f6365737326696d616765733d68747470732533412532462532466c61726176656c2e636f6d253246696d672532466c6f676f6d61726b2e6d696e2e737667)[![Stable Version](https://camo.githubusercontent.com/616668eb0f367948d32b8aacfb3314720594b07d672f64c6a66c046ab85b9a36/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f762f72656c656173652f546865447261676f6e436f64652f6c61726176656c2d6465706c6f792d6f7065726174696f6e733f6c6162656c3d7061636b6167697374267374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/laravel-deploy-operations)[![Total Downloads](https://camo.githubusercontent.com/cfc35a50043665e24b8dbc630f029c35925182630b2829b89271595ce411ece3/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f6c61726176656c2d6465706c6f792d6f7065726174696f6e732e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/dragon-code/laravel-deploy-operations)[![Github Workflow Status](https://camo.githubusercontent.com/83aa080c264d04b8a54664cb7ad2caa4b2b059553c092ed948596491eb4051d2/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f546865447261676f6e436f64652f6c61726176656c2d6465706c6f792d6f7065726174696f6e732f74657374732e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/TheDragonCode/laravel-deploy-operations/actions)[![License](https://camo.githubusercontent.com/277e9ac6f0e691bce348ff88501117c63b2dac74bb8bfa7bc9ad238c66bb4341/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f647261676f6e2d636f64652f6c61726176656c2d6465706c6f792d6f7065726174696f6e732e7376673f7374796c653d666c61742d737175617265)](LICENSE)

⚡ **Performing any actions during the deployment process**

Create specific classes for a one-time or more-time usage, that can be executed automatically after each deployment. Perfect for seeding or updating some data instantly after some database changes, feature updates, or perform any actions.

This package is for you if...

- you regularly need to update specific data after you deploy new code
- you often perform jobs after deployment
- you sometimes forget to execute that one specific job and stuff gets crazy
- your code gets cluttered with jobs that are not being used anymore
- your co-workers always need to be reminded to execute that one job after some database changes
- you often seed or process data in a migration file (which is a big no-no!)

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

[](#installation)

To get the latest version of **Deploy Operations**, simply require the project using [Composer](https://getcomposer.org):

```
composer require dragon-code/laravel-deploy-operations
```

Documentation
-------------

[](#documentation)

📚 [Check out the full documentation to learn everything that Laravel Deploy Operations has to offer.](https://deploy-operations.dragon-code.pro)

Basic Usage
-----------

[](#basic-usage)

Create your first operation using `php artisan make:operation` console command and define the actions it should perform.

```
use App\Models\Article;
use DragonCode\LaravelDeployOperations\Operation;

return new class extends Operation {
    public function __invoke(): void
    {
        Article::query()
            ->lazyById(chunkSize: 100, column: 'id')
            ->each->update(['is_active' => true]);

        // and/or any actions...
    }
};
```

Next, you can run the console command to start operations:

```
php artisan operations
```

Downloads Stats
---------------

[](#downloads-stats)

This project has gone the way of several names, and here are the number of downloads of each of them:

- [![](https://camo.githubusercontent.com/9345802ed0e66e58bbacc53748b18c47af4270196ccf928fae93b7575eda864a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f6c61726176656c2d6465706c6f792d6f7065726174696f6e733f7374796c653d666c61742d737175617265266c6162656c3d647261676f6e2d636f64652532466c61726176656c2d6465706c6f792d6f7065726174696f6e73)](https://camo.githubusercontent.com/9345802ed0e66e58bbacc53748b18c47af4270196ccf928fae93b7575eda864a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f6c61726176656c2d6465706c6f792d6f7065726174696f6e733f7374796c653d666c61742d737175617265266c6162656c3d647261676f6e2d636f64652532466c61726176656c2d6465706c6f792d6f7065726174696f6e73)
- [![](https://camo.githubusercontent.com/30565736367251a15e289072635c018eb610343fc61e1de5227515f085e9a7b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f6c61726176656c2d616374696f6e733f7374796c653d666c61742d737175617265266c6162656c3d647261676f6e2d636f64652532466c61726176656c2d616374696f6e73)](https://camo.githubusercontent.com/30565736367251a15e289072635c018eb610343fc61e1de5227515f085e9a7b6/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f6c61726176656c2d616374696f6e733f7374796c653d666c61742d737175617265266c6162656c3d647261676f6e2d636f64652532466c61726176656c2d616374696f6e73)
- [![](https://camo.githubusercontent.com/6ea51879929f9a37c16f5c6a11032f2753860ef836f1d08838bb6f77453346cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f6c61726176656c2d6d6967726174696f6e2d616374696f6e733f7374796c653d666c61742d737175617265266c6162656c3d647261676f6e2d636f64652532466c61726176656c2d6d6967726174696f6e2d616374696f6e73)](https://camo.githubusercontent.com/6ea51879929f9a37c16f5c6a11032f2753860ef836f1d08838bb6f77453346cf/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f647261676f6e2d636f64652f6c61726176656c2d6d6967726174696f6e2d616374696f6e733f7374796c653d666c61742d737175617265266c6162656c3d647261676f6e2d636f64652532466c61726176656c2d6d6967726174696f6e2d616374696f6e73)
- [![](https://camo.githubusercontent.com/c45ee8fedc64c09cf9e87613ba5351aa3a902b3bc61b1662ba23068a3f97c180/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e647265792d68656c6c6461722f6c61726176656c2d616374696f6e733f7374796c653d666c61742d737175617265266c6162656c3d616e647265792d68656c6c6461722532466c61726176656c2d616374696f6e73)](https://camo.githubusercontent.com/c45ee8fedc64c09cf9e87613ba5351aa3a902b3bc61b1662ba23068a3f97c180/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f616e647265792d68656c6c6461722f6c61726176656c2d616374696f6e733f7374796c653d666c61742d737175617265266c6162656c3d616e647265792d68656c6c6461722532466c61726176656c2d616374696f6e73)

License
-------

[](#license)

This package is licensed under the [MIT License](LICENSE).

###  Health Score

66

—

FairBetter than 99% of packages

Maintenance89

Actively maintained with recent releases

Popularity52

Moderate usage in the ecosystem

Community24

Small or concentrated contributor base

Maturity82

Battle-tested with a long release history

 Bus Factor1

Top contributor holds 83.2% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~23 days

Recently: every ~87 days

Total

85

Last Release

62d ago

Major Versions

2.x-dev → v3.0-RC12022-10-12

v3.2.0 → v4.0.02023-01-21

4.x-dev → 5.0.02024-05-13

5.x-dev → 6.0.02024-05-21

6.5.2 → 7.0.02025-04-02

PHP version history (4 changes)v1.0.0PHP ^7.3|^8.0

v2.1.0PHP ^7.3 || ^8.0

v3.0-RC1PHP ^8.0.2

5.0.0PHP ^8.2

### Community

Maintainers

![](https://www.gravatar.com/avatar/b77790e612f1c9beed1e1533e36eba4954fbd6da2a5c9f71e845cd0f5465f0ad?d=identicon)[Helldar](/maintainers/Helldar)

---

Top Contributors

[![andrey-helldar](https://avatars.githubusercontent.com/u/10347617?v=4)](https://github.com/andrey-helldar "andrey-helldar (606 commits)")[![actions-user](https://avatars.githubusercontent.com/u/65916846?v=4)](https://github.com/actions-user "actions-user (58 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (55 commits)")[![github-actions[bot]](https://avatars.githubusercontent.com/in/15368?v=4)](https://github.com/github-actions[bot] "github-actions[bot] (3 commits)")[![fkrzski](https://avatars.githubusercontent.com/u/75097934?v=4)](https://github.com/fkrzski "fkrzski (1 commits)")[![adelf](https://avatars.githubusercontent.com/u/2818394?v=4)](https://github.com/adelf "adelf (1 commits)")[![Kuodster](https://avatars.githubusercontent.com/u/8902787?v=4)](https://github.com/Kuodster "Kuodster (1 commits)")[![Quiss](https://avatars.githubusercontent.com/u/4972114?v=4)](https://github.com/Quiss "Quiss (1 commits)")[![SaintPeter](https://avatars.githubusercontent.com/u/553494?v=4)](https://github.com/SaintPeter "SaintPeter (1 commits)")[![tvbeek](https://avatars.githubusercontent.com/u/2026498?v=4)](https://github.com/tvbeek "tvbeek (1 commits)")

---

Tags

actionactionscicddeploydeploymentdeploymentsdispatchjobslaravellaravel-frameworkmigrationmigration-toolmigrationsoperationslaravelmigrationmigrationsdeploydeploymentactionsactiondragondragon codeandrey helldaroperations

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/dragon-code-laravel-deploy-operations/health.svg)

```
[![Health](https://phpackages.com/badges/dragon-code-laravel-deploy-operations/health.svg)](https://phpackages.com/packages/dragon-code-laravel-deploy-operations)
```

###  Alternatives

[dragon-code/laravel-data-dumper

Adding data from certain tables when executing the `php artisan schema:dump` console command

3418.6k](/packages/dragon-code-laravel-data-dumper)[dragon-code/migrate-db

Easy data transfer from one database to another

15717.4k](/packages/dragon-code-migrate-db)[dragon-code/pretty-routes

Pretty Routes for Laravel

10058.7k4](/packages/dragon-code-pretty-routes)[dragon-code/laravel-cache

An improved interface for working with cache

6844.8k10](/packages/dragon-code-laravel-cache)[dragon-code/laravel-http-logger

Logging incoming HTTP requests

319.8k3](/packages/dragon-code-laravel-http-logger)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
