{"id":19124676,"url":"https://github.com/duncan3dc/sessions","last_synced_at":"2025-04-15T06:54:12.135Z","repository":{"id":56973227,"uuid":"39295907","full_name":"duncan3dc/sessions","owner":"duncan3dc","description":"A non-blocking session handler for PHP","archived":false,"fork":false,"pushed_at":"2024-02-29T17:30:14.000Z","size":857,"stargazers_count":27,"open_issues_count":0,"forks_count":9,"subscribers_count":3,"default_branch":"main","last_synced_at":"2024-04-30T00:21:16.256Z","etag":null,"topics":["php","session"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/duncan3dc.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","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":"2015-07-18T11:18:00.000Z","updated_at":"2024-06-18T16:46:09.052Z","dependencies_parsed_at":"2024-06-18T16:46:04.767Z","dependency_job_id":"c9d914dd-ac17-4f86-93d2-1799f752b8f9","html_url":"https://github.com/duncan3dc/sessions","commit_stats":{"total_commits":86,"total_committers":5,"mean_commits":17.2,"dds":0.05813953488372092,"last_synced_commit":"c6ad45dfa848cc82e0bb9a008bd808211127d29d"},"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fsessions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fsessions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fsessions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/duncan3dc%2Fsessions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/duncan3dc","download_url":"https://codeload.github.com/duncan3dc/sessions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249023711,"owners_count":21199958,"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"],"created_at":"2024-11-09T05:29:51.916Z","updated_at":"2025-04-15T06:54:12.117Z","avatar_url":"https://github.com/duncan3dc.png","language":"PHP","funding_links":["https://tidelift.com/subscription/pkg/packagist-duncan3dc-sessions?utm_source=packagist-duncan3dc-sessions\u0026utm_medium=referral\u0026utm_campaign=readme"],"categories":[],"sub_categories":[],"readme":"# sessions\nA non-blocking session handler for PHP\n\nFull documentation is available at http://duncan3dc.github.io/sessions/  \nPHPDoc API documentation is also available at [http://duncan3dc.github.io/sessions/api/](http://duncan3dc.github.io/sessions/api/namespaces/duncan3dc.Sessions.html)  \n\n[![release](https://poser.pugx.org/duncan3dc/sessions/version.svg)](https://packagist.org/packages/duncan3dc/sessions)\n[![build](https://travis-ci.org/duncan3dc/sessions.svg?branch=master)](https://travis-ci.org/duncan3dc/sessions)\n[![coverage](https://codecov.io/gh/duncan3dc/sessions/graph/badge.svg)](https://codecov.io/gh/duncan3dc/sessions)\n\n\nQuick Examples\n--------------\n\n```php\n$session = new \\duncan3dc\\Sessions\\SessionInstance(\"my-app\");\n$session-\u003eset(\"current-status\", 4);\n$currentStatus = $session-\u003eget(\"current-status\");\n```\n\nAvoid common key clashes:\n```php\n$session-\u003eset(\"user\", \"Mark\");\n\n$backend = $session-\u003ecreateNamespace(\"backend\");\n$backend-\u003eset(\"user\", \"Caroline\");\n\n$session-\u003eget(\"user\"); # \"Mark\"\n$backend-\u003eget(\"user\"); # \"Caroline\"\n```\n\nStore one-time flash messages:\n```php\n$session-\u003esetFlash(\"message\", \"Your profile has been updated\");\n\n$session-\u003egetFlash(\"message\"); # \"Your profile has been updated\";\n\n$session-\u003egetFlash(\"message\"); # null;\n```\n\nThere is also a static class you can use with all the features above:\n```php\nuse \\duncan3dc\\Sessions\\Session;\nSession::name(\"my-app\");\n\nSession::set(\"current-status\", 4);\n$currentStatus = Session::get(\"current-status\");\n```\n\n_Read more at http://duncan3dc.github.io/sessions/_  \n\n\nChangelog\n---------\nA [Changelog](CHANGELOG.md) has been available since the beginning of time\n\n\nWhere to get help\n-----------------\nFound a bug? Got a question? Just not sure how something works?  \nPlease [create an issue](//github.com/duncan3dc/sessions/issues) and I'll do my best to help out.  \nAlternatively you can catch me on [Twitter](https://twitter.com/duncan3dc)\n\n\n## duncan3dc/sessions for enterprise\n\nAvailable as part of the Tidelift Subscription\n\nThe maintainers of duncan3dc/sessions and thousands of other packages are working with Tidelift to deliver commercial support and maintenance for the open source dependencies you use to build your applications. Save time, reduce risk, and improve code health, while paying the maintainers of the exact dependencies you use. [Learn more.](https://tidelift.com/subscription/pkg/packagist-duncan3dc-sessions?utm_source=packagist-duncan3dc-sessions\u0026utm_medium=referral\u0026utm_campaign=readme)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduncan3dc%2Fsessions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fduncan3dc%2Fsessions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fduncan3dc%2Fsessions/lists"}