PHPackages                             bitcodesa/deployment-script - 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. bitcodesa/deployment-script

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

bitcodesa/deployment-script
===========================

The package add artisan command that all user to do collected artisan or terminal command at once.

0.0.2(2y ago)31141[2 PRs](https://github.com/BitcodeSA/deployment-script/pulls)MITPHPPHP ^8.1

Since Nov 13Pushed 2y ago1 watchersCompare

[ Source](https://github.com/BitcodeSA/deployment-script)[ Packagist](https://packagist.org/packages/bitcodesa/deployment-script)[ Docs](https://github.com/bitcodesa/deployment-script)[ RSS](/packages/bitcodesa-deployment-script/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (12)Versions (5)Used By (0)

The package add artisan commond that allow user to do collected artisan or terminal command at once.
====================================================================================================

[](#the-package-add-artisan-commond-that-allow-user-to-do-collected-artisan-or-terminal-command-at-once)

[![Latest Version on Packagist](https://camo.githubusercontent.com/1d8a47ccb70c321cac8638d1e9353348c9d65906eb41cdf6485cd298cdb8f70f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f626974636f646573612f6465706c6f796d656e742d7363726970742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bitcodesa/deployment-script)[![GitHub Tests Action Status](https://camo.githubusercontent.com/4d47d7a166021067f264d656f0832f9c7746a93f0219ce39ab4e7e2132a298d3/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f626974636f646573612f6465706c6f796d656e742d7363726970742f72756e2d74657374732e796d6c3f6272616e63683d6d61696e266c6162656c3d7465737473267374796c653d666c61742d737175617265)](https://github.com/bitcodesa/deployment-script/actions?query=workflow%3Arun-tests+branch%3Amain)[![Total Downloads](https://camo.githubusercontent.com/f56dc9ea94229b46d81354bf82b7d3bba848250126999d7fb518c354ab64896e/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f626974636f646573612f6465706c6f796d656e742d7363726970742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/bitcodesa/deployment-script)

**Package Description**

This package provides a convenient way to run groups of Artisan commands through a pre-defined configuration file. This can be useful for automating tasks such as deployment, database maintenance, and testing.

**Features**

- Run groups of Artisan commands with a single command
- Override command options in the configuration file
- Pass values to artisan commands like `--force`.
- Run command like `git pull`.

**Example**

For example, to run the following commands:

```
php artisan migrate:fresh
php artisan cache:clear
php artisan route:cache
```

```
return [
    'commands' => [
        [
            "type" => "artisan",
            "command" => "migrate:fresh"
        ],
        [
            "type" => "artisan",
            "command" => "cache:clear"
        ],
        [
            "type" => "artisan",
            "command" => "route:cache"
        ],
    ],
];
```

Then, you would run the following command:

```
php artisan deploy

```

This package is a valuable tool for any Laravel developer who needs to automate tasks or run groups of Artisan commands on a regular basis.

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

[](#installation)

You can install the package via composer:

```
composer require bitcodesa/deployment-script
```

You can publish the config file with:

```
php artisan vendor:publish --tag="deployment-script-config"
```

This is the contents of the published config file:

```
return [
     "commands" => [
        [
            "type" => "console",
            "command" => "git pull"
        ],
        [
            "type" => "console",
            "command" => "composer install --optimize-autoloader",
        ],
        [
            "type" => "artisan",
            "command" => "migrate",
            "values" => [
                "--force" => true
            ]
        ],
        [
            "type" => "artisan",
            "command" => "cache:clear",
        ],
    ]
];
```

Allow used in production
------------------------

[](#allow-used-in-production)

To allow used of deploy script in the *production env* you should allow it in the config `config/deployment-script.php`

```
[
// config/deployment-script.php
"allow_in_production" => true;
]
```

***Note:*** By default the script is not allowed in production.

Production Commands:
--------------------

[](#production-commands)

you can specify commands to run only in the *production env*: put the array inside config file `config/deployment-script.php` then specify the key name of this array into var `production` for example:

```
[
// config/deployment-script.php
"production_commands" => [
    [
            "type" => "artisan",
            "command" => "migrate",
            "values" => [
                "--force" => true
            ]
        ],
        [
            "type" => "artisan",
            "command" => "cache:clear",
        ],
    ]
"production" => "production_commands";
];
```

***Note:*** if not specified the default commands array well be used.

Usage
-----

[](#usage)

```
php artisan deploy
```

Testing
-------

[](#testing)

```
composer test
```

Changelog
---------

[](#changelog)

Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.

Contributing
------------

[](#contributing)

Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

Credits
-------

[](#credits)

- [Mohammed Sadiq](https://github.com/BitcodeSA)
- [All Contributors](../../contributors)

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.md) for more information.

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity44

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 66.7% 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 ~8 days

Total

2

Last Release

909d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/2d032b178010eeffd089ecd6f75934079dc36d2d41328827f1d19c729572cbeb?d=identicon)[Abather](/maintainers/Abather)

---

Top Contributors

[![Abather](https://avatars.githubusercontent.com/u/18185658?v=4)](https://github.com/Abather "Abather (2 commits)")[![JoDeveloper](https://avatars.githubusercontent.com/u/18007194?v=4)](https://github.com/JoDeveloper "JoDeveloper (1 commits)")

---

Tags

laraveldeployment scriptBitcodeSA

###  Code Quality

TestsPest

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/bitcodesa-deployment-script/health.svg)

```
[![Health](https://phpackages.com/badges/bitcodesa-deployment-script/health.svg)](https://phpackages.com/packages/bitcodesa-deployment-script)
```

###  Alternatives

[spatie/laravel-horizon-watcher

Automatically restart Horizon when local PHP files change

2631.9M](/packages/spatie-laravel-horizon-watcher)[spatie/laravel-prometheus

Export Laravel metrics to Prometheus

2651.3M6](/packages/spatie-laravel-prometheus)[timokoerber/laravel-one-time-operations

Run operations once after deployment - just like you do it with migrations!

6481.7M11](/packages/timokoerber-laravel-one-time-operations)[vormkracht10/laravel-mails

Laravel Mails can collect everything you might want to track about the mails that has been sent by your Laravel app.

24149.7k](/packages/vormkracht10-laravel-mails)[spatie/laravel-dynamic-servers

Dynamically create and destroy servers

23313.0k2](/packages/spatie-laravel-dynamic-servers)[salahhusa9/laravel-updater

Laravel Updater is a simple yet powerful package for updater your Laravel applications. It makes it easy to upgrade your application to the latest version with just one command.

2176.3k](/packages/salahhusa9-laravel-updater)

PHPackages © 2026

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