{"id":37234139,"url":"https://github.com/devfake/rese","last_synced_at":"2026-01-15T03:57:40.799Z","repository":{"id":21201636,"uuid":"24514410","full_name":"devfake/rese","owner":"devfake","description":"Write your php sessions in a more readable way. Great for multidimensional sessions.","archived":true,"fork":false,"pushed_at":"2015-05-18T17:49:45.000Z","size":264,"stargazers_count":9,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2026-01-14T04:49:13.466Z","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/devfake.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-09-26T20:30:51.000Z","updated_at":"2023-06-25T20:17:18.000Z","dependencies_parsed_at":"2022-08-28T05:40:55.224Z","dependency_job_id":null,"html_url":"https://github.com/devfake/rese","commit_stats":null,"previous_names":["devfake/readable-session-helper"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/devfake/rese","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfake%2Frese","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfake%2Frese/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfake%2Frese/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfake%2Frese/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/devfake","download_url":"https://codeload.github.com/devfake/rese/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/devfake%2Frese/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28419272,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-14T10:47:48.104Z","status":"ssl_error","status_checked_at":"2026-01-14T10:46:19.031Z","response_time":107,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":[],"created_at":"2026-01-15T03:57:40.211Z","updated_at":"2026-01-15T03:57:40.781Z","avatar_url":"https://github.com/devfake.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Readable Session Helper\n=======================\n\n**Write your php sessions in a more readable way. Great for multidimensional sessions.**\n\nExtracted from [vume](https://github.com/devfake/vume) framework.\n\n### Get started\n\nCheck the [example](https://github.com/devfake/Readable-Session-Helper/blob/master/example.php) file.\n\n##### Requirements \n\n* PHP 5.3+\n* Composer\n\n##### Install\n\nThe easiest way to install Rese is via [Composer](https://getcomposer.org/). Add this to your `composer.json` file and run `$ composer update`:\n\n```json\n{\n  \"require\": {\n    \"devfake/rese\": \"dev-master\"\n  }\n}\n```\n\n**Create a helper function (if you like):**\n\n```php\nfunction session($keys = null)\n{\n  return new Devfake\\Rese\\Session($keys, '.');\n}\n```\n\n**Working with the new helper:**\n\n```php\n// $_SESSION\nsession()-\u003eget();\n\n// $_SESSION['key'];\nsession('key')-\u003eget();\n\n// $_SESSION['key']['more']['deep'];\nsession('key.more.deep')-\u003eget();\n\n// Pass a default value into get() if the key not exists:\nsession('not.available')-\u003eget('my default value');\n\n// $_SESSION['key']['more'] = $data;\nsession('key.more')-\u003eset($data);\n\n// isset($_SESSION['key']);\nsession('key')-\u003eexists();\n\n// Send a flash message:\nsession('input.error')-\u003emessage();\n\n// $_SESSION['key'] == 'value';\nsession('key')-\u003eis('value');\n\n// unset($_SESSION['key']['and']['more']['deeply']);\nsession('key.and.more.deeply')-\u003eremove();\n// Alias for remove():\nsession('key.and.more.deeply')-\u003edelete();\n\n// Destroy complete session:\nsession()-\u003edestroy();\n```\n\nYou can change the separation by add a second argument for the class call in the helper function.\nChange to whatever you like (e.g '-\u003e' or '/'):\n\n```php\nsession('key-\u003eand-\u003eother')-\u003eget();\nsession('key/and/other')-\u003eget();\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevfake%2Frese","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdevfake%2Frese","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdevfake%2Frese/lists"}