{"id":21065099,"url":"https://github.com/prolificinteractive/simplesamlphp-module-mongodb","last_synced_at":"2025-05-16T02:33:07.188Z","repository":{"id":77654613,"uuid":"171762858","full_name":"prolificinteractive/simplesamlphp-module-mongodb","owner":"prolificinteractive","description":"SimpleSAML Store implementation for MongoDB PHP Library","archived":false,"fork":false,"pushed_at":"2019-03-01T18:47:57.000Z","size":33,"stargazers_count":2,"open_issues_count":0,"forks_count":5,"subscribers_count":5,"default_branch":"master","last_synced_at":"2024-04-14T15:22:15.796Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/prolificinteractive.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2019-02-20T23:03:08.000Z","updated_at":"2024-08-05T19:34:23.245Z","dependencies_parsed_at":"2023-03-12T01:29:57.820Z","dependency_job_id":null,"html_url":"https://github.com/prolificinteractive/simplesamlphp-module-mongodb","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2Fsimplesamlphp-module-mongodb","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2Fsimplesamlphp-module-mongodb/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2Fsimplesamlphp-module-mongodb/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/prolificinteractive%2Fsimplesamlphp-module-mongodb/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/prolificinteractive","download_url":"https://codeload.github.com/prolificinteractive/simplesamlphp-module-mongodb/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225401866,"owners_count":17468810,"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-11-19T17:53:37.834Z","updated_at":"2024-11-19T17:53:38.558Z","avatar_url":"https://github.com/prolificinteractive.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SimpleSAMLphp MongoDB Module\n\n[![Travis build status](https://img.shields.io/travis/prolificinteractive/simplesamlphp-module-mongodb.svg?style=flat-square\u0026branch=master)](https://travis-ci.org/prolificinteractive/simplesamlphp-module-mongodb)\n\nThis module is an implementation of a SimpleSAMLphp (SSP) data store to add support for the MongoDB PHP library.   \n\n## Features\n\n- Can be used for backend storage of sessions in MongoDB\n- Includes support for replica sets\n\n## Requirements\n\nPHP 5.5 or higher\n\n[SimpleSAMLphp](https://simplesamlphp.org/)\n\n[MongoDB](https://www.mongodb.com/)\n\n[MongoDB PHP extension](http://php.net/manual/en/book.mongodb.php)\n\n## Installation\n\nIf your project manages SSP with [Composer](https://getcomposer.org/) run:\n```\nphp composer.phar require prolificinteractive/simplesamlphp-module-mongodb\n```\nThis command will add `prolificinteractive/simplesamlphp-module-mongodb` to your projects' composer.json file and install the module \ninto SSP's `modules` directory, which relative to your project's root directory is conventionally `vendor/simplesamlphp/simplesamlphp/modules`.\n\n## Usage\n\nSet the `store.type` option in your SSP config file to `mongo:Store`.\n\nProvide your MongoDB connection information to the module by copying the file provided in the `config-templates` directory into SSP's config directory, and setting the following environment variables:\n```\nDB_MONGODB_HOST\nDB_MONGODB_PORT\nDB_MONGODB_USERNAME\nDB_MONGODB_PASSWORD\nDB_MONGODB_DATABASE\n``` \n\nIf your connecting to a replica set, you'll need to set the following environment variables below as well:\n```\nDB_DEFAULT_CONNECTION   # Must contain the substring \"_replica\"\nDB_MONGODB_REPLICASET\nDB_MONGODB_READ_PREFERENCE\n```\nSee the [MongoDB extension PHP Manual](http://php.net/manual/en/set.mongodb.php) for more information about appropriate values for `DB_MONGODB_REPLICASET` and `DB_MONGODB_READ_PREFERENCE`. \n\nFinally, you can enable the module by creating an empty file name `enable` in the `vendor/simplesamlphp/simplesamlphp/modules/mongodb` directory.\n\n**Note:** This module stores PHP session data in the `session` collection. \n\n## Contributing to SimpleSAMLphp Mongo Module\n\nTo report a bug or enhancement request, feel free to file an issue under the respective heading.\n\nIf you wish to contribute to the project, fork this repo and submit a pull request.\n\n## License\n\n![prolific](https://s3.amazonaws.com/prolificsitestaging/logos/Prolific_Logo_Full_Color.png)\n\nCopyright (c) 2017 Prolific Interactive\n\nSimpleSAMLphp Mongo Module is maintained and sponsored by Prolific Interactive. It may be redistributed under the terms specified in the [LICENSE] file.\n\n[LICENSE]: ./LICENSE\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprolificinteractive%2Fsimplesamlphp-module-mongodb","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fprolificinteractive%2Fsimplesamlphp-module-mongodb","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fprolificinteractive%2Fsimplesamlphp-module-mongodb/lists"}