{"id":20381250,"url":"https://github.com/drago-ex/sessions","last_synced_at":"2026-05-30T18:00:39.731Z","repository":{"id":56971823,"uuid":"51063306","full_name":"drago-ex/sessions","owner":"drago-ex","description":":cookie: Helper class for accessing Nette session and session sections outside presenters.","archived":false,"fork":false,"pushed_at":"2025-12-30T07:55:55.000Z","size":104,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2026-02-17T21:54:36.147Z","etag":null,"topics":["nette","sessions"],"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/drago-ex.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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2016-02-04T08:47:20.000Z","updated_at":"2025-12-30T07:55:58.000Z","dependencies_parsed_at":"2023-12-01T12:15:56.178Z","dependency_job_id":"708fb566-3d80-491b-b45c-3fe36aaf41c9","html_url":"https://github.com/drago-ex/sessions","commit_stats":{"total_commits":124,"total_committers":2,"mean_commits":62.0,"dds":0.008064516129032251,"last_synced_commit":"d6993be5d0669db03e06aca1846646ea1e18837e"},"previous_names":[],"tags_count":7,"template":false,"template_full_name":null,"purl":"pkg:github/drago-ex/sessions","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fsessions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fsessions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fsessions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fsessions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/drago-ex","download_url":"https://codeload.github.com/drago-ex/sessions/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/drago-ex%2Fsessions/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33703065,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-30T02:00:06.278Z","response_time":92,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["nette","sessions"],"created_at":"2024-11-15T02:12:32.599Z","updated_at":"2026-05-30T18:00:39.718Z","avatar_url":"https://github.com/drago-ex.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Drago Sessions\r\n\r\nA helper package for managing sessions outside the presenter in Nette Framework.\r\n\r\n[![License: MIT](https://img.shields.io/badge/License-MIT-yellow.svg)](https://github.com/drago-ex/sessions/blob/master/license)\r\n[![PHP version](https://badge.fury.io/ph/drago-ex%2Fsessions.svg)](https://badge.fury.io/ph/drago-ex%2Fsessions)\r\n[![Tests](https://github.com/drago-ex/sessions/actions/workflows/tests.yml/badge.svg)](https://github.com/drago-ex/sessions/actions/workflows/tests.yml)\r\n[![Coding Style](https://github.com/drago-ex/sessions/actions/workflows/coding-style.yml/badge.svg)](https://github.com/drago-ex/sessions/actions/workflows/coding-style.yml)\r\n\r\n## Requirements\r\n- PHP \u003e= 8.3\r\n- Nette Framework\r\n- Composer\r\n\r\n## Installation\r\n```\r\ncomposer require drago-ex/sessions\r\n```\r\n\r\n## Extension Registration\r\nIn your `neon` configuration, register the `ExtraSession` service:\r\n```neon\r\nservice:\r\n\t- Drago\\Http\\ExtraSession(@Nette\\Http\\Session, 'namespace')\r\n```\r\n\r\n## Examples\r\nSetting session values\r\n```php\r\n// Setting a session value in the specified section.\r\n$this-\u003eExtraSession-\u003egetSessionSection()-\u003eset('key', 'value');\r\n```\r\n\r\nReading session values\r\n```php\r\n// Getting a session value from the section.\r\n$value = $this-\u003eExtraSession-\u003egetSessionSection()-\u003eget('key');\r\n```\r\n\r\n## Features\r\n- Provides access to Nette sessions and session sections outside the presenter.\r\n- Ideal for managing session data in services or components within a Nette application.\r\n\r\n## Knowledge\r\n- [Sessions]([https://github.com/dg/dibi](https://doc.nette.org/en/http/sessions))\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrago-ex%2Fsessions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdrago-ex%2Fsessions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdrago-ex%2Fsessions/lists"}