Skip to content

refactor(mobile-ui)!: rename package to nativephp/mobile-ui#8

Merged
simonhamp merged 3 commits into
feat/webview-elementfrom
chore/rename-mobile-ui
Jul 18, 2026
Merged

refactor(mobile-ui)!: rename package to nativephp/mobile-ui#8
simonhamp merged 3 commits into
feat/webview-elementfrom
chore/rename-mobile-ui

Conversation

@simonhamp

Copy link
Copy Markdown
Member

What

Renames the package and PHP namespace to match the repo's new home:

  • Package: nativephp/native-uinativephp/mobile-ui
  • Namespace: Nativephp\NativeUiNative\Mobile\UI — brings the plugin under the framework's Native\Mobile namespace root, alongside Native\Mobile\Edge from nativephp/mobile

90 files changed: every class in src/ and tests/, the PSR-4 mapping + provider FQCN in composer.json, element/blade FQCNs and the plugin name in nativephp.json, docs, and namespace mentions in Swift/Kotlin comments (comment-only on the native side — no code changes there).

Also updates composer.json metadata: description, type: nativephp-plugin, authors, funding, and pins nativephp/mobile to ^4.0.

Intentionally unchanged

These are separate identities with their own blast radius, left for follow-ups if wanted:

  • Manifest bridge namespace "NativeUI" (drives wire naming like NativeUI.Theme.Set)
  • Config surface: config/native-ui.php, the native-ui config key, native-ui-config / native-ui-layouts publish tags
  • NativeUIServiceProvider class name and artisan command signatures
  • Kotlin package com.nativephp.plugins.native_ui and Swift NativeUI* renderer prefixes

Verification

  • composer validate clean
  • Optimized autoload dump: all 70 src/ classes resolve under the new PSR-4 prefix, zero mismatch warnings
  • php -l passes on every tracked PHP file
  • No leftovers of Nativephp, NativeUi, or nativephp/native-ui anywhere in the tree

Note

Stacked on #7 (feat/webview-element) — merge that first; GitHub will retarget this to main when the base branch is deleted.

🤖 Generated with Claude Code

simonhamp and others added 3 commits July 15, 2026 16:53
Package renamed nativephp/native-ui -> nativephp/mobile-ui and the PHP
namespace Nativephp\NativeUi -> Native\Mobile\UI, matching the repo's
new home and bringing the plugin under the framework's Native\Mobile
namespace root (alongside Native\Mobile\Edge from nativephp/mobile).

Touches every class in src/, the PSR-4 mapping + provider FQCN in
composer.json, element/blade FQCNs and the plugin name in nativephp.json,
tests, docs, and namespace mentions in native-side comments. Platform
identifiers are intentionally unchanged: the Kotlin package
(com.nativephp.plugins.native_ui), Swift NativeUI* renderer names, the
manifest bridge namespace ("NativeUI"), and the native-ui config
key/publish tags.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
The framework's PluginDiscovery and PluginValidateCommand both require
type "nativephp-plugin" exactly; the old "nativephp-ui-plugin" value
this test asserted would never be discovered.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
@simonhamp
simonhamp merged commit b4a8d3b into feat/webview-element Jul 18, 2026
2 checks passed
@simonhamp
simonhamp deleted the chore/rename-mobile-ui branch July 18, 2026 18:46
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.

1 participant