{"id":19031960,"url":"https://github.com/johnnymast/redbox-tracker","last_synced_at":"2025-04-23T16:40:55.706Z","repository":{"id":62534179,"uuid":"264676686","full_name":"johnnymast/redbox-tracker","owner":"johnnymast","description":"Real-time check the visitors on your Laravel installation.","archived":false,"fork":false,"pushed_at":"2020-06-08T15:03:50.000Z","size":1127,"stargazers_count":7,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-18T01:48:04.407Z","etag":null,"topics":["analytics","events","laravel","php","real-time","realtime-analytics"],"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/johnnymast.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":".github/FUNDING.yml","license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null},"funding":{"github":"johnnymast","custom":"https://www.paypal.me/johnnymast"}},"created_at":"2020-05-17T13:45:49.000Z","updated_at":"2025-02-17T15:16:02.000Z","dependencies_parsed_at":"2022-11-02T15:15:20.637Z","dependency_job_id":null,"html_url":"https://github.com/johnnymast/redbox-tracker","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fredbox-tracker","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fredbox-tracker/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fredbox-tracker/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/johnnymast%2Fredbox-tracker/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/johnnymast","download_url":"https://codeload.github.com/johnnymast/redbox-tracker/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250471996,"owners_count":21436060,"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":["analytics","events","laravel","php","real-time","realtime-analytics"],"created_at":"2024-11-08T21:25:52.611Z","updated_at":"2025-04-23T16:40:55.688Z","avatar_url":"https://github.com/johnnymast.png","language":"PHP","funding_links":["https://github.com/sponsors/johnnymast","https://www.paypal.me/johnnymast"],"categories":[],"sub_categories":[],"readme":"\u003ch2 align=\"center\"\u003e\n\u003cimg src=\"https://user-images.githubusercontent.com/121194/82691564-6b57da80-9c5e-11ea-87ec-639ad2255e8a.png\"\u003e\u003cbr /\u003e\nTracking Movement\n\u003c/h2\u003e\n\n\n\u003cp align=\"center\"\u003e\n\u003ca href=\"https://github.com/johnnymast/redbox-tracker/actions?query=workflow%3APhpcs\"\u003e\u003cimg src=\"https://github.com/johnnymast/redbox-tracker/workflows/Phpcs/badge.svg\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/?branch=master\"\u003e\u003cimg src=\"https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/badges/quality-score.png?b=master\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/?branch=master\"\u003e\u003cimg src=\"https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/badges/coverage.png?b=master\" /\u003e\u003c/a\u003e\n\u003ca href=\"https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/build-status/master\"\u003e\u003cimg src=\"https://scrutinizer-ci.com/g/johnnymast/redbox-tracker/badges/build.png?b=master\" /\u003e\u003c/a\u003e\n\u003c/p\u003e\n \nRedbox-tracker allows helps you to track visiting traffic to your Laravel website. New visitors along with their requests will be saved to the database.\n\n# Getting started\n\n## Prerequisites\n\nWe don't require much, but these are the minimum requirements for using Redbox-tracker. \n\n- PHP 7.3\n- Laravel 7 or higher\n\nThere is one additional requirement if you are contributing to this package.\nFor development on the package itself, we require \u003ccode\u003epdo_sqlite\u003c/code\u003e for testing.\n\n## Installation  \n\nThe package can be installed using composer.\n\n```bash\ncomposer require redbox/tracker\n```\n\nThe package will automatically register itself.\n\nPublish configuration file:\n\n```bash\nphp artisan vendor:publish --provider=\"Redbox\\Tracker\\Providers\\TrackerServiceProvider\"\n```\n\nInstall the database tables:\n\n```php\nphp artisan migrate\n```\n \nCreate a listener for new visitors in your project: \n\n```bash\nphp artisan make:listener NewVisitorListener\n```\n\nIn \u003ccode\u003eApp\\Providers\\EventServiceProvider\u003c/code\u003e and update the \u003ccode\u003e$listen\u003c/code\u003e array with:\n\n```php\n    protected $listen = [\n        // --\n        \\Redbox\\Tracker\\Events\\NewVisitorEvent::class =\u003e [\n            \\App\\Listeners\\NewVisitorListener::class,\n        ]\n        // --\n    ];\n```\n\nIn \u003ccode\u003eApp\\Listeners\\NewVisitorListener\u003c/code\u003e you now have access to the visitor data from \u003ccode\u003e$event-\u003evisitor\u003c/code\u003e.\n\n\n```php\n    /**\n     * Handle the event.\n     *\n     * @param  object  $event\n     * @return void\n     */\n    public function handle($event)\n    {\n        dd($event-\u003evisitor);\n    }\n```\n\n## Documentation\n\nFor more detailed information about how to use this package, I would like to send you to the [project wiki](https://github.com/johnnymast/redbox-tracker/wiki).\n\n## Disclaimer\n\nThis project is inspired by [Laravel Visitor Tracker](https://github.com/voerro/laravel-visitor-tracker). I created this version of this software because I need that functionality for a project of my own. \nThis means I want all my dependencies for that projects 'Inhouse'.\n\n\n## Author\n\nThis package is created and maintained by [Johnny Mast](mailto:mastjohnny@gmail.com). For feature requests or suggestions you could consider sending me an e-mail.\n\n## Enjoy\n\nOh and if you've come down this far, you might as well [follow me](https://twitter.com/mastjohnny) on Twitter. If you like this software please consider giving it a start rating on GitHub.\n \n\n## License\n \nMIT License\n\nCopyright (c) 2020 Johnny Mast\n\nPermission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the \"Software\"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:\n\nThe above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.\n\nTHE SOFTWARE IS PROVIDED \"AS IS\", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.\n\n  \n  \n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnymast%2Fredbox-tracker","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjohnnymast%2Fredbox-tracker","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjohnnymast%2Fredbox-tracker/lists"}