New

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

markustripp/mongo

MongoDB driver, auth, passport for Laravel
22,923 9

Larablocks Analysis

markustripp/mongo works with any PHP project: the latest release (v1.0.2, Aug 17, 2017) doesn't depend on Laravel.

Recommendation checks

Not advised

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

  • No release or commit in over 2 years
  • No release in the last 12 months (last: Aug 17, 2017)
  • 1 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: Aug 17, 2017.
  • No releases in the last 12 months.
  • First released: Aug 10, 2017.
  • Monthly downloads: 1, down 83% from six months ago.
  • 0 open issues on GitHub.

Data from Packagist and GitHub, checked by Larablocks on Nov 28, 2026.

Install
composer require markustripp/mongo
Latest Version:v1.0.2
License:MIT
Last Updated:Mar 12, 2018
Links: GitHub  ·  Packagist
Maintainer: markustripp

Laravel Package for MongoDB support

See Laravel 5.5 Package Development

Quick Start Guide

  • Create a Laravel 5.5 project: composer create-project laravel/laravel myproject dev-develop
  • cd myproject
  • Add dependency: composer require markustripp/mongo
  • Copy configuration: php artisan vendor:publish

Now you are ready to use the Mongo Facade, e.g. open routes/web.php:

<?php

Route::get('mongo', function(Request $request) {
    $collection = Mongo::get()->mydatabase->mycollection;
    return $collection->find()->toArray();
});

Route::get('/', function () {
    return view('welcome');
});

Add a document to mycollection in mydatabase and open the browser at http://myproject.dev/mongo

To override the default MongoDB connection configuration add the following parameters to your .env file. Find a detailed description on the MongoDB Driver Manager Page. Use JSON notation within single quotes ' for options.

MONGO_URI=mongodb://127.0.0.1:27017
MONGO_URI_OPTIONS='{"appname": "app", "replicaSet": "repl"}'
MONGO_DRIVER_OPTIONS=

Related Packages

doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database s...

670,032,257 9,703
laravel/framework

The Laravel Framework.

640,572,096 35,338
laravel/tinker

Powerful REPL for the Laravel framework.

546,909,908 7,440
laravel/serializable-closure

Laravel Serializable Closure provides an easy and secure way to serialize closur...

465,816,364 607
nunomaduro/collision

Cli error handling for console/command-line PHP applications.

431,187,642 4,660

Version History

Version Released License
v1.0.2 MIT
v1.0.1 MIT
v1.0.0 MIT