{"id":19094996,"url":"https://github.com/phauthentic/session","last_synced_at":"2025-02-22T08:25:35.133Z","repository":{"id":56153000,"uuid":"177112239","full_name":"Phauthentic/session","owner":"Phauthentic","description":"A php session library","archived":false,"fork":false,"pushed_at":"2020-11-24T15:52:02.000Z","size":69,"stargazers_count":1,"open_issues_count":1,"forks_count":1,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-01-02T23:48:34.953Z","etag":null,"topics":["agnostic","agnostic-to-frameworks","dependency-free","oop","php-session","session","session-management"],"latest_commit_sha":null,"homepage":null,"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/Phauthentic.png","metadata":{"files":{"readme":"readme.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-22T09:36:09.000Z","updated_at":"2020-11-24T15:33:18.000Z","dependencies_parsed_at":"2022-08-15T13:40:47.383Z","dependency_job_id":null,"html_url":"https://github.com/Phauthentic/session","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phauthentic%2Fsession","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phauthentic%2Fsession/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phauthentic%2Fsession/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Phauthentic%2Fsession/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Phauthentic","download_url":"https://codeload.github.com/Phauthentic/session/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240144902,"owners_count":19754978,"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":["agnostic","agnostic-to-frameworks","dependency-free","oop","php-session","session","session-management"],"created_at":"2024-11-09T03:32:23.784Z","updated_at":"2025-02-22T08:25:35.106Z","avatar_url":"https://github.com/Phauthentic.png","language":"PHP","readme":"# Agnostic php session library\n\n[![Software License](https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square)](LICENSE)\n[![Scrutinizer Coverage](https://img.shields.io/scrutinizer/coverage/g/Phauthentic/session/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/Phauthentic/session/)\n[![Code Quality](https://img.shields.io/scrutinizer/g/Phauthentic/session/master.svg?style=flat-square)](https://scrutinizer-ci.com/g/Phauthentic/session/)\n\nA framework agnostic session library with convenient dot notation access.\n\n## Session handlers\n\nIncluded:\n\n * Native php sessions\n * Simple database sessions via [PDO](https://www.php.net/manual/en/book.pdo.php) (MySQL, Postgres,...)\n * PSR 16 cache based session\n\nExternal handlers:\n\n * [Redis](https://github.com/1ma/RedisSessionHandler)\n * [PSR6 cache session adapter](https://github.com/php-cache/session-handler)\n\nYou can implement any other handler or use other already existing implementations that implement the native php [SessionHandlerInterface](http://php.net/manual/en/class.sessionhandlerinterface.php).\n\n## Example\n\nThis is a very simple example to give you an idea of how to use it:\n\n```php\nuse Phauthentic\\Infrastructure\\Http\\Session\\Session;\nuse Phauthentic\\Infrastructure\\Http\\Session\\Config as SessionConfig;\n\n$config = (new SessionConfig())\n    -\u003esetSessionName('my-app')\n    -\u003esetGcLifeTime(60);\n\n$session = new Session($config);\n$session-\u003ewrite('user', ['username' =\u003e 'foo']);\n\necho $session-\u003eread('user.username');\n```\n\n## Copyright \u0026 License\n\nLicensed under the [MIT license](LICENSE.txt).\n\n* Copyright (c) Florian Krämer\n* Copyright (c) [Cake Software Foundation, Inc.](https://cakefoundation.org)\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphauthentic%2Fsession","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fphauthentic%2Fsession","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fphauthentic%2Fsession/lists"}