PHPackages                             divineomega/uxdm-eloquent - 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. divineomega/uxdm-eloquent

Abandoned → [jord-jd/uxdm-eloquent](/?search=jord-jd%2Fuxdm-eloquent)Library[Database &amp; ORM](/categories/database)

divineomega/uxdm-eloquent
=========================

Eloquent package for the UXDM data migrator

v4.0.0(2mo ago)319.2k↓50%2[1 issues](https://github.com/Jord-JD/uxdm-eloquent/issues)1LGPL-3.0-onlyPHPPHP ^7.4 || ^8.0

Since Apr 23Pushed 2mo agoCompare

[ Source](https://github.com/Jord-JD/uxdm-eloquent)[ Packagist](https://packagist.org/packages/divineomega/uxdm-eloquent)[ GitHub Sponsors](https://github.com/DivineOmega)[ RSS](/packages/divineomega-uxdm-eloquent/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)Dependencies (5)Versions (13)Used By (1)

🔀 UXDM Eloquent
===============

[](#-uxdm-eloquent)

[![Build Status](https://camo.githubusercontent.com/ec07d80d20976e1df30b6f798b674511652e6249280b6edde9b060b9e918f94b/68747470733a2f2f7472617669732d63692e636f6d2f4a6f72642d4a442f7578646d2d656c6f7175656e742e7376673f6272616e63683d6d6173746572)](https://travis-ci.com/Jord-JD/uxdm-eloquent)[![Coverage Status](https://camo.githubusercontent.com/4ba7f7da481531510bf67ac859e1621251d3eaff9a1f1e6ed5a65ec6041b9e2e/68747470733a2f2f636f766572616c6c732e696f2f7265706f732f6769746875622f4a6f72642d4a442f7578646d2d656c6f7175656e742f62616467652e7376673f6272616e63683d6d6173746572)](https://coveralls.io/github/Jord-JD/uxdm-eloquent?branch=master)

The UXDM Eloquent package provides a UXDM source and destination for the Eloquent ORM, commonly used in Laravel projects.

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

[](#installation)

To install the UXDM Eloquent package, just run the following composer command.

```
composer require jord-jd/uxdm-eloquent
```

UXDM Eloquent Source
--------------------

[](#uxdm-eloquent-source)

The UXDM Eloquent source allows you to source data from an Eloquent model. This can be handy if you need to migrate data from a system using the Eloquent ORM, such as a Laravel project.

### Creating

[](#creating)

To create a new Eloquent source, you must provide it with the class name of Eloquent model you wish to use.

The following example creates a Eloquent source object, using an Eloquent model called `User` in the `App` namespace.

```
$eloquentSource = new EloquentSource(\App\User::class);
```

You can also pass a query callback as a second parameter to restrict the results returned, as shown below.

```
$eloquentSource = new EloquentSource(\App\User::class, function($query) {
    $query->where('id', 1);
});
```

### Assigning to migrator

[](#assigning-to-migrator)

To use the Eloquent source as part of a UXDM migration, you must assign it to the migrator. This process is the same for most sources.

```
$migrator = new Migrator;
$migrator->setSource($eloquentSource);
```

UXDM Eloquent Destination
-------------------------

[](#uxdm-eloquent-destination)

The UXDM Eloquent destination allows you to migrate data into an Eloquent model. This can be handy if you need to migrate data into a system using the Eloquent ORM, such as a Laravel project.

### Creating

[](#creating-1)

To create a new Eloquent destination, you must provide it with the class name of Eloquent model you wish to use.

The following example creates a Eloquent destination object, using an Eloquent model called `User` in the `App` namespace.

```
$eloquentDestination = new EloquentDestination(\App\User::class);
```

### Assigning to migrator

[](#assigning-to-migrator-1)

To use the Eloquent destination as part of a UXDM migration, you must assign it to the migrator. This process is the same for most destinations.

```
$migrator = new Migrator;
$migrator->setDestination($eloquentDestination);
```

Alternatively, you can add multiple destinations, as shown below. You can also specify the fields you wish to send to each destination by passing an array of field names as the second parameter.

```
$migrator = new Migrator;
$migrator->addDestination($eloquentDestination, ['field1', 'field2']);
$migrator->addDestination($otherDestination, ['field3', 'field2']);
```

###  Health Score

51

—

FairBetter than 96% of packages

Maintenance77

Regular maintenance activity

Popularity30

Limited adoption so far

Community12

Small or concentrated contributor base

Maturity71

Established project with proven stability

 Bus Factor1

Top contributor holds 95.2% 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 ~249 days

Recently: every ~423 days

Total

11

Last Release

87d ago

Major Versions

v1.0.1 → v2.0.02020-05-21

v2.2.0 → v3.0.02021-03-25

v2.x-dev → v3.1.02021-10-12

v3.2.0 → v4.0.02026-02-14

### Community

Maintainers

![](https://www.gravatar.com/avatar/c580cdf7c14898fff179cdfc1085892091d5d2f49d917873a12365af9ac77c93?d=identicon)[Jord-JD](/maintainers/Jord-JD)

---

Top Contributors

[![Jord-JD](https://avatars.githubusercontent.com/u/650645?v=4)](https://github.com/Jord-JD "Jord-JD (20 commits)")[![peter279k](https://avatars.githubusercontent.com/u/9021747?v=4)](https://github.com/peter279k "peter279k (1 commits)")

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/divineomega-uxdm-eloquent/health.svg)

```
[![Health](https://phpackages.com/badges/divineomega-uxdm-eloquent/health.svg)](https://phpackages.com/packages/divineomega-uxdm-eloquent)
```

###  Alternatives

[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)[aglipanci/laravel-eloquent-case

Adds CASE statement support to Laravel Query Builder.

115157.2k](/packages/aglipanci-laravel-eloquent-case)

PHPackages © 2026

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