• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

pataar / browser-detect
100%
main: 100%

Build:
Build:
LAST BUILD BRANCH: 6.x
DEFAULT BRANCH: main
Repo Added 10 Feb 2024 10:43AM UTC
Files 14
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

LAST BUILD ON BRANCH stable
branch: stable
CHANGE BRANCH
x
Reset
  • stable
  • 6.x
  • dependabot/github_actions/actions/cache-5
  • dependabot/github_actions/actions/checkout-6
  • feat/extended-detection
  • feat/performance-improvements
  • feat/phpstan
  • feat/rewrite-readme
  • fix/code-quality-improvements
  • fix/phpunit-13-data-providers
  • general-scan
  • main
  • patch-1
  • refactor/reduce-dependencies
  • refactor/rename-namespace
  • remove_pipeline

20 Mar 2026 11:51AM UTC coverage: 100.0%. Remained the same
23341586198

push

github

web-flow
refactor: code quality improvements (#12)

* refactor: code quality improvements

- DeviceDetector: call skipBotDetection() once on init, not every request
- DeviceDetector: remove dead $pieces array and version string from
  parseVersion() (always overwritten by BrowserDetect::buildVersionAndName)
- DeviceDetector: inline $device array, lazy-fetch brand/model only
  when device type is present
- DeviceDetector: tighten parseVersion() return type to array<string, int>
- BrowserDetect: simplify device resolution to only write changed flags
- BrowserDetect: use word-boundary regex for IE match to prevent
  false positives on browser names containing 'ie' as a substring
- BrowserDetect: pass agent string directly to detectIsInApp() instead
  of re-fetching from payload
- BrowserDetect: consolidate in-app token checks into const array + loop
- Result: replace stringly-typed deviceType() magic dispatch with
  explicit property checks

* chore: add issue and pull request templates

- Bug report template with UA string, expected/actual behaviour, version
- Feature request template with description, use case, example UAs
- PR template with checklist enforcing 100% test coverage

31 of 31 new or added lines in 3 files covered. (100.0%)

248 of 248 relevant lines covered (100.0%)

26.67 hits per line

Relevant lines Covered
Build:
Build:
248 RELEVANT LINES 248 COVERED LINES
26.67 HITS PER LINE
Source Files on stable
  • Tree
  • List 16
  • Changed 3
  • Source Changed 0
  • Coverage Changed 3
Coverage ∆ File Lines Relevant Covered Missed Hits/Line

Recent builds

Builds Branch Commit Type Ran Committer Via Coverage
23341586198 stable refactor: code quality improvements (#12) * refactor: code quality improvements - DeviceDetector: call skipBotDetection() once on init, not every request - DeviceDetector: remove dead $pieces array and version string from parseVersion() (alway... push 20 Mar 2026 11:51AM UTC web-flow github
100.0
23341579532 stable refactor: code quality improvements (#12) * refactor: code quality improvements - DeviceDetector: call skipBotDetection() once on init, not every request - DeviceDetector: remove dead $pieces array and version string from parseVersion() (alway... push 20 Mar 2026 11:51AM UTC web-flow github
100.0
23339486656 stable docs: update README to reflect removed dependencies Remove ua-parser and mobiledetect from credits, update library count from four to two, and add PHPStan CI badge. push 20 Mar 2026 10:47AM UTC pataar github
100.0
23339219687 stable Add PHPStan at max level with zero baseline errors (#10) * feat: add PHPStan at max level with zero baseline errors - Add phpstan/phpstan as dev dependency with `composer analyse` script - Add GitHub Actions workflow for static analysis - Fix al... push 20 Mar 2026 10:40AM UTC web-flow github
100.0
23338571286 stable chore(ci): bump actions/checkout from 4 to 6 (#9) Bumps [actions/checkout](https://github.com/actions/checkout) from 4 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/ma... push 20 Mar 2026 10:20AM UTC web-flow github
100.0
23338566263 stable chore(ci): bump actions/cache from 4 to 5 (#8) Bumps [actions/cache](https://github.com/actions/cache) from 4 to 5. - [Release notes](https://github.com/actions/cache/releases) - [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)... push 20 Mar 2026 10:20AM UTC web-flow github
100.0
23338408268 stable refactor: remove ua-parser and mobiledetect dependencies (#7) * refactor: remove ua-parser and mobiledetect dependencies DeviceDetector already covers all browser, OS, and device detection that UAParser and MobileDetect provided. Removing these ... push 20 Mar 2026 10:15AM UTC web-flow github
100.0
23338011246 stable docs: add CONTRIBUTING.md and configure Dependabot Add contributing guide with conventional commits reference and dev workflow instructions. Configure Dependabot for weekly Composer and GitHub Actions updates with conventional commit prefixes. push 20 Mar 2026 10:04AM UTC pataar github
100.0
23337965295 stable chore: add .gitattributes export-ignore rules to reduce dist size Remove stale .coveralls.yml (referenced Travis CI, unused by GitHub Actions workflow) and clean up .gitignore (remove misplaced export-ignore suffixes). Add .gitattributes to exclu... push 20 Mar 2026 10:03AM UTC pataar github
100.0
23337582053 stable docs: rewrite README for forked repository (#6) - Add fork notice crediting original author (hisorange) - Remove old version matrix (1.x-4.x) and unsupported PHP/Laravel versions - Remove links to external websites - Reorganize API reference into... push 20 Mar 2026 09:51AM UTC web-flow github
100.0
See All Builds (57)
  • Repo on GitHub
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc