{"id":15908019,"url":"https://github.com/photon/session-mongodb","last_synced_at":"2025-04-02T23:42:45.682Z","repository":{"id":19409227,"uuid":"22651236","full_name":"photon/session-mongodb","owner":"photon","description":"MongoDB backend for session storage","archived":false,"fork":false,"pushed_at":"2017-12-04T16:39:19.000Z","size":32,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-02-08T14:11:18.126Z","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":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/photon.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-08-05T16:45:43.000Z","updated_at":"2016-06-08T11:27:37.000Z","dependencies_parsed_at":"2022-09-22T14:26:06.540Z","dependency_job_id":null,"html_url":"https://github.com/photon/session-mongodb","commit_stats":null,"previous_names":[],"tags_count":13,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photon%2Fsession-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photon%2Fsession-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photon%2Fsession-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/photon%2Fsession-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/photon","download_url":"https://codeload.github.com/photon/session-mongodb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246911489,"owners_count":20853654,"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":"2024-10-06T14:08:52.993Z","updated_at":"2025-04-02T23:42:45.668Z","avatar_url":"https://github.com/photon.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"session-mongodb\n===============\n\n[![Build Status](https://travis-ci.org/photon/session-mongodb.svg?branch=master)](https://travis-ci.org/photon/session-mongodb)\n\nMongoDB backend for session storage\n\n\nPHP Versions\n------------\n\n- 7.0 and 7.1 are supported and tested under travis\n- Use ext-mongodb and mongodb/mongodb. Do not works anymore with legacy ext-mongo\n\n\nQuick start\n-----------\n\n1) Add the module in your project\n\n    composer require \"photon/session-mongodb\"\n\nor for a specific version\n\n    composer require \"photon/session-mongodb:2.0.0\"\n\n2) Define a MongoDB connection in your project configuration\n\n    'databases' =\u003e array(\n        'session-db' =\u003e array(\n            'engine' =\u003e '\\photon\\db\\MongoDB',\n            'server' =\u003e 'mongodb://localhost:27017/',\n            'database' =\u003e 'sessions',\n            'options' =\u003e array(\n                'connect' =\u003e true,\n            ),\n        ),\n    ),\n\n3) Define the session storage backend in your project configuration, and some others session parameters\n\n    'session_storage' =\u003e '\\photon\\session\\storage\\MongoDB',\n    'session_cookie_domain' =\u003e 'www.example.com',\n    'session_cookie_path' =\u003e '/',\n    'session_timeout' =\u003e 4 * 3600,\n\n4) Define the configuration of the MongoDB Session module in your project configuration\n\n    'session_mongodb' =\u003e array(\n        'database' =\u003e 'session-db',\n        'collection' =\u003e 'session',\n    ),\n\n5) Enjoy !\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphoton%2Fsession-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphoton%2Fsession-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphoton%2Fsession-mongodb/lists"}