PHPackages                             seanstewart/update-scripts - 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. seanstewart/update-scripts

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

seanstewart/update-scripts
==========================

Allows you to run scripts to update your application, just like migrations

1.2.1(9y ago)41.3kMITPHPPHP &gt;=7.0.0

Since May 16Pushed 9y ago1 watchersCompare

[ Source](https://github.com/theseanstewart/Update-Scripts)[ Packagist](https://packagist.org/packages/seanstewart/update-scripts)[ Docs](https://github.com/theseanstewart/Plan-Config)[ RSS](/packages/seanstewart-update-scripts/feed)WikiDiscussions master Synced today

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

[![Build Status](https://camo.githubusercontent.com/9b103de820deb8958eed918c9abd5636a37f5db1c3936c4ecb14d8abdcd40ac3/68747470733a2f2f7472617669732d63692e6f72672f7468657365616e737465776172742f5570646174652d536372697074732e7376673f6272616e63683d6d6173746572)](https://travis-ci.org/theseanstewart/Update-Scripts)

Laravel Update Scripts
======================

[](#laravel-update-scripts)

This Laravel 5 package makes it easy to run scripts that modify data in your database or perform other tasks and behaves just like migrations.

How to install
--------------

[](#how-to-install)

Pull the package in through Composer.

```
"require": {
    "seanstewart/update-scripts": "dev-master"
}
```

Include the service provider within `app/config/app.php`.

```
'providers' => [
    Seanstewart\UpdateScripts\UpdateScriptsServiceProvider::class
];
```

Then you will need to run the following command to publish the migration responsilbe for setting up the "updates" table in your database.

```
php artisan vendor:publish
```

After that, you'll need to migrate your database

```
php artisan migrate
```

How to Use
----------

[](#how-to-use)

Let's say you need to run some scripts that modify content in your database. Doing this through migrations isn't a great idea as those should strictly handle changes to the database structure. Run the following command to generate a new update script:

```
php artisan update:make some_description_for_your_update
```

A file will be generated in your laravel base directory called "updates" that looks like 2016\_05\_15\_145375\_some\_description\_for\_your\_update.php (again, it works just like migrations).

When you're ready to run the update script, you'd call the command....

```
php artisan update:run
```

That's it! Updates are tracked in your database just like migrations so they don't run more than once.

Why I created this
==================

[](#why-i-created-this)

Previously we were running updates to our database data in migrations. It just felt dirty, so we decided to build something that handles updates but works just like migrations. We're using it in production for our election building service ([Election Runner](https://electionrunner.com)) and it has made the development/updating process much easier. Hopefully others will find this as useful as we do!

###  Health Score

30

—

LowBetter than 62% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity19

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 100% 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 ~77 days

Total

5

Last Release

3390d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.5.9

1.2.0PHP &gt;=7.0.0

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/778333?v=4)[Sean Stewart](/maintainers/seanstewart)[@seanstewart](https://github.com/seanstewart)

---

Top Contributors

[![theseanstewart](https://avatars.githubusercontent.com/u/2438547?v=4)](https://github.com/theseanstewart "theseanstewart (15 commits)")

---

Tags

laravelmigrationsupdateslaravel5

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/seanstewart-update-scripts/health.svg)

```
[![Health](https://phpackages.com/badges/seanstewart-update-scripts/health.svg)](https://phpackages.com/packages/seanstewart-update-scripts)
```

###  Alternatives

[kirschbaum-development/eloquent-power-joins

The Laravel magic applied to joins.

1.6k29.9M42](/packages/kirschbaum-development-eloquent-power-joins)[psalm/plugin-laravel

Psalm plugin for Laravel

3345.1M337](/packages/psalm-plugin-laravel)[yajra/laravel-oci8

Oracle DB driver for Laravel via OCI8

8723.1M23](/packages/yajra-laravel-oci8)[glushkovds/phpclickhouse-laravel

Adapter of the most popular library https://github.com/smi2/phpClickHouse to Laravel

2051.4M2](/packages/glushkovds-phpclickhouse-laravel)[clickbar/laravel-magellan

This package provides functionality for working with the postgis extension in Laravel.

438834.4k1](/packages/clickbar-laravel-magellan)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2111.2M16](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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