{"id":13398206,"url":"https://github.com/serbanghita/Mobile-Detect","last_synced_at":"2025-03-14T02:30:47.708Z","repository":{"id":4488487,"uuid":"5627682","full_name":"serbanghita/Mobile-Detect","owner":"serbanghita","description":"Mobile_Detect is a lightweight PHP class for detecting mobile devices (including tablets). It uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.","archived":false,"fork":false,"pushed_at":"2024-10-20T12:11:14.000Z","size":4360,"stargazers_count":10543,"open_issues_count":21,"forks_count":2677,"subscribers_count":595,"default_branch":"4.8.x","last_synced_at":"2024-10-29T19:21:02.223Z","etag":null,"topics":["device-detection","mobile-detect","mobile-redirects","php","user-agents"],"latest_commit_sha":null,"homepage":"http://mobiledetect.net","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/serbanghita.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":".github/FUNDING.yml","license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":"SECURITY.md","support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"serbanghita","custom":["https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=mobiledetectlib%40gmail%2ecom\u0026lc=US\u0026item_name=Mobile%20Detect\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted"]}},"created_at":"2012-08-31T10:58:16.000Z","updated_at":"2024-10-29T09:25:06.000Z","dependencies_parsed_at":"2024-01-02T12:24:38.045Z","dependency_job_id":"e51ffc12-32e5-4072-9639-5aba34b6bd0c","html_url":"https://github.com/serbanghita/Mobile-Detect","commit_stats":{"total_commits":680,"total_committers":116,"mean_commits":5.862068965517241,"dds":0.3735294117647059,"last_synced_commit":"217365b008a53a6473d1c4b1a6665f0123412f3d"},"previous_names":[],"tags_count":86,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serbanghita%2FMobile-Detect","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serbanghita%2FMobile-Detect/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serbanghita%2FMobile-Detect/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serbanghita%2FMobile-Detect/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/serbanghita","download_url":"https://codeload.github.com/serbanghita/Mobile-Detect/tar.gz/refs/heads/4.8.x","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":242776238,"owners_count":20183359,"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":["device-detection","mobile-detect","mobile-redirects","php","user-agents"],"created_at":"2024-07-30T19:00:20.185Z","updated_at":"2025-03-14T02:30:47.333Z","avatar_url":"https://github.com/serbanghita.png","language":"PHP","funding_links":["https://github.com/sponsors/serbanghita","https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=mobiledetectlib%40gmail%2ecom\u0026lc=US\u0026item_name=Mobile%20Detect\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted"],"categories":["PHP","Table of Contents","目录","📊 Data \u0026 Analytics","后端开发框架及项目","字符串( Strings )","类库","字符串 Strings"],"sub_categories":["Strings","字符串 Strings","PHP开发","未归类"],"readme":"![Mobile Detect](http://demo.mobiledetect.net/logo-github.png)\n\nMobileDetect, PHP mobile detection class\n========================================\n\n![Workflow status](https://img.shields.io/github/actions/workflow/status/serbanghita/Mobile-Detect/4.8.x-test.yml?style=flat-square)\n![Latest tag](https://img.shields.io/github/v/tag/serbanghita/Mobile-Detect?filter=4.*\u0026style=flat-square)\n![Monthly Downloads](https://img.shields.io/packagist/dm/mobiledetect/mobiledetectlib?style=flat-square\u0026label=installs)\n![Total Downloads](https://img.shields.io/packagist/dt/mobiledetect/mobiledetectlib?style=flat-square\u0026label=installs)\n![MIT License](https://img.shields.io/packagist/l/mobiledetect/mobiledetectlib?style=flat-square)\n\nMobile Detect is a lightweight PHP class for detecting mobile devices (including tablets).\nIt uses the User-Agent string combined with specific HTTP headers to detect the mobile environment.\n\n## Before you install\n\nThere are three versions of MobileDetect. \n`4.8.x` is the main version that is ALWAYS going to be updated first.\n\n| Version | Tests                                                                                                                                                                                                 | Namespace | Code                                                             | PHP Version | Status               |\n|---------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|-----------|------------------------------------------------------------------|-------------|----------------------|\n| 2.8.x   | [![5x](https://img.shields.io/github/actions/workflow/status/serbanghita/Mobile-Detect/2.8.x-test.yml?style=flat-square)](https://github.com/serbanghita/Mobile-Detect/actions/workflows/test.yml)  | `\\Mobile_Detect`       | [2.8](https://github.com/serbanghita/Mobile-Detect/tree/2.8.x)   | \\\u003e=5.0,\u003c7.0 | Deprecated           |\n| 3.74.x  | [![7x](https://img.shields.io/github/actions/workflow/status/serbanghita/Mobile-Detect/3.74.x-test.yml?style=flat-square)](https://github.com/serbanghita/Mobile-Detect/actions/workflows/test.yml) | `Detection\\MobileDetect`        | [3.74](https://github.com/serbanghita/Mobile-Detect/tree/3.74.x) | \\\u003e=7.4,\u003c8.0 | LTS                  |\n| 4.8.x   | [![7x](https://img.shields.io/github/actions/workflow/status/serbanghita/Mobile-Detect/4.8.x-test.yml?style=flat-square)](https://github.com/serbanghita/Mobile-Detect/actions/workflows/test.yml)  | `Detection\\MobileDetect`        | [4.8](https://github.com/serbanghita/Mobile-Detect/tree/4.8.x)   | \\\u003e=8.0      | Current, **Recommended** |\n\n## 🤝 Supporting\n\nIf you are using Mobile Detect open-source package in your production apps, in presentation demos, hobby projects, school projects or so, you can sponsor my work by [donating a small amount :+1:](https://www.paypal.com/cgi-bin/webscr?cmd=_donations\u0026business=mobiledetectlib%40gmail%2ecom\u0026lc=US\u0026item_name=Mobile%20Detect\u0026currency_code=USD\u0026bn=PP%2dDonationsBF%3abtn_donate_SM%2egif%3aNonHosted). I'm currently paying for hosting and spend a lot of my family time to maintain the project and planning the future releases. I would highly appreciate any money donations.\n\nSpecial thanks to:\n\n* the community :+1: for donations, submitting patches and issues\n* the JetBrains team for the open-source licenses for [PHPStorm IDE](https://www.jetbrains.com/phpstorm/)\n* [Gitbook](https://www.gitbook.com/) team for the open-source license for their technical documentation tool.\n\n\n## 📃 Documentation\n\nThe entire documentation is available on Gitbook: [https://docs.mobiledetect.net](https://docs.mobiledetect.net)\n\n## 👾 Demo\n\nPoint your device to:\n[https://demo.mobiledetect.net](https://demo.mobiledetect.net)\n\n## 🐛 Testing\n\n``` bash\nvendor/bin/phpunit -v -c tests/phpunit.xml --coverage-html .coverage\n```\n\n## 🤝 Contributing\n\nPlease see the [Contribute guide](https://mobile-detect.gitbook.io/home/contribute) for details.\n\n## 🔒  Security\n\nIf you discover any security related issues, please email serbanghita@gmail.com instead of using the issue tracker.\n\n## 🎉 Credits\n\n- [Serban Ghita](https://github.com/serbanghita)\n- [All Contributors](https://mobile-detect.gitbook.io/home/credits)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserbanghita%2FMobile-Detect","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fserbanghita%2FMobile-Detect","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fserbanghita%2FMobile-Detect/lists"}