{"id":15028928,"url":"https://github.com/serbanghita/mobile-detect","last_synced_at":"2025-09-09T20:43:44.225Z","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":"2025-04-28T08:14:38.000Z","size":4392,"stargazers_count":10656,"open_issues_count":30,"forks_count":2651,"subscribers_count":581,"default_branch":"4.8.x","last_synced_at":"2025-09-07T23:24:51.561Z","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,"zenodo":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":"2025-09-06T18:02:50.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":89,"template":false,"template_full_name":null,"purl":"pkg:github/serbanghita/Mobile-Detect","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","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/serbanghita%2FMobile-Detect/sbom","scorecard":{"id":811942,"data":{"date":"2025-08-11","repo":{"name":"github.com/serbanghita/Mobile-Detect","commit":"ffafcc0d659e7794f5b4ba611087de1af684f3c2"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":3.1,"checks":[{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Code-Review","score":0,"reason":"Found 2/30 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Security-Policy","score":4,"reason":"security policy file detected","details":["Info: security policy file detected: SECURITY.md:1","Warn: no linked content found","Info: Found disclosure, vulnerability, and/or timelines in security policy: SECURITY.md:1","Info: Found text in security policy: SECURITY.md:1"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"Pinned-Dependencies","score":0,"reason":"dependency not pinned by hash detected -- score normalized to 0","details":["Warn: containerImage not pinned by hash: docker/Dockerfile.setup:1","Info:   0 out of   1 containerImage dependencies pinned"],"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"Vulnerabilities","score":10,"reason":"0 existing vulnerabilities detected","details":null,"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: MIT License: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch '4.8.x'","Warn: branch protection not enabled for branch '3.74.x'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 4 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}}]},"last_synced_at":"2025-08-23T13:23:55.386Z","repository_id":4488487,"created_at":"2025-08-23T13:23:55.386Z","updated_at":"2025-08-23T13:23:55.386Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":274358877,"owners_count":25270681,"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-09-09T02:00:10.223Z","response_time":80,"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":["device-detection","mobile-detect","mobile-redirects","php","user-agents"],"created_at":"2024-09-24T20:09:22.839Z","updated_at":"2025-09-09T20:43:44.195Z","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":[],"sub_categories":[],"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"}