PHPackages                             renderbit/laravel-db-url-replacer - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. renderbit/laravel-db-url-replacer

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

renderbit/laravel-db-url-replacer
=================================

Artisan command to search and replace URLs in the database across text columns

v1.2.0(1w ago)00MITPHPPHP ^8.0CI passing

Since Jan 6Pushed 5mo agoCompare

[ Source](https://github.com/RenderbitTechnologies/laravel-db-url-replacer)[ Packagist](https://packagist.org/packages/renderbit/laravel-db-url-replacer)[ RSS](/packages/renderbit-laravel-db-url-replacer/feed)WikiDiscussions main Synced today

READMEChangelog (3)Dependencies (6)Versions (5)Used By (0)

Laravel DB URL Replacer
=======================

[](#laravel-db-url-replacer)

[![Tests](https://github.com/RenderbitTechnologies/laravel-db-url-replacer/actions/workflows/run-tests.yml/badge.svg)](https://github.com/RenderbitTechnologies/laravel-db-url-replacer/actions/workflows/run-tests.yml)[![Latest Version on Packagist](https://camo.githubusercontent.com/b02aa851a348eb4ca144c17b7a5729738127db0f0d91781cd0510721cd31ff66/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f72656e6465726269742f6c61726176656c2d64622d75726c2d7265706c616365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/renderbit/laravel-db-url-replacer)[![PHP Version](https://camo.githubusercontent.com/de2d9a6ac74b47e1352863762020e15309545810a50b6200c6d7fde22ac208d0/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f7068702d762f72656e6465726269742f6c61726176656c2d64622d75726c2d7265706c616365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/renderbit/laravel-db-url-replacer)[![License](https://camo.githubusercontent.com/7b06fef9f8643ed850828e2049cccc9191a79df7a033718aa259e6a09e7021fb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f72656e6465726269742f6c61726176656c2d64622d75726c2d7265706c616365722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/renderbit/laravel-db-url-replacer)

A Laravel Artisan command to search and replace URLs across your database tables. Supports:

- Targeting all text-type columns (`varchar`, `text`, `longtext`, `mediumtext`, `char`, `string`) in all tables by default
- Limiting to specific tables or columns using options
- Validates both old and new URLs, plus table and column existence
- Dry run mode to preview changes without modifying data
- Summary output with affected rows per table/column

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

[](#installation)

```
composer require --dev renderbit/laravel-db-url-replacer
```

Package auto-discovery is supported — no manual provider registration needed.

### Compatibility

[](#compatibility)

PHPLaravel8.0–8.48–12Usage
-----

[](#usage)

```
php artisan db:replace-url "http://old.url" "https://new.url"
```

### Options

[](#options)

OptionDescription`--tables=table1,table2`Comma-separated list of tables to limit the replacement to`--columns=col1,col2`Comma-separated list of columns to limit the replacement to`--dry-run`Preview what would be changed without modifying any data### Examples

[](#examples)

```
# Replace across all text columns in all tables
php artisan db:replace-url "http://old.example.com" "https://new.example.com"

# Target only specific tables
php artisan db:replace-url "http://old.example.com" "https://new.example.com" --tables=posts,comments

# Target only specific columns
php artisan db:replace-url "http://old.example.com" "https://new.example.com" --columns=content,excerpt

# Preview changes without writing
php artisan db:replace-url "http://old.example.com" "https://new.example.com" --dry-run
```

Testing
-------

[](#testing)

```
composer install
vendor/bin/phpunit
```

Tests are run automatically via GitHub Actions on push and pull requests, across the full PHP/Laravel compatibility matrix.

License
-------

[](#license)

MIT

###  Health Score

35

—

LowBetter than 77% of packages

Maintenance82

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity43

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 70.4% 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 ~86 days

Total

3

Last Release

9d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/16665819?v=4)[Renderbit Technologies](/maintainers/renderbit-technologies)[@renderbit-technologies](https://github.com/renderbit-technologies)

---

Top Contributors

[![soham2008xyz](https://avatars.githubusercontent.com/u/7334295?v=4)](https://github.com/soham2008xyz "soham2008xyz (19 commits)")[![google-labs-jules[bot]](https://avatars.githubusercontent.com/in/842251?v=4)](https://github.com/google-labs-jules[bot] "google-labs-jules[bot] (6 commits)")[![dependabot[bot]](https://avatars.githubusercontent.com/in/29110?v=4)](https://github.com/dependabot[bot] "dependabot[bot] (2 commits)")

---

Tags

laravel-10laravel-11laravel-12laravel-8laravel-packagemysqlphp8postgresqlsqlite

### Embed Badge

![Health badge](/badges/renderbit-laravel-db-url-replacer/health.svg)

```
[![Health](https://phpackages.com/badges/renderbit-laravel-db-url-replacer/health.svg)](https://phpackages.com/packages/renderbit-laravel-db-url-replacer)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3355.3M346](/packages/psalm-plugin-laravel)[venturedrake/laravel-crm

A free open source CRM built as a package for laravel projects

43411.2k](/packages/venturedrake-laravel-crm)[flarum/core

Delightfully simple forum software.

201.4M2.3k](/packages/flarum-core)

PHPackages © 2026

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