Skip to content

Commit de0014a

Browse files
committed
Ready Super Stack for Packagist web-ui and first public polish.
Switch to nativephp/web-ui from Packagist, set LICENSE to Bifrost Technologies LLC, add CONTRIBUTING, wire NativeServiceProvider, and slim the mobile bundle with safe cleanup excludes.
1 parent d3d81f5 commit de0014a

8 files changed

Lines changed: 114 additions & 31 deletions

File tree

‎CONTRIBUTING.md‎

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# Contributing
2+
3+
Thanks for helping with Super Stack.
4+
5+
## Setup
6+
7+
1. Clone the repo and `composer install`
8+
2. Copy `.env.example` to `.env`, run `php artisan key:generate`, then `php artisan migrate`
9+
3. Create an admin user via the [Filament docs](https://filamentphp.com/docs/panels/installation#creating-a-user)
10+
4. For native work, follow [NativePHP Mobile v4](https://nativephp.com/docs/mobile/4/getting-started/installation) (`php artisan native:install`, then `php artisan native:run`)
11+
12+
Herd tip: the app should be available at `http://superstack.test`.
13+
14+
## What belongs where
15+
16+
| Surface | Path | Ships on device? |
17+
| --- | --- | --- |
18+
| SuperNative screens | `app/NativeComponents`, `resources/views/native`, `routes/web.php` | Yes |
19+
| Filament admin | `app/Providers/Filament`, `/admin` | No (excluded in `config/nativephp.php`) |
20+
| MCP | `app/Mcp`, `routes/ai.php` | No |
21+
| Sanctum API | `routes/api.php`, `config/sanctum.php` | No (wired, not demoed) |
22+
23+
Mobile bundle exclusions live in `nativephp.cleanup_exclude_files`. Do **not** exclude `vendor/*` packages from that list — stripping Composer packages after install breaks the on-device build.
24+
25+
## Pull requests
26+
27+
- Keep changes focused; prefer one concern per PR
28+
- Run `php artisan test` before opening a PR
29+
- Match existing code style (`pint` if you touch PHP)
30+
- Update the README when behavior or setup steps change
31+
- New NativePHP UI should use theme tokens (`text-theme-on-surface`, etc.) so light/dark both work
32+
33+
## Reporting issues
34+
35+
Include PHP / Laravel / NativePHP Mobile versions, platform (iOS/Android/web), and steps to reproduce. A simulator screenshot or log excerpt helps.
36+
37+
## License
38+
39+
By contributing, you agree your contributions are licensed under the MIT License (Copyright Bifrost Technologies LLC).

‎LICENSE‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
MIT License
22

3-
Copyright (c) 2026 NativePHP
3+
Copyright (c) 2026 Bifrost Technologies LLC
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎README.md‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ Open-source Laravel starter kit with **Filament**, **NativePHP SuperNative**, an
1515
| API auth | [`laravel/sanctum`](https://laravel.com/docs/sanctum) — wired, not demoed |
1616
| Mobile / SuperNative | [`nativephp/mobile`](https://nativephp.com/docs/mobile/4/getting-started/introduction) |
1717
| Native UI | [`nativephp/mobile-ui`](https://github.com/NativePHP/mobile-ui) |
18-
| Web UI (browser EDGE) | [`nativephp/mobile-web`](https://github.com/NativePHP/web-ui) (VCS: [NativePHP/web-ui](https://github.com/NativePHP/web-ui)) |
18+
| Web UI (browser EDGE) | [`nativephp/web-ui`](https://packagist.org/packages/nativephp/web-ui) |
1919
| MCP server | [`laravel/mcp`](https://laravel.com/docs/mcp) — no auth added |
2020

2121
## Requirements
@@ -75,4 +75,4 @@ See [Installation](https://nativephp.com/docs/mobile/4/getting-started/installat
7575

7676
## License
7777

78-
MIT
78+
MIT © Bifrost Technologies LLC. See [LICENSE](LICENSE) and [CONTRIBUTING](CONTRIBUTING.md).

‎app/NativeComponents/Home.php‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public function render(): View
2020
'Laravel' => \Illuminate\Foundation\Application::VERSION,
2121
'Filament' => \Composer\InstalledVersions::getPrettyVersion('filament/filament'),
2222
'NativePHP Mobile' => \Composer\InstalledVersions::getPrettyVersion('nativephp/mobile'),
23-
'Web UI' => \Composer\InstalledVersions::getPrettyVersion('nativephp/mobile-web'),
23+
'Web UI' => \Composer\InstalledVersions::getPrettyVersion('nativephp/web-ui'),
2424
'Laravel MCP' => \Composer\InstalledVersions::getPrettyVersion('laravel/mcp'),
2525
],
2626
]);

‎bootstrap/providers.php‎

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,17 @@
11
<?php
22

3-
return [
4-
App\Providers\AppServiceProvider::class,
5-
App\Providers\Filament\AdminPanelProvider::class,
3+
use App\Providers\AppServiceProvider;
4+
use App\Providers\Filament\AdminPanelProvider;
5+
use App\Providers\NativeServiceProvider;
6+
7+
$providers = [
8+
AppServiceProvider::class,
9+
NativeServiceProvider::class,
610
];
11+
12+
// Admin panel is web-only; the mobile bundle excludes app/Providers/Filament.
13+
if (! filter_var(env('NATIVEPHP_RUNNING', false), FILTER_VALIDATE_BOOLEAN)) {
14+
$providers[] = AdminPanelProvider::class;
15+
}
16+
17+
return $providers;

‎composer.json‎

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,6 @@
1212
"starter-kit"
1313
],
1414
"license": "MIT",
15-
"repositories": [
16-
{
17-
"type": "vcs",
18-
"url": "https://github.com/nativephp/web-ui"
19-
}
20-
],
2115
"require": {
2216
"php": "^8.4",
2317
"filament/filament": "^5.0",
@@ -27,7 +21,7 @@
2721
"laravel/tinker": "^3.0",
2822
"nativephp/mobile": "^4.4",
2923
"nativephp/mobile-ui": "^0.4.0",
30-
"nativephp/mobile-web": "@dev"
24+
"nativephp/web-ui": "^0.0.1@alpha"
3125
},
3226
"require-dev": {
3327
"fakerphp/faker": "^1.23",
@@ -90,9 +84,7 @@
9084
]
9185
},
9286
"extra": {
93-
"laravel": {
94-
"dont-discover": []
95-
}
87+
"laravel": []
9688
},
9789
"config": {
9890
"optimize-autoloader": true,

‎composer.lock‎

Lines changed: 31 additions & 14 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎config/nativephp.php‎

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -247,10 +247,34 @@
247247
*/
248248

249249
'cleanup_exclude_files' => [
250+
// Runtime temp / logs (defaults)
250251
'storage/framework/sessions',
251252
'storage/framework/cache',
252253
'storage/framework/testing',
253254
'storage/logs/laravel.log',
255+
256+
// Repo / docs / CI — not needed on device
257+
'docs',
258+
'.github',
259+
'.junie',
260+
'tests',
261+
'phpunit.xml',
262+
'vite.config.js',
263+
'package.json',
264+
'package-lock.json',
265+
'AGENTS.md',
266+
'CLAUDE.md',
267+
268+
// Filament admin + MCP + Sanctum API surface (web-only for this kit)
269+
'app/Providers/Filament',
270+
'app/Mcp',
271+
'routes/ai.php',
272+
'routes/api.php',
273+
'config/sanctum.php',
274+
'public/css/filament',
275+
'public/js/filament',
276+
'public/fonts/filament',
277+
'public/fonts-manifest.dev.json',
254278
],
255279

256280
/*

0 commit comments

Comments
 (0)