{"id":20012847,"url":"https://github.com/erdiko/session","last_synced_at":"2025-05-04T21:31:44.801Z","repository":{"id":56978614,"uuid":"99157459","full_name":"Erdiko/session","owner":"Erdiko","description":"Erdiko session handler","archived":false,"fork":false,"pushed_at":"2017-09-13T20:35:22.000Z","size":34,"stargazers_count":4,"open_issues_count":0,"forks_count":1,"subscribers_count":5,"default_branch":"master","last_synced_at":"2025-04-08T12:21:13.355Z","etag":null,"topics":["php","session","session-driver"],"latest_commit_sha":null,"homepage":"http://erdiko.org","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/Erdiko.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":"2017-08-02T20:20:20.000Z","updated_at":"2024-07-09T22:33:16.000Z","dependencies_parsed_at":"2022-08-21T08:10:55.699Z","dependency_job_id":null,"html_url":"https://github.com/Erdiko/session","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erdiko%2Fsession","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erdiko%2Fsession/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erdiko%2Fsession/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Erdiko%2Fsession/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Erdiko","download_url":"https://codeload.github.com/Erdiko/session/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252404163,"owners_count":21742506,"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":["php","session","session-driver"],"created_at":"2024-11-13T07:33:35.448Z","updated_at":"2025-05-04T21:31:44.425Z","avatar_url":"https://github.com/Erdiko.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Erdiko Session Package\n\n[![Package version](https://img.shields.io/packagist/v/erdiko/session.svg?style=flat-square)](https://packagist.org/packages/erdiko/session)\n[![CircleCI](https://circleci.com/gh/Erdiko/session.svg?style=svg)](https://circleci.com/gh/Erdiko/session)\n[![License](https://poser.pugx.org/erdiko/session/license)](https://packagist.org/packages/erdiko/session)\n\n## Important: This package is currently on development, please don't use it until have a beta or stable version.\n\n### Introduction\n\nErdiko Session is a package to handle in an easy and elastic way to persistent user data through the lifetime of your application.\n\n### Official Documentation\n\nDocumentation for Erdiko Session Package can be found on the [Erdiko website](http://erdiko.org/session/).\n\n### Installation\n\nWe recommend installing Erdiko Session Package with [Composer](https://getcomposer.org/).  At the commandline simply run:\n```\ncomposer require erdiko/session\n```\n\n### Drivers\n\nCurrent Drivers Available:\n - File: SessionDriverFile\n\nComing Drivers in development:\n - Redis: SessionDriverRedis\n - Database: SessionDriverDatabase\n - Cookie: SessionDriverCookie\n\n### Dependencies\n\nThis package depends of Erdiko\\Core\n\n### Configuration\n\nFile Path\n```\n[site_root]/app/config/default/session.json\n```\n\nFile format\n```\n{\n  \"default\": { // Driver Source\n    \"driver\": \"file\",  // Driver Type\n    \"path\": \"/tmp\",\n    \"lifetime\": 60000\n  }\n}\n```\n### Available Methods\n\nYou will find several methods that will satisfy your requirements for handling session data.\n\n - get\n - set\n - has\n - forget\n - exists\n\n### Basic Usage\nFor more details please see [*Advance Usage Detail*](/advanceUsage.md) Page.\n\n#### Set Method\nSet the value on session\n```\nSession::set('name', 'value');\n```\n#### Get method\nRetrieves the value from the session\n```\nSession::get('name');\n```\n#### Has method\nVerifies if the given key exists and has a value on the session\n```\nSession::get('name');\n```\n#### Exists method\nVerifies if the given key exists, without verify if has or not value\n```\nSession::set('name', 'value');\n```\n#### Forget method\nRemoves the given key from the session\n```\nSession::set('name', 'value');\n```\n\n### Tests\n*On development*\n\n### Credits\n\n* Mauricio Gastón\n* John Arroyo\n* Leo Daidone\n\n[All Contributors](https://github.com/Erdiko/session/graphs/contributors)\n\n* If you want to help, please do, we'd love more brainpower!  Fork, commit your enhancements and do a pull request.  If you want to get to even more involved please contact us!\n\n### Sponsors\n\n[Arroyo Labs](http://www.arroyolabs.com/)\n\n\n### License\n\nErdiko is open-sourced software licensed under the [MIT license](http://opensource.org/licenses/MIT)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdiko%2Fsession","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ferdiko%2Fsession","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ferdiko%2Fsession/lists"}