PHPackages                             devroshan/dbsync - 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. devroshan/dbsync

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

devroshan/dbsync
================

Syncing data in distributed offline system.

09PHPCI failing

Since Apr 6Pushed 6y ago1 watchersCompare

[ Source](https://github.com/dev-roshan/dbsync)[ Packagist](https://packagist.org/packages/devroshan/dbsync)[ RSS](/packages/devroshan-dbsync/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependenciesVersions (1)Used By (0)

`composer require devroshan/dbsync`

For fresh laravel project only To change your primary key from integer to [uuid](https://en.wikipedia.org/wiki/Universally_unique_identifier)

> php artisan dbsync:convert\_to\_uuid

For existing project

> php artisan dbsync:install

publish vendor files

> php artisan vendor:publish --tag='dbsync'

Create Symlink of storage

> php artisan storage:link

Place these thing in all your model =&gt; `use App\Uuids;` (import this at top)

Inside model class add these `use Uuids; public $incrementing = false; protected $keyType= "string";`

And in your blade file

```
@include('dbsync::export')
@include('dbsync::import')

```

Note: For Import :it import data of env DB\_CONNECTION connected database.

For Export :place one variable name DB\_CONNECTION\_2 as `DB_CONNECTION_2=pgsql2`
and in config/database.php configure connection for the database to import or sync
`'pgsql2' => [ 'driver' => 'pgsql', 'url' => env('DATABASE_URL'), 'host' => env('DB_HOST', '127.0.0.1'), 'port' => env('DB_PORT', '5432'), 'database' => 'database_name', 'username' => env('DB_USERNAME', 'forge'), 'password' => env('DB_PASSWORD', ''), 'charset' => 'utf8', 'prefix' => '', 'prefix_indexes' => true, 'schema' => 'public', 'sslmode' => 'prefer', ],`

###  Health Score

17

—

LowBetter than 6% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity4

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity34

Early-stage or recently created project

 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.

### Community

Maintainers

![](https://www.gravatar.com/avatar/4e7a5d39f03a72587aab059a023ef9ea7459fa157b7433f8ee0e9cf593ae3c11?d=identicon)[dev-roshan](/maintainers/dev-roshan)

---

Top Contributors

[![dev-roshan](https://avatars.githubusercontent.com/u/24985932?v=4)](https://github.com/dev-roshan "dev-roshan (21 commits)")

### Embed Badge

![Health badge](/badges/devroshan-dbsync/health.svg)

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

PHPackages © 2026

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