{"id":22030893,"url":"https://github.com/farhaanaliii/useragent","last_synced_at":"2026-01-27T21:39:17.217Z","repository":{"id":233288919,"uuid":"786461937","full_name":"farhaanaliii/UserAgent","owner":"farhaanaliii","description":"UserAgent is a PHP library that provides methods to generate random User-Agent strings for different platforms, including Windows, Linux, and mobile devices.","archived":false,"fork":false,"pushed_at":"2024-11-18T10:39:31.000Z","size":10,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-05-07T12:44:49.399Z","etag":null,"topics":["php","scraping-useragents","scraping-websites","useragents","web-scraping"],"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/farhaanaliii.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"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":"2024-04-14T14:38:51.000Z","updated_at":"2024-11-18T10:39:34.000Z","dependencies_parsed_at":"2024-11-18T11:56:40.123Z","dependency_job_id":"44a17c30-ce05-45d2-845d-7baccbf15cdc","html_url":"https://github.com/farhaanaliii/UserAgent","commit_stats":null,"previous_names":["farhanaliofficial/useragent","farhaanaliii/useragent"],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/farhaanaliii/UserAgent","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhaanaliii%2FUserAgent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhaanaliii%2FUserAgent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhaanaliii%2FUserAgent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhaanaliii%2FUserAgent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/farhaanaliii","download_url":"https://codeload.github.com/farhaanaliii/UserAgent/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/farhaanaliii%2FUserAgent/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28823542,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-27T18:44:20.126Z","status":"ssl_error","status_checked_at":"2026-01-27T18:44:09.161Z","response_time":168,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.6:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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","scraping-useragents","scraping-websites","useragents","web-scraping"],"created_at":"2024-11-30T08:12:04.954Z","updated_at":"2026-01-27T21:39:17.202Z","avatar_url":"https://github.com/farhaanaliii.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# UserAgent\n\n[![GitHub stars](https://img.shields.io/github/stars/farhaanaliii/UserAgent.svg?style=flat-square)](https://github.com/farhaanaliii/UserAgent/stargazers)\n[![GitHub license](https://img.shields.io/github/license/farhaanaliii/UserAgent.svg?style=flat-square)](https://github.com/farhaanaliii/UserAgent/blob/main/LICENSE)\n[![Latest release](https://img.shields.io/github/v/release/farhaanaliii/UserAgent.svg?style=flat-square)](https://github.com/farhaanaliii/UserAgent/releases)\n\nUserAgent is a PHP library that provides methods to generate random User-Agent strings for different platforms, including Windows, Linux, and mobile devices.\n\n## Installation\n\nDownload and include it in your project.\n\n## Usage\n\nHere's how you can use the UserAgent library in your PHP code:\n\n```php\nrequire_once 'src/UserAgent.php';\n\n// Generate a random User-Agent string for Windows\n$userAgent = UserAgent::getWindows();\necho $userAgent;\n\n// Generate a random User-Agent string for Linux\n$userAgent = UserAgent::getLinux();\necho $userAgent;\n\n// Generate a random User-Agent string for mobile devices\n$userAgent = UserAgent::getMobile();\necho $userAgent;\n\n// Generate a random User-Agent string for any platform\n$userAgent = UserAgent::getRandom();\necho $userAgent;\n```\n## Ouput\n\n```\nMozilla/5.0 (Windows NT 6.3) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/120.0.6099.216 Safari/537.36\nMozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/122.0.6261.130 Safari/537.36\nMozilla/5.0 (SAMSUNG; SAMSUNG-GT-S7609/7048HIXC5; U; Bada/1.2; en-us) AppleWebKit/533.1 (KHTML, like Gecko) Dolfin/63 Mobile WVGA SMM-MMS/1.2.0 OPN-B\nMozilla/5.0 (iPhone 5 X) AppleWebKit/605.1.15 (KHTML, like Gecko) Version/8.1.1 Mobile/iPhone14,7 Safari/604.1\n```\n\n## Contributing\n\nContributions are welcome! If you find any issues or have suggestions for improvements, feel free to open an issue or create a pull request.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarhaanaliii%2Fuseragent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ffarhaanaliii%2Fuseragent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ffarhaanaliii%2Fuseragent/lists"}