PHPackages                             trogers1884/dbdepends - 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. trogers1884/dbdepends

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

trogers1884/dbdepends
=====================

A Laravel package that creates a view for PostgreSQL database dependencies

v1.0.1(1y ago)02MITPHPPHP ^8.1

Since Dec 7Pushed 1y ago1 watchersCompare

[ Source](https://github.com/trogers1884/dbdepends)[ Packagist](https://packagist.org/packages/trogers1884/dbdepends)[ RSS](/packages/trogers1884-dbdepends/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (2)Dependencies (4)Versions (3)Used By (0)

DBDepends
=========

[](#dbdepends)

A Laravel package that creates a PostgreSQL view for analyzing database dependencies in your project. This view helps you understand the relationships and dependencies between your database objects.

Requirements
------------

[](#requirements)

- Laravel 10.0 or higher (including Laravel 11)
- PostgreSQL 12.0 or higher
- PHP 8.1 or higher

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

[](#installation)

You can install the package via composer:

```
composer require trogers1884/dbdepends
```

After installation, run your migrations:

```
php artisan migrate
```

This will create a view named `tr1884_v_dbdepends_dependency_map` in your PostgreSQL database.

Usage
-----

[](#usage)

Once installed, the view `tr1884_v_dbdepends_dependency_map` will be available in your PostgreSQL database. The view provides information about dependencies between tables, views, and materialized views in your database.

### View Columns

[](#view-columns)

- `relation`: The fully qualified name of the database object
- `object_type`: The type of object (TABLE, VIEW, MATV)
- `owner`: The owner of the object
- `deps`: Number of direct dependencies
- `add_deps`: Number of indirect dependencies
- `reqs`: Number of direct requirements
- `add_reqs`: Number of indirect requirements
- `dependents`: List of direct dependent objects
- `add_dependents`: List of indirect dependent objects
- `requirements`: List of direct required objects
- `add_requirements`: List of indirect required objects

Uninstallation
--------------

[](#uninstallation)

To completely remove this package from your project:

1. First, remove the view from your database:

```
php artisan migrate:rollback --path=vendor/trogers1884/dbdepends/src/database/migrations
```

2. Remove the package from your composer.json:

```
composer remove trogers1884/dbdepends
```

3. Remove the service provider from config/app.php if you manually added it:

```
// Remove this line if it exists
Trogers1884\DBDepends\DBDependsServiceProvider::class,
```

4. Clear your configuration cache:

```
php artisan config:clear
```

Development and Testing
-----------------------

[](#development-and-testing)

> Note: This section is for package developers only. If you're just using the package in your project, you can ignore these steps.

To set up a development environment for contributing to this package:

1. Clone the repository
2. Copy the package's phpunit configuration file:

```
cp phpunit.xml.dist phpunit.xml
```

3. Update the database configuration in your `phpunit.xml`:

```

```

4. Create a PostgreSQL database for testing:

```
CREATE DATABASE dbdepends_test;
```

5. Run the tests:

```
vendor/bin/phpunit
```

Disclaimer
----------

[](#disclaimer)

This package is provided "as is" without warranty of any kind, either expressed or implied. The author is not responsible for any damages, data loss, or issues that may arise from using this package. It is the user's responsibility to:

- Properly back up their database before installing or using this package
- Test the package in a non-production environment first
- Ensure their database meets the minimum requirements
- Monitor and maintain their own database performance and security
- Verify the accuracy of dependency information provided by the view

This package simply provides a PostgreSQL view for analyzing SQL dependencies in your project. How you use this information and maintain your database is entirely your responsibility.

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

[](#contributing)

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

Contributors
------------

[](#contributors)

We appreciate all contributions, big and small! See [CONTRIBUTORS.md](CONTRIBUTORS.md) for a full list of all contributors.

Credits
-------

[](#credits)

- Jeremy Gleed
- [Tom Rogers](https://github.com/trogers1884)

License
-------

[](#license)

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

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance41

Moderate activity, may be stable

Popularity2

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

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

Total

2

Last Release

518d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/33fdd133f51e6eff6096d0dd0b15dd11184caa054ed0d7e1c70a1e8d5080a5c7?d=identicon)[trogers1884](/maintainers/trogers1884)

---

Top Contributors

[![trogers1884](https://avatars.githubusercontent.com/u/641590?v=4)](https://github.com/trogers1884 "trogers1884 (8 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/trogers1884-dbdepends/health.svg)

```
[![Health](https://phpackages.com/badges/trogers1884-dbdepends/health.svg)](https://phpackages.com/packages/trogers1884-dbdepends)
```

###  Alternatives

[watson/validating

Eloquent model validating trait.

9723.3M46](/packages/watson-validating)[cybercog/laravel-love

Make Laravel Eloquent models reactable with any type of emotions in a minutes!

1.2k302.7k1](/packages/cybercog-laravel-love)[cviebrock/eloquent-taggable

Easy ability to tag your Eloquent models in Laravel.

567694.8k3](/packages/cviebrock-eloquent-taggable)[clickbar/laravel-magellan

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

423715.4k1](/packages/clickbar-laravel-magellan)[genealabs/laravel-pivot-events

This package introduces new eloquent events for sync(), attach(), detach() or updateExistingPivot() methods on BelongsToMany relation.

1404.9M8](/packages/genealabs-laravel-pivot-events)[reedware/laravel-relation-joins

Adds the ability to join on a relationship by name.

2121.2M13](/packages/reedware-laravel-relation-joins)

PHPackages © 2026

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