New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

abellion/xenus-laravel

Xenus integration for the Laravel and Lumen frameworks
2,802 9

Larablocks Analysis

abellion/xenus-laravel works with Laravel 5 to 9 (latest release 0.4, Jul 4, 2022), all past end of life (the last on Feb 6, 2024): no more fixes, even for security.

Recommendation checks

Not advised

Not advised: no release or commit in over 2 years.

  • No release or commit in over 2 years
  • Supports only Laravel 5 to 9, past end of life since Feb 6, 2024
  • No release in the last 12 months (last: Jul 4, 2022)
  • 4 downloads a month (needs 10,000)
  • 9 GitHub stars (needs 100)

State

Likely abandoned
  • No release or commit in over 2 years.
  • Last stable release: Jul 4, 2022.
  • No releases in the last 12 months.
  • First released: Aug 3, 2020.
  • Monthly downloads: 4.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Dec 1, 2026.

Install
composer require abellion/xenus-laravel
Latest Version:0.4
PHP:^7.1.3 || ^8.0
Laravel:5 – 9
License:MIT
Last Updated:Jul 4, 2022
Links: GitHub  ·  Packagist
Maintainer: abellion

This package integrates Xenus to the Laravel and Lumen frameworks (from version 5.8 up to the latest 9.0) :

  • Out of the box failed jobs and migrations integration
  • Ready to work event dispatcher

Xenus is a simple and elegant MongoDB ODM. Learn more : https://github.com/abellion/xenus

Installation

If you haven't already installed Xenus, and thus satisfied its requirement to the mongodb extension, make sure to install the extension before requiring this package : https://www.php.net/manual/en/mongodb.installation.php Once installed, require the package :

composer require abellion/xenus-laravel

Configuration

An instance of the Xenus\Connection class will automatically be constructed and registered inside the service container for you. To do so, Xenus reads the connection's settings from your config/database.php file under the mongodb.connection key. It must at least contain the host and the database you wish to connect to :

[
    'mongodb' => [
        'connection' => [
            'host' => 'mongodb://localhost:27017',
            'database' => 'my_database'
        ]
    ]
]

Service provider

In order to configure your collections, that is linking them to the Laravel's event dispatcher and defining them as singleton inside the service container, you must create a service provider. This service provider must extend Xenus\Laravel\XenusServiceProvider and contain a $collections property holding your collections :

use Xenus\Laravel\XenusServiceProvider as ServiceProvider;

class XenusServiceProvider extends ServiceProvider
{
    protected $collections = [
        MyCollection::class
    ];
}

Failed jobs and migrations

The failed jobs and migrations bridges come pre-configured and ready to work. If you want to change the default collections names they use, edit the following :

For the migrations :

// config/database.php

[
    'migrations' => 'my_migration_collection'
]

For the failed jobs :

// config/queue.php

[
    'failed' => [
        'collection' => 'my_failed_jobs_collection'
    ]
]

License

Xenus is licensed under the MIT license.

Related Packages

nebo15/lumen.applicationable

Interfaces and Traits for applicationable models

3,575 0
cimrie/odm

Doctrine MongoDB ODM integration with Laravel. Aim to be interoperable with othe...

48 2
kh411d/laravel-odm

Laravel 4 doctrine mongodb integration

20 0
leroy-merlin-br/mongolid-laravel

Easy, powerful and ultrafast MongoDB ODM for Laravel.

29,184 236
rlima/laravel5doctrine-odm

Laravel 5.1 module that provides Doctrine MongoDB ODM functionality

9 1

Version History

Version Released PHP Laravel License
0.4 ^7.1.3 || ^8.0 ^5.8 || ^6.0 || ^7.0 || ^8.0 || ^9.0 MIT
0.3 ^7.1.3 || ^8.0 ^5.8 || ^6.0 || ^7.0 || ^8.0 MIT
0.2.1 ^7.1.3 ^5.8 || ^6.0 || ^7.0 || ^8.0 MIT
0.2 ^7.1.3 ^5.8 || ^6.0 || ^7.0 || ^8.0 MIT
0.1 ^7.1.3 ^5.8 || ^6.0 || ^7.0 MIT