{"id":27633500,"url":"https://github.com/markustripp/mongo","last_synced_at":"2025-04-23T18:17:22.266Z","repository":{"id":62524330,"uuid":"99922920","full_name":"markustripp/mongo","owner":"markustripp","description":"MongoDB driver, auth, passport for Laravel","archived":false,"fork":false,"pushed_at":"2018-03-12T11:11:11.000Z","size":5,"stargazers_count":10,"open_issues_count":0,"forks_count":7,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-23T18:17:03.883Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/markustripp.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-08-10T12:55:06.000Z","updated_at":"2019-11-30T09:19:48.000Z","dependencies_parsed_at":"2022-11-02T14:15:40.587Z","dependency_job_id":null,"html_url":"https://github.com/markustripp/mongo","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markustripp%2Fmongo","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markustripp%2Fmongo/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markustripp%2Fmongo/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markustripp%2Fmongo/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markustripp","download_url":"https://codeload.github.com/markustripp/mongo/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250487520,"owners_count":21438612,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-04-23T18:17:21.624Z","updated_at":"2025-04-23T18:17:22.260Z","avatar_url":"https://github.com/markustripp.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Laravel Package for MongoDB support\n\nSee [Laravel 5.5 Package Development](https://medium.com/@markustripp/laravel-5-5-package-development-e72f3e7a8f38)\n\n## Quick Start Guide\n\n- Create a Laravel 5.5 project: `composer create-project laravel/laravel myproject dev-develop`\n- `cd myproject`\n- Add dependency: `composer require markustripp/mongo`\n- Copy configuration: `php artisan vendor:publish`\n\nNow you are ready to use the Mongo Facade, e.g. open routes/web.php:\n\n``` PHP\n\u003c?php\n\nRoute::get('mongo', function(Request $request) {\n    $collection = Mongo::get()-\u003emydatabase-\u003emycollection;\n    return $collection-\u003efind()-\u003etoArray();\n});\n\nRoute::get('/', function () {\n    return view('welcome');\n});\n\n```\n\nAdd a document to mycollection in mydatabase and open the browser at http://myproject.dev/mongo\n\nTo override the default MongoDB connection configuration add the following parameters to your .env file. Find a detailed description on the [MongoDB Driver Manager Page](http://php.net/manual/en/mongodb-driver-manager.construct.php). Use JSON notation within single quotes `'` for options.\n\n```\nMONGO_URI=mongodb://127.0.0.1:27017\nMONGO_URI_OPTIONS='{\"appname\": \"app\", \"replicaSet\": \"repl\"}'\nMONGO_DRIVER_OPTIONS=\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkustripp%2Fmongo","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkustripp%2Fmongo","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkustripp%2Fmongo/lists"}