PHPackages                             thibaud-dt/trinitycore-models - 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. thibaud-dt/trinitycore-models

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

thibaud-dt/trinitycore-models
=============================

Eloquent Models for TrinityCore database

0.1.1(9y ago)11652[1 PRs](https://github.com/Thibaud-DT/trinitycore-models/pulls)2GPL-3.0PHPPHP ^5.5.9 || ^7.0

Since Dec 22Pushed 7y ago1 watchersCompare

[ Source](https://github.com/Thibaud-DT/trinitycore-models)[ Packagist](https://packagist.org/packages/thibaud-dt/trinitycore-models)[ Docs](https://github.com/Thibaud-DT/trinitycore-models)[ RSS](/packages/thibaud-dt-trinitycore-models/feed)WikiDiscussions master Synced yesterday

READMEChangelog (1)DependenciesVersions (2)Used By (2)

TrinityCore Eloquent Models
===========================

[](#trinitycore-eloquent-models)

[![Latest Stable Version](https://camo.githubusercontent.com/713ca4b9f36a6b010317f29707bc65ccdd81022d31372b5110d6b6dbdd955a45/68747470733a2f2f706f7365722e707567782e6f72672f746869626175642d64742f7472696e697479636f72652d617574682f76657273696f6e3f666f726d61743d666c6174)](https://packagist.org/packages/thibaud-dt/trinitycore-auth)[![Latest Unstable Version](https://camo.githubusercontent.com/579aa3ae743d406ef003b6bb1e204432f8bb83fe6148abcd9b87c0f0eda8bd21/68747470733a2f2f706f7365722e707567782e6f72672f746869626175642d64742f7472696e697479636f72652d617574682f762f756e737461626c653f666f726d61743d666c6174)](//packagist.org/packages/thibaud-dt/trinitycore-auth)[![Total Downloads](https://camo.githubusercontent.com/7671fe1e2bc3bb8fe8b1921cc1c2d41029f5fcb7aeb9e60bf4267c2d39e6d0b4/68747470733a2f2f706f7365722e707567782e6f72672f746869626175642d64742f7472696e697479636f72652d617574682f646f776e6c6f6164733f666f726d61743d666c6174)](https://packagist.org/packages/thibaud-dt/trinitycore-auth)[![License](https://camo.githubusercontent.com/8cf3ae1aa64338f12853ec414faff731817279549c88fa4a63cfd9041f0c8c22/68747470733a2f2f706f7365722e707567782e6f72672f746869626175642d64742f7472696e697479636f72652d617574682f6c6963656e73653f666f726d61743d666c6174)](https://packagist.org/packages/thibaud-dt/trinitycore-auth)

Eloquent Models of TrinityCore 3.3.5 Database.

TrinityCore Database has any relationship between tables. Morever it's split on 3 differents databases : auth, characters and world

Requirements
============

[](#requirements)

- PHP &gt;= 5.5.9 || 7.0

Installation
============

[](#installation)

```
composer require thibaud-dt/trinitycore-models

```

- Add database connection in you config/database.php

```
'connections' => [

        [...]

        'characters' => [
            'driver'    => 'mysql',
            'host'      => env('DB_HOST_CHARACTERS', 'localhost'),
            'database'  => env('DB_DATABASE_CHARACTERS', 'forge'),
            'username'  => env('DB_USERNAME_CHARACTERS', 'forge'),
            'password'  => env('DB_PASSWORD_CHARACTERS', ''),
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
            'strict'    => false,
        ],

        'world' => [
            'driver'    => 'mysql',
            'host'      => env('DB_HOST_WORLD', 'localhost'),
            'database'  => env('DB_DATABASE_WORLD', 'forge'),
            'username'  => env('DB_USERNAME_WORLD', 'forge'),
            'password'  => env('DB_PASSWORD_WORLD', ''),
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
            'strict'    => false,
        ],

        'auth' => [
            'driver'    => 'mysql',
            'host'      => env('DB_HOST_AUTH', 'localhost'),
            'database'  => env('DB_DATABASE_AUTH', 'forge'),
            'username'  => env('DB_USERNAME_AUTH', 'forge'),
            'password'  => env('DB_PASSWORD_AUTH', ''),
            'charset'   => 'utf8',
            'collation' => 'utf8_unicode_ci',
            'prefix'    => '',
            'strict'    => false,
        ]

        [...]

    ],

```

- Add variable in your .env and configure it

```
DB_HOST_WORLD=localhost
DB_DATABASE_WORLD=world
DB_USERNAME_WORLD=root
DB_PASSWORD_WORLD=root

DB_HOST_CHARACTERS=localhost
DB_DATABASE_CHARACTERS=characters
DB_USERNAME_CHARACTERS=root
DB_PASSWORD_CHARACTERS=root

DB_HOST_AUTH=localhost
DB_DATABASE_AUTH=auth
DB_USERNAME_AUTH=root
DB_PASSWORD_AUTH=root

```

**It's done ! You can now use the package**

Usage
=====

[](#usage)

- All models can be use like a Eloquent Model.

TODO
====

[](#todo)

- Write relationships of all tables.. A lot of work to do ! You can help me with pull request ;)

Credits
=======

[](#credits)

- The community of [TrinityCore](https://www.trinitycore.org/%5D) for the awesome work !

Links
=====

[](#links)

- SQL file to create databases :
- Wiki of Auth database :
- Wiki of Characters database :
- Wiki of World database :

###  Health Score

26

—

LowBetter than 41% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity14

Limited adoption so far

Community16

Small or concentrated contributor base

Maturity48

Maturing project, gaining track record

 Bus Factor2

2 contributors hold 50%+ of commits

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

Unknown

Total

1

Last Release

3476d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/fe5ec40beceb7e43e1e8e619fb92d0d64976c0b607181dbc15db14b00f9538fb?d=identicon)[thibauddt](/maintainers/thibauddt)

---

Top Contributors

[![septIO](https://avatars.githubusercontent.com/u/8553590?v=4)](https://github.com/septIO "septIO (3 commits)")[![Thibaud-DT](https://avatars.githubusercontent.com/u/9258596?v=4)](https://github.com/Thibaud-DT "Thibaud-DT (3 commits)")[![flashadvocate](https://avatars.githubusercontent.com/u/7848492?v=4)](https://github.com/flashadvocate "flashadvocate (2 commits)")

---

Tags

laraveleloquentmodelstrinitycore

### Embed Badge

![Health badge](/badges/thibaud-dt-trinitycore-models/health.svg)

```
[![Health](https://phpackages.com/badges/thibaud-dt-trinitycore-models/health.svg)](https://phpackages.com/packages/thibaud-dt-trinitycore-models)
```

###  Alternatives

[mtolhuys/laravel-schematics

A interface to help you build your models

1.5k88.2k1](/packages/mtolhuys-laravel-schematics)[mopo922/laravel-treats

A collection of goodies for Laravel 5.

107472.7k1](/packages/mopo922-laravel-treats)[pursehouse/modeler-laravel-eloquent

Generate model classes for Eloquent in Laravel

112.5k](/packages/pursehouse-modeler-laravel-eloquent)

PHPackages © 2026

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