{"id":27918531,"url":"https://github.com/vcian/pulse-active-sessions","last_synced_at":"2025-05-06T18:23:06.243Z","repository":{"id":213359290,"uuid":"733776791","full_name":"vcian/pulse-active-sessions","owner":"vcian","description":"A Laravel Pulse card for active users count.","archived":false,"fork":false,"pushed_at":"2025-01-30T11:13:36.000Z","size":274,"stargazers_count":110,"open_issues_count":4,"forks_count":8,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-04T22:40:41.481Z","etag":null,"topics":["active-sessions","laravel","laravel-pulse","php","sessions"],"latest_commit_sha":null,"homepage":"https://packagist.org/packages/vcian/pulse-active-sessions","language":"Blade","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/vcian.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,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-12-20T05:21:07.000Z","updated_at":"2025-04-16T22:24:13.000Z","dependencies_parsed_at":"2024-03-26T10:51:04.409Z","dependency_job_id":"814604ee-4be5-42fa-9f45-d027018b9cb8","html_url":"https://github.com/vcian/pulse-active-sessions","commit_stats":null,"previous_names":["vcian/pulse-active-sessions"],"tags_count":11,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Fpulse-active-sessions","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Fpulse-active-sessions/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Fpulse-active-sessions/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/vcian%2Fpulse-active-sessions/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/vcian","download_url":"https://codeload.github.com/vcian/pulse-active-sessions/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252741903,"owners_count":21797107,"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":["active-sessions","laravel","laravel-pulse","php","sessions"],"created_at":"2025-05-06T18:23:05.669Z","updated_at":"2025-05-06T18:23:06.222Z","avatar_url":"https://github.com/vcian.png","language":"Blade","readme":"![Packagist License (custom server)](https://img.shields.io/packagist/l/vcian/pulse-active-sessions)\n![Packagist Downloads (custom server)](https://img.shields.io/packagist/dt/vcian/pulse-active-sessions)\n\n\n# Active Sessions card for Laravel Pulse\n\nThis card will show total number of sessions in application.\n\n## Installation\n\nRequire the package with Composer:\n\n```shell\ncomposer require vcian/pulse-active-sessions\n```\n\nNext, you should publish the Pulse configuration and migration files using the vendor:publish Artisan command:\n\n```\nphp artisan vendor:publish --provider=\"Laravel\\Pulse\\PulseServiceProvider\"\n```\n\n```\nphp artisan migrate\n```\n\n## Register the recorder\n\nRight now, the Composer dependencies will only be checked once per day. To run the checks you must add the `PulseActiveSessionRecorder` to the `pulse.php` file.\n\n```diff\nreturn [\n    // ...\n    \n    'recorders' =\u003e [\n+        \\Vcian\\Pulse\\PulseActiveSessions\\Recorders\\PulseActiveSessionRecorder::class =\u003e [],\n    ]\n]\n```\n\nYou also need to be running [the `pulse:check` command](https://laravel.com/docs/10.x/pulse#dashboard-cards).\n\n## Add to your dashboard\n\nTo add the card to the Pulse dashboard, you must first [publish the vendor view](https://laravel.com/docs/10.x/pulse#dashboard-customization).\n\nThen, you can modify the `dashboard.blade.php` file:\n\n```diff\n\u003cx-pulse\u003e\n+    \u003clivewire:pulse_active_session cols='4' rows='2' /\u003e\n\n    \u003clivewire:pulse.servers cols=\"full\" /\u003e\n\n    \u003clivewire:pulse.usage cols=\"4\" rows=\"2\" /\u003e\n\n    \u003clivewire:pulse.queues cols=\"4\" /\u003e\n\n    \u003clivewire:pulse.cache cols=\"4\" /\u003e\n\n    \u003clivewire:pulse.slow-queries cols=\"8\" /\u003e\n\n    \u003clivewire:pulse.exceptions cols=\"6\" /\u003e\n\n    \u003clivewire:pulse.slow-requests cols=\"6\" /\u003e\n\n    \u003clivewire:pulse.slow-jobs cols=\"6\" /\u003e\n\n    \u003clivewire:pulse.slow-outgoing-requests cols=\"6\" /\u003e\n\n\u003c/x-pulse\u003e\n```\nThis feature allows you to dynamically set thresholds and display interactive color-coded indicators based on predefined threshold values. Easily configure these thresholds using the `pulse.php` config file for a visual representation of active sessions.\n\n```diff\n+    'active_session_threshold' =\u003e 100,\n```\n\n\u003cimg src=\"/art/card-1.png\" width=\"100%\" alt=\"Active Sessions Card\"\u003e\n\n\u003cimg src=\"/art/card-2.png\" width=\"100%\" alt=\"Active Sessions Card\"\u003e\n\n\u003cimg src=\"/art/card-3.png\" width=\"100%\" alt=\"Active Sessions Card\"\u003e\n\n\u003cimg src=\"/art/card-4.png\" width=\"100%\" alt=\"Active Sessions Card\"\u003e\n\nTo make pulse recorders will automatically capture entries based on framework events dispatched by Laravel, You must run the below command.\n```\nphp artisan pulse:check\n```\n\nThat's it!\n\n## Supported session drivers\n\n- database\n- file\n- redis\n- memcached\n\n## Not Supported\n\n- Passport : This will not support when multiple providers used as authentication.It only while using single provider.\n\n## Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n       We believe in \n            👇\n          ACT NOW\n      PERFECT IT LATER\n    CORRECT IT ON THE WAY.\n\n## Security\n\nIf you discover any security-related issues, please email ruchit.patel@viitor.cloud instead of using the issue tracker.\n\n## Credits\n\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcian%2Fpulse-active-sessions","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fvcian%2Fpulse-active-sessions","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fvcian%2Fpulse-active-sessions/lists"}