{"id":33956522,"url":"https://github.com/olegkoval/php-user_info","last_synced_at":"2025-12-12T20:37:35.964Z","repository":{"id":8412436,"uuid":"9997227","full_name":"olegkoval/php-user_info","owner":"olegkoval","description":"PHP class to get information about the site visitor (IP, reverse DNS, referer, OS, etc...)","archived":false,"fork":false,"pushed_at":"2017-08-01T22:50:52.000Z","size":6,"stargazers_count":29,"open_issues_count":0,"forks_count":21,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-10-25T18:42:03.852Z","etag":null,"topics":["php","userinfo","visitor-tracking","website-visitors"],"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/olegkoval.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":"2013-05-11T08:55:58.000Z","updated_at":"2025-09-24T12:17:45.000Z","dependencies_parsed_at":"2022-07-21T14:32:18.483Z","dependency_job_id":null,"html_url":"https://github.com/olegkoval/php-user_info","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/olegkoval/php-user_info","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegkoval%2Fphp-user_info","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegkoval%2Fphp-user_info/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegkoval%2Fphp-user_info/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegkoval%2Fphp-user_info/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/olegkoval","download_url":"https://codeload.github.com/olegkoval/php-user_info/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/olegkoval%2Fphp-user_info/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":27691149,"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","status":"online","status_checked_at":"2025-12-12T02:00:06.775Z","response_time":129,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["php","userinfo","visitor-tracking","website-visitors"],"created_at":"2025-12-12T20:37:34.947Z","updated_at":"2025-12-12T20:37:35.958Z","avatar_url":"https://github.com/olegkoval.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"php-user_info\n=============\n\nPHP class to get information about the website visitor (IP, reverse DNS, referer, OS, etc...)\n\nInstallation\n-----------\n\nUse Composer to install the library:\u003cbr/\u003e\n```\ncomposer require olegkoval/php-user-info\n```\n\nUsage\n-----\n\n1) Include file with UserInfo class in your project:\u003cbr/\u003e\n```\nrequire_once('\u003cpath_to_folder_which_contain_this_file\u003e/UserInfo.php')\n```\n\n2) Create UserInfo object:\u003cbr/\u003e\n```\n$UserInfo = new UserInfo();\n```\n\n3) Call methods to get info about the website visitor:\n\n* $UserInfo-\u003egetIP() - get IP of visitor\n* $UserInfo-\u003egetReverseDNS() - get Reverse DNS of visitor\n* $UserInfo-\u003egetCurrentURL() - get current URL\n* $UserInfo-\u003egetRefererURL() - get Referer URL\n* $UserInfo-\u003egetDevice() - get Device type (PC/iPad/iPhone/etc...) of visitor\n* $UserInfo-\u003egetOS() - get OS of visitor\n* $UserInfo-\u003egetBrowser() - get Browser type of visitor\n* $UserInfo-\u003egetLanguage() - get Browser Language of visitor\n* $UserInfo-\u003egetCountryCode() - get Country Code of visitor\n* $UserInfo-\u003egetCountryName() - get Country Name of visitor\n* $UserInfo-\u003egetRegionCode() - get Region Code of visitor\n* $UserInfo-\u003egetRegionName() - get Region Name of visitor\n* $UserInfo-\u003egetCity() - get City of visitor\n* $UserInfo-\u003egetZipcode() - get Zipcode of visitor\n* $UserInfo-\u003egetLatitude() - get Latitude of visitor\n* $UserInfo-\u003egetLongitude() - get Longitude of visitor\n* $UserInfo-\u003eisProxy() - check if connection was through proxy\n\nRequirements\n------------\n\n1) Browscap\u003cbr/\u003e\n[http://www.php.net/manual/en/misc.configuration.php#ini.browscap](http://www.php.net/manual/en/misc.configuration.php#ini.browscap)\n\n2) cURL\u003cbr/\u003e\n[http://php.net/manual/en/book.curl.php](http://php.net/manual/en/book.curl.php)\n\nCreator\n------------\n[Oleg Koval](http://github.com/olegkoval)\u003cbr/\u003e\n[@olegkoval](http://twitter.com/olegkoval)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegkoval%2Fphp-user_info","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Folegkoval%2Fphp-user_info","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Folegkoval%2Fphp-user_info/lists"}