Skip to content

refactor!: rename namespace from hisorange to Pataar#13

Merged
pataar merged 1 commit into
6.xfrom
refactor/rename-namespace
Mar 20, 2026
Merged

refactor!: rename namespace from hisorange to Pataar#13
pataar merged 1 commit into
6.xfrom
refactor/rename-namespace

Conversation

@pataar
Copy link
Copy Markdown
Owner

@pataar pataar commented Mar 20, 2026

Summary

  • Renames root namespace from hisorange\BrowserDetect to Pataar\BrowserDetect across all source, test, and config files
  • Updates PSR-4 autoload mappings, Laravel auto-discovery config, and README code examples
  • Keeps original author attribution (composer.json author, README credits, historical issue links)
  • Adds UPGRADING.md documenting the breaking change with a cross-platform migration one-liner

Checklist

  • composer test passes
  • composer analyse passes (PHPStan level max, zero errors)
  • Test coverage remains at 100%
  • New detection methods have integration tests with real user agent strings
  • New boolean flags include exclusivity assertions (setting one flag doesn't trigger unrelated flags)

Test plan

  • All 79 tests pass after namespace rename
  • PHPStan level max, 0 errors
  • Verified only attribution references to hisorange remain (author email, GitHub links, credits)

@pataar pataar force-pushed the refactor/rename-namespace branch from 156655a to 5d71652 Compare March 20, 2026 12:29
BREAKING CHANGE: The root namespace has changed from
`hisorange\BrowserDetect` to `Pataar\BrowserDetect`. Update all `use`
statements, service provider references, and `vendor:publish` commands.

- Rename namespace in all source and test files
- Update PSR-4 autoload mappings in composer.json
- Update Laravel auto-discovery provider and alias
- Update code examples in README
- Replace "hisorange" keyword with "pataar" in composer.json
- Keep original author attribution in composer.json, README credits,
  and historical GitHub issue links
@pataar pataar force-pushed the refactor/rename-namespace branch from 5d71652 to dc41554 Compare March 20, 2026 12:30
@coveralls
Copy link
Copy Markdown

coveralls commented Mar 20, 2026

Coverage Status

coverage: 100.0%. remained the same
when pulling dc41554 on refactor/rename-namespace
into 6e821e7 on 6.x.

@pataar pataar merged commit c487e5b into 6.x Mar 20, 2026
12 checks passed
@pataar pataar deleted the refactor/rename-namespace branch March 20, 2026 12:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants