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.1.0(4mo ago)00MITPHPPHP ^8.0CI passing

Since Jan 6Pushed 4mo 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 1mo ago

READMEChangelog (2)Dependencies (3)Versions (3)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` columns in all tables by default
- Limiting to specific tables or columns using options
- Validates URLs, table and column existence
- Dry run mode to preview changes
- Summary output with affected rows per table

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

[](#installation)

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

Usage
-----

[](#usage)

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

### Options:

[](#options)

- `--tables=table1,table2` Limit to specific tables
- `--columns=col1,col2` Limit to specific columns
- `--dry-run` Only show potential changes

Running Tests
-------------

[](#running-tests)

To run the test suite locally:

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

Tests are also automatically run via GitHub Actions on push and pull requests.

License
-------

[](#license)

MIT

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance82

Actively maintained with recent releases

Popularity0

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity40

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 ~0 days

Total

2

Last Release

123d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/91018bd70f05127ed12afbb769f24bd6d2c5e90d15970978a7dd8eed9da8c7d5?d=identicon)[renderbit-technologies](/maintainers/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

[naoray/eloquent-model-analyzer

Helpful methods to gain more information about eloquent model classes.

16431.1k1](/packages/naoray-eloquent-model-analyzer)[interaction-design-foundation/laravel-geoip

Support for multiple Geographical Location services.

17221.0k3](/packages/interaction-design-foundation-laravel-geoip)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)

PHPackages © 2026

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