{"id":15026238,"url":"https://github.com/asdfdotdev/session","last_synced_at":"2025-04-09T20:20:51.059Z","repository":{"id":25336874,"uuid":"28764136","full_name":"asdfdotdev/session","owner":"asdfdotdev","description":"PHP session helper.","archived":false,"fork":false,"pushed_at":"2022-02-26T17:59:32.000Z","size":104,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":3,"default_branch":"main","last_synced_at":"2025-03-23T22:12:27.519Z","etag":null,"topics":["composer-package","php-sessions","php72","php73","php74","php8"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"lgpl-2.1","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/asdfdotdev.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":".github/CONTRIBUTING.md","funding":".github/funding.yml","license":"LICENSE","code_of_conduct":".github/CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"custom":"https://asdf.dev/support/"}},"created_at":"2015-01-04T04:32:43.000Z","updated_at":"2024-05-16T05:21:42.000Z","dependencies_parsed_at":"2022-08-24T00:10:59.979Z","dependency_job_id":null,"html_url":"https://github.com/asdfdotdev/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/asdfdotdev%2Fsession","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asdfdotdev%2Fsession/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asdfdotdev%2Fsession/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/asdfdotdev%2Fsession/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/asdfdotdev","download_url":"https://codeload.github.com/asdfdotdev/session/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248104103,"owners_count":21048282,"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":["composer-package","php-sessions","php72","php73","php74","php8"],"created_at":"2024-09-24T20:04:08.504Z","updated_at":"2025-04-09T20:20:51.014Z","avatar_url":"https://github.com/asdfdotdev.png","language":"PHP","funding_links":["https://asdf.dev/support/"],"categories":[],"sub_categories":[],"readme":"# Session\n\n![PHPUnit Tests (8.x)](https://github.com/asdfdotdev/session/workflows/PHPUnit%20Tests%20(8.x)/badge.svg) ![PHPUnit Tests (7.x)](https://github.com/asdfdotdev/session/workflows/PHPUnit%20Tests%20(7.x)/badge.svg) [![codecov](https://codecov.io/gh/asdfdotdev/session/branch/main/graph/badge.svg)](https://codecov.io/gh/asdfdotdev/session) [![Packagist](https://img.shields.io/packagist/dm/asdfdotdev/session)](https://packagist.org/packages/asdfdotdev/session)\n\nThis class endeavors to make it easy to use better sessions in PHP scripts.\n\n* Easily set, increment, append, hash, and drop session values\n* Custom session naming\n* Simple session fingerprint check\n* Regenerate session id at random intervals\n* Change session id length \u0026 bits per character*\n* HTTPOnly session cookie\n* Decoy PHPSESSID cookie\n* Force session strict mode*\n* Force session use only cookies*\n* Force HTTPS only session cookies*\n* Supports PHP 7.2+\n\n\u003csup\u003e\\* Requires `ini_set()` method be enabled.\u003c/sup\u003e\n\n### Compatibility\n\n[![PHP Compatibility](https://img.shields.io/badge/PHP-7.2_to_8.1-%238892BF.svg?logo=php)](https://php.net/)\n\nSession class is developed for and tested with recent PHP Version:\n\n- PHP 7.2, 7.3, 7.4, 8.0, 8.1\n\n\n## Installation\n\n```\ncomposer require asdfdotdev/session\n```\n\n## Use\n\nA number of usage examples are included in `_examples/`. Check out the examples [README](./_examples/README.md) for further details.\n\n## Tests\n\nInformation regarding the included tests is available in the tests the [README](./_test#readme).\n\n[Build history can be browsed at GitHub.](https://github.com/asdfdotdev/session/actions)\n\n## Standards\n\nThis class follows [PSR-12](https://www.php-fig.org/psr/psr-12/) code standards.\n\n## Debugging\n\nBy default basic checks are performed when creating a session:\n\n- **Session Lifespan:** Prevents min lifespan from being greater than max lifespan.\n- **System Timezone:** Confirms default timezone is configured for PHP, if not UTC is set.\n\nAdditional optional debugging can be enabled in session settings:\n\n- **PHP Version:** Confirms the version available is 7.2.0 or newer\n- **Session Directory:** Confirms write access to PHP session directory\n- **Session Domain:** Confirms session domain setting matches the request domain\n\n## Contributing\n\nFeedback, bug reports, feature requests, and pull requests are welcome!\n\nIf you'd like to contribute please reference our [code of conduct](./.github/CODE_OF_CONDUCT.md) and [contributing](./.github/CONTRIBUTING.md) guides.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasdfdotdev%2Fsession","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fasdfdotdev%2Fsession","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fasdfdotdev%2Fsession/lists"}