{"id":28514717,"url":"https://github.com/jcc/visitors","last_synced_at":"2025-10-30T05:36:36.089Z","repository":{"id":56953155,"uuid":"55131035","full_name":"jcc/visitors","owner":"jcc","description":null,"archived":false,"fork":false,"pushed_at":"2016-04-02T12:04:33.000Z","size":13,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-06-09T02:04:41.317Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jcc.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-03-31T07:51:29.000Z","updated_at":"2020-11-21T20:15:29.000Z","dependencies_parsed_at":"2022-08-21T04:10:20.865Z","dependency_job_id":null,"html_url":"https://github.com/jcc/visitors","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/jcc/visitors","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcc%2Fvisitors","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcc%2Fvisitors/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcc%2Fvisitors/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcc%2Fvisitors/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jcc","download_url":"https://codeload.github.com/jcc/visitors/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jcc%2Fvisitors/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":263702438,"owners_count":23498502,"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":[],"created_at":"2025-06-09T02:04:39.917Z","updated_at":"2025-10-30T05:36:35.970Z","avatar_url":"https://github.com/jcc.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# visitors\n\nmodify with https://github.com/weboAp/Visitor\n\n\n#Step 1\n\nJust add to composer.json file:\n```json\n{\n    \"require\": {\n        \"cjjian/visitor\": \"dev-master\"\n    }\n}\n```\nthen run\n```\ncomposer update\n```\n\n#Step 2\n\nAdd\n`Cjjian\\Visitors\\VisitorServiceProvider::class`\nto the list of service providers in app/config/app.php\n\n#Step 3\n\nMigrate the Visitor Table Run\n```\nphp artisan vendor:publish\n```\n\nthen\n\n```\nphp artisan migrate\n```\n\nto migrate visitor table\n\nthe config.php will be copied to /config at the same time\n\n/config/visitor.php\ncostumize it accordinly\n\n#Step 5 (Optional)\n\nVisit http://dev.maxmind.com/geoip/geoip2/geolite2/\n\ndownload GeoLite2-City.mmdb\n\nplace it in (create the geo directory)\n\nstorage/geo/\nor where ever you want just adjust the package config to reflect the new location, it's used to geo locate visitors\n\n#Usage\n\n```php\nVisitor::log();   //log in db visitor ip, geo location, hit counter\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcc%2Fvisitors","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjcc%2Fvisitors","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjcc%2Fvisitors/lists"}