markustripp/mongo
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 advisedNot 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 |
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
Powerful PHP database abstraction layer (DBAL) with many features for database s...
Laravel Serializable Closure provides an easy and secure way to serialize closur...
Cli error handling for console/command-line PHP applications.
Version History
| Version | Released | License |
|---|---|---|
| v1.0.2 | MIT | |
| v1.0.1 | MIT | |
| v1.0.0 | MIT |