{"id":13712013,"url":"https://github.com/middlewares/aura-session","last_synced_at":"2026-01-07T23:54:54.212Z","repository":{"id":62528408,"uuid":"70323376","full_name":"middlewares/aura-session","owner":"middlewares","description":"PSR-15 middleware to manage sessions using Aura.Session","archived":false,"fork":false,"pushed_at":"2021-10-29T16:12:28.000Z","size":25,"stargazers_count":6,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"master","last_synced_at":"2024-11-09T02:19:17.565Z","etag":null,"topics":["aura-session","http","middleware","psr-15","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":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/middlewares.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-10-08T10:21:14.000Z","updated_at":"2023-05-22T12:06:31.000Z","dependencies_parsed_at":"2022-11-02T14:17:20.289Z","dependency_job_id":null,"html_url":"https://github.com/middlewares/aura-session","commit_stats":null,"previous_names":[],"tags_count":8,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middlewares%2Faura-session","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middlewares%2Faura-session/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middlewares%2Faura-session/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/middlewares%2Faura-session/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/middlewares","download_url":"https://codeload.github.com/middlewares/aura-session/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":224535687,"owners_count":17327572,"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":["aura-session","http","middleware","psr-15","session"],"created_at":"2024-08-02T23:01:14.036Z","updated_at":"2026-01-07T23:54:54.166Z","avatar_url":"https://github.com/middlewares.png","language":"PHP","funding_links":[],"categories":["Packages"],"sub_categories":["Session"],"readme":"# middlewares/aura-session\n\n[![Latest Version on Packagist][ico-version]][link-packagist]\n[![Software License][ico-license]](LICENSE)\n![Testing][ico-ga]\n[![Total Downloads][ico-downloads]][link-downloads]\n[![SensioLabs Insight][ico-sensiolabs]][link-sensiolabs]\n\nMiddleware to manage sessions using [Aura.Session](https://github.com/auraphp/Aura.Session).\n\n## Requirements\n\n* PHP \u003e= 7.2\n* A [PSR-7](https://packagist.org/providers/psr/http-message-implementation) http message implementation ([Diactoros](https://github.com/zendframework/zend-diactoros), [Guzzle](https://github.com/guzzle/psr7), [Slim](https://github.com/slimphp/Slim), etc...)\n* A [PSR-15 middleware dispatcher](https://github.com/middlewares/awesome-psr15-middlewares#dispatcher)\n\n## Installation\n\nThis package is installable and autoloadable via Composer as [middlewares/aura-session](https://packagist.org/packages/middlewares/aura-session).\n\n```sh\ncomposer require middlewares/aura-session\n```\n\n## Example\n\n```php\n$dispatcher = new Dispatcher([\n    new Middlewares\\AuraSession(),\n\n    function ($request) {\n        //get the session object\n        $session = $request-\u003egetAttribute('session');\n    }\n]);\n\n$response = $dispatcher-\u003edispatch(new ServerRequest());\n```\n\n## Options\n\n#### `__construct(Aura\\Session\\SessionFactory $factory = null)`\n\nTo use a custom session factory. If it's not passed, it will be created automatically.\n\n#### `name(string $name)`\n\nThe session name. If it's not defined, the default `PHPSESSID` will be used.\n\n#### `attribute(string $attribute)`\n\nThe attribute name used to store the session in the server request. By default is `session`.\n\n---\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information about recent changes and [CONTRIBUTING](CONTRIBUTING.md) for contributing details.\n\nThe MIT License (MIT). Please see [LICENSE](LICENSE) for more information.\n\n[ico-version]: https://img.shields.io/packagist/v/middlewares/aura-session.svg?style=flat-square\n[ico-license]: https://img.shields.io/badge/license-MIT-brightgreen.svg?style=flat-square\n[ico-ga]: https://github.com/middlewares/aura-session/workflows/testing/badge.svg\n[ico-downloads]: https://img.shields.io/packagist/dt/middlewares/aura-session.svg?style=flat-square\n\n[link-packagist]: https://packagist.org/packages/middlewares/aura-session\n[link-downloads]: https://packagist.org/packages/middlewares/aura-session\n[link-sensiolabs]: https://insight.sensiolabs.com/projects/174fe6b4-f522-49e4-9bab-2c7bf212d389\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiddlewares%2Faura-session","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmiddlewares%2Faura-session","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmiddlewares%2Faura-session/lists"}