PHP Package: mongodb/laravel-mongodb

The Laravel MongoDB library provides seamless integration between Laravel and MongoDB for efficient data handling.

Current Version: 5.5.0
Last Updated: 2025-08-29
PHP Requirement: ^8.1
Dependencies:
mongodb/mongodb
jenssegers/mongodb
⚠️ To ensure full functionality, the above dependencies might be required.

Package Description

Laravel MongoDB library enhances Laravel applications by enabling direct interaction with MongoDB databases. It optimizes performance, scalability, and flexibility for projects requiring NoSQL capabilities. With this library, developers can easily manage complex data structures, leverage MongoDB's strengths, and streamline data operations within Laravel applications.

📦 Show all available classes🔗 View on GitHub

Download Latest Version: 5.5.0

Download Download v5.5.0

Previous Versions

Code Integration Example

Make sure to include the correct namespace and class paths for proper usage.

<?php
// Example from PHPlibraries.com
require_once 'libs/mongodb/laravel-mongodb/5.5.0/loader.php';
require_once 'libs/mongodb/mongodb/{lib_version}/loader.php';
require_once 'libs/jenssegers/mongodb/{lib_version}/loader.php';

use Jenssegers\Mongodb\Eloquent\Model;
use Jenssegers\Mongodb\Connection;

$obj = new Model();
echo '✅ Test OK: ' . get_class($obj);
?>

We aim to make using PHP packages easier without Composer. If something doesn't work, let us know — we'll fix it promptly.

Community Discussion

Ask questions, share tips, or report issues below.