commit 75299b723d0f0e764e56e7db7072710a654dd8e4 Author: TheOnlyMace <0815cracky@gmail.com> Date: Sun May 17 13:26:14 2026 +0200 initial commit diff --git a/.editorconfig b/.editorconfig new file mode 100644 index 0000000..6df8428 --- /dev/null +++ b/.editorconfig @@ -0,0 +1,18 @@ +root = true + +[*] +charset = utf-8 +end_of_line = lf +indent_size = 4 +indent_style = space +insert_final_newline = true +trim_trailing_whitespace = true + +[*.md] +trim_trailing_whitespace = false + +[*.{yml,yaml}] +indent_size = 2 + +[{compose,docker-compose}.{yml,yaml}] +indent_size = 4 diff --git a/.env.example b/.env.example new file mode 100644 index 0000000..ee55f94 --- /dev/null +++ b/.env.example @@ -0,0 +1,138 @@ +APP_NAME="HexaHost Panel" +APP_ENV=local +APP_KEY= +APP_DEBUG=true +APP_URL=https://panel.hexahost.de + +APP_LOCALE=de +APP_FALLBACK_LOCALE=de +APP_FAKER_LOCALE=de_DE + +APP_MAINTENANCE_DRIVER=file + +BCRYPT_ROUNDS=12 + +LOG_CHANNEL=stack +LOG_STACK=single +LOG_DEPRECATIONS_CHANNEL=null +LOG_LEVEL=debug + +# --- Datenbank (Produktion: mariadb/mysql auf Plesk) --- +DB_CONNECTION=sqlite +# DB_CONNECTION=mariadb +# DB_HOST=127.0.0.1 +# DB_PORT=3306 +# DB_DATABASE=hexahost_panel +# DB_USERNAME=panel_user +# DB_PASSWORD= + +SESSION_DRIVER=database +SESSION_LIFETIME=120 +SESSION_ENCRYPT=false +SESSION_PATH=/ +SESSION_DOMAIN=null + +BROADCAST_CONNECTION=log +FILESYSTEM_DISK=local +QUEUE_CONNECTION=database + +CACHE_STORE=database + +REDIS_CLIENT=phpredis +REDIS_HOST=127.0.0.1 +REDIS_PASSWORD=null +REDIS_PORT=6379 + +MAIL_MAILER=log +MAIL_HOST=127.0.0.1 +MAIL_PORT=2525 +MAIL_USERNAME=null +MAIL_PASSWORD=null +MAIL_FROM_ADDRESS="panel@hexahost.de" +MAIL_FROM_NAME="${APP_NAME}" + +VITE_APP_NAME="${APP_NAME}" + +# --- Proxmox VE --- +PROXMOX_URL=https://hyperion.rz-wob.hexahost.de:8006 +PROXMOX_CONSOLE_WS_URL=https://hyperion.rz-wob.hexahost.de:8006 +PROXMOX_TOKEN=user@pam!tokenid=secret +PROXMOX_NODE=hyperion +PROXMOX_STORAGE=vmdata +PROXMOX_BRIDGE=vmbr0 +PROXMOX_PUBLIC_BRIDGE=vmbr1 +PROXMOX_ISO_STORAGE=ISO +PROXMOX_ISO_DEVICE=ide2 +PROXMOX_BACKUP_STORAGE=inett-PBS +PROXMOX_TEMPLATE_VMID= +PROXMOX_TIMEOUT=120 +PROXMOX_VERIFY_SSL=true + +# --- Privates VM-Netz 10.32.0.0/24 --- +HOSTING_GATEWAY=10.32.0.1 +HOSTING_NETWORK_CIDR=24 +HOSTING_IP_POOL_START=10.32.0.10 +HOSTING_IP_POOL_END=10.32.0.254 + +# --- Öffentliche IPs (ohne Traefik) --- +HOSTING_PUBLIC_POOL_START=185.45.149.246 +HOSTING_PUBLIC_POOL_END=185.45.149.252 +HOSTING_PUBLIC_GATEWAY=185.45.149.241 +HOSTING_PUBLIC_CIDR=28 + +# --- VMID-Pool --- +VMID_RANGE_START=2000 +VMID_RANGE_END=2999 +VMID_RELEASE_AFTER_HOURS=48 + +# --- Snapshots / Backups / ISO --- +SNAPSHOT_RETENTION_HOURS=48 +SNAPSHOT_AUTO_BEFORE_DESTRUCTIVE=true +MAX_BACKUPS_PER_CUSTOMER=4 +BACKUPS_ENABLED=false + +ISO_UPLOAD_ENABLED=true +ISO_UPLOAD_MAX_PER_CUSTOMER=1 +ISO_UPLOAD_MAX_SIZE_MB=10240 +ISO_UPLOAD_RETENTION_HOURS=48 + +# --- WHMCS API --- +WHMCS_ENABLED=true +WHMCS_API_SECRET= +WHMCS_ALLOWED_IPS= +WHMCS_REPLAY_WINDOW=300 + +# --- Plesk DNS --- +PLESK_URL=https://plesk.example.com:8443 +PLESK_USER=admin +PLESK_PASS= +PLESK_BASE_DOMAIN=hexahost.de +PLESK_TIMEOUT=30 +PLESK_VERIFY_SSL=true +PLESK_MAIL_ENABLED=true + +# --- Traefik (File Provider) --- +TRAEFIK_DYNAMIC_CONFIG_PATH=/etc/traefik/dynamic/customers.yaml +TRAEFIK_ENTRYPOINT=websecure +TRAEFIK_CERT_RESOLVER=letsencrypt +TRAEFIK_BACKEND_PORT=80 +TRAEFIK_PUBLIC_IP=185.45.149.98 +TRAEFIK_RELOAD_COMMAND="docker exec traefik kill -HUP 1" + +# --- Sicherheit / Konsole --- +ADMIN_2FA_REQUIRED=true +LOGIN_MAX_ATTEMPTS=5 +VM_POWER_RATE_LIMIT=20 + +CONSOLE_PROXY_ENABLED=false +CONSOLE_PROXY_WS_URL=wss://panel.hexahost.de/ws/vm +CONSOLE_PROXY_SECRET= +CONSOLE_PROXY_VALIDATE_URL=https://panel.hexahost.de/api/console/validate + +# --- Benachrichtigungen --- +HOSTING_WEBHOOK_URL= + +# --- Standard-Ressourcen neuer VMs --- +HOSTING_DEFAULT_CPU=2 +HOSTING_DEFAULT_RAM=2048 +HOSTING_DEFAULT_DISK=32 diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..fcb21d3 --- /dev/null +++ b/.gitattributes @@ -0,0 +1,11 @@ +* text=auto eol=lf + +*.blade.php diff=html +*.css diff=css +*.html diff=html +*.md diff=markdown +*.php diff=php + +/.github export-ignore +CHANGELOG.md export-ignore +.styleci.yml export-ignore diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..7be55e2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,27 @@ +*.log +.DS_Store +.env +.env.backup +.env.production +.phpactor.json +.phpunit.result.cache +/.codex +/.cursor/ +/.idea +/.nova +/.phpunit.cache +/.vscode +/.zed +/auth.json +/node_modules +/public/build +/public/fonts-manifest.dev.json +/public/hot +/public/storage +/storage/*.key +/storage/pail +/vendor +_ide_helper.php +Homestead.json +Homestead.yaml +Thumbs.db diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..495a6af --- /dev/null +++ b/.npmrc @@ -0,0 +1,2 @@ +ignore-scripts=true +audit=true diff --git a/README.md b/README.md new file mode 100644 index 0000000..5ad1377 --- /dev/null +++ b/README.md @@ -0,0 +1,58 @@ +

Laravel Logo

+ +

+Build Status +Total Downloads +Latest Stable Version +License +

+ +## About Laravel + +Laravel is a web application framework with expressive, elegant syntax. We believe development must be an enjoyable and creative experience to be truly fulfilling. Laravel takes the pain out of development by easing common tasks used in many web projects, such as: + +- [Simple, fast routing engine](https://laravel.com/docs/routing). +- [Powerful dependency injection container](https://laravel.com/docs/container). +- Multiple back-ends for [session](https://laravel.com/docs/session) and [cache](https://laravel.com/docs/cache) storage. +- Expressive, intuitive [database ORM](https://laravel.com/docs/eloquent). +- Database agnostic [schema migrations](https://laravel.com/docs/migrations). +- [Robust background job processing](https://laravel.com/docs/queues). +- [Real-time event broadcasting](https://laravel.com/docs/broadcasting). + +Laravel is accessible, powerful, and provides tools required for large, robust applications. + +## Learning Laravel + +Laravel has the most extensive and thorough [documentation](https://laravel.com/docs) and video tutorial library of all modern web application frameworks, making it a breeze to get started with the framework. + +In addition, [Laracasts](https://laracasts.com) contains thousands of video tutorials on a range of topics including Laravel, modern PHP, unit testing, and JavaScript. Boost your skills by digging into our comprehensive video library. + +You can also watch bite-sized lessons with real-world projects on [Laravel Learn](https://laravel.com/learn), where you will be guided through building a Laravel application from scratch while learning PHP fundamentals. + +## Agentic Development + +Laravel's predictable structure and conventions make it ideal for AI coding agents like Claude Code, Cursor, and GitHub Copilot. Install [Laravel Boost](https://laravel.com/docs/ai) to supercharge your AI workflow: + +```bash +composer require laravel/boost --dev + +php artisan boost:install +``` + +Boost provides your agent 15+ tools and skills that help agents build Laravel applications while following best practices. + +## Contributing + +Thank you for considering contributing to the Laravel framework! The contribution guide can be found in the [Laravel documentation](https://laravel.com/docs/contributions). + +## Code of Conduct + +In order to ensure that the Laravel community is welcoming to all, please review and abide by the [Code of Conduct](https://laravel.com/docs/contributions#code-of-conduct). + +## Security Vulnerabilities + +If you discover a security vulnerability within Laravel, please send an e-mail to Taylor Otwell via [taylor@laravel.com](mailto:taylor@laravel.com). All security vulnerabilities will be promptly addressed. + +## License + +The Laravel framework is open-sourced software licensed under the [MIT license](https://opensource.org/licenses/MIT). diff --git a/app/Console/Commands/CollectVmMetricsCommand.php b/app/Console/Commands/CollectVmMetricsCommand.php new file mode 100644 index 0000000..6ebc1f1 --- /dev/null +++ b/app/Console/Commands/CollectVmMetricsCommand.php @@ -0,0 +1,21 @@ +collectAll(); + $this->info("Metriken für {$count} VM(s) erfasst."); + + return self::SUCCESS; + } +} diff --git a/app/Console/Commands/PruneSnapshotsCommand.php b/app/Console/Commands/PruneSnapshotsCommand.php new file mode 100644 index 0000000..7b175ea --- /dev/null +++ b/app/Console/Commands/PruneSnapshotsCommand.php @@ -0,0 +1,21 @@ +pruneExpired(); + $this->info("{$count} Snapshot(s) bereinigt."); + + return self::SUCCESS; + } +} diff --git a/app/Console/Commands/PurgeExpiredIsoUploadsCommand.php b/app/Console/Commands/PurgeExpiredIsoUploadsCommand.php new file mode 100644 index 0000000..aa4a603 --- /dev/null +++ b/app/Console/Commands/PurgeExpiredIsoUploadsCommand.php @@ -0,0 +1,35 @@ +where('expires_at', '<=', now()) + ->get(); + + foreach ($expired as $upload) { + try { + // Proxmox delete via storage API when upload service is wired + Log::info('ISO upload expired', ['volid' => $upload->volid, 'user_id' => $upload->user_id]); + } catch (\Throwable $e) { + Log::warning('ISO purge failed', ['id' => $upload->id, 'error' => $e->getMessage()]); + } + $upload->delete(); + } + + $this->info("Purged {$expired->count()} expired ISO upload(s)."); + + return self::SUCCESS; + } +} diff --git a/app/Console/Commands/RebuildTraefikRoutesCommand.php b/app/Console/Commands/RebuildTraefikRoutesCommand.php new file mode 100644 index 0000000..7a9c686 --- /dev/null +++ b/app/Console/Commands/RebuildTraefikRoutesCommand.php @@ -0,0 +1,32 @@ +where('status', 'active') + ->whereNotNull('ip_address') + ->get(); + + $traefik->rebuildAllRoutes($customers); + + if ($this->option('reload')) { + $traefik->reload(); + } + + $this->info("Rebuilt routes for {$customers->count()} active customers."); + + return self::SUCCESS; + } +} diff --git a/app/Console/Commands/ReleaseVmidReservationsCommand.php b/app/Console/Commands/ReleaseVmidReservationsCommand.php new file mode 100644 index 0000000..3eea824 --- /dev/null +++ b/app/Console/Commands/ReleaseVmidReservationsCommand.php @@ -0,0 +1,21 @@ +releaseDue(); + $this->info("Released {$count} VMID reservation(s)."); + + return self::SUCCESS; + } +} diff --git a/app/Enums/IpPoolType.php b/app/Enums/IpPoolType.php new file mode 100644 index 0000000..5c8ca0b --- /dev/null +++ b/app/Enums/IpPoolType.php @@ -0,0 +1,17 @@ + 'Privat (intern)', + self::Public => 'Öffentlich', + }; + } +} diff --git a/app/Enums/UserRole.php b/app/Enums/UserRole.php new file mode 100644 index 0000000..ca2deb6 --- /dev/null +++ b/app/Enums/UserRole.php @@ -0,0 +1,17 @@ + 'Administrator', + self::Customer => 'Kunde', + }; + } +} diff --git a/app/Enums/VmPowerAction.php b/app/Enums/VmPowerAction.php new file mode 100644 index 0000000..6eefde0 --- /dev/null +++ b/app/Enums/VmPowerAction.php @@ -0,0 +1,33 @@ + 'Starten', + self::Shutdown => 'Herunterfahren (ACPI)', + self::Stop => 'Stoppen (Force)', + self::Reboot => 'Neustart', + self::Reset => 'Reset (Hard)', + }; + } + + public function requiresRunning(): bool + { + return in_array($this, [self::Shutdown, self::Stop, self::Reboot, self::Reset], true); + } + + public function requiresStopped(): bool + { + return $this === self::Start; + } +} diff --git a/app/Exceptions/Hosting/PleskException.php b/app/Exceptions/Hosting/PleskException.php new file mode 100644 index 0000000..6f012ea --- /dev/null +++ b/app/Exceptions/Hosting/PleskException.php @@ -0,0 +1,7 @@ +header('X-Console-Proxy-Secret') !== $secret) { + return response()->json(['error' => 'forbidden'], 403); + } + + $data = \Illuminate\Support\Facades\Cache::get($management->consoleCacheKey($token)); + if (! $data) { + return response()->json(['error' => 'expired'], 410); + } + + return response()->json([ + 'proxmox_ws_url' => $data['ws_url'], + 'vmid' => $data['vmid'], + 'node' => $data['node'], + ]); + } +} diff --git a/app/Http/Controllers/Api/WhmcsServiceController.php b/app/Http/Controllers/Api/WhmcsServiceController.php new file mode 100644 index 0000000..5b979b3 --- /dev/null +++ b/app/Http/Controllers/Api/WhmcsServiceController.php @@ -0,0 +1,162 @@ +where('slug', $request->validated('plan_slug'))->firstOrFail(); + $domain = $request->domain(); + + if ($domain && Customer::query()->where('domain', $domain)->exists()) { + return response()->json(['error' => 'Domain already taken.'], 422); + } + + $result = DB::transaction(function () use ($request, $plan, $domain) { + $user = User::query()->updateOrCreate( + ['whmcs_client_id' => $request->integer('whmcs_client_id')], + [ + 'name' => $request->validated('client_name'), + 'email' => $request->validated('client_email'), + 'password' => Hash::make(Str::random(32)), + 'role' => UserRole::Customer, + 'is_active' => true, + ], + ); + + $customer = Customer::query()->create([ + 'user_id' => $user->id, + 'hosting_plan_id' => $plan->id, + 'name' => $request->validated('hostname'), + 'domain' => $domain ?? 'direct-'.Str::slug($request->validated('hostname')).'-'.Str::lower(Str::random(6)).'.internal', + 'behind_traefik' => $request->boolean('behind_traefik', true), + 'provision_mode' => $request->validated('provision_mode'), + 'attached_iso' => $request->validated('iso_volid'), + 'cpu' => $plan->cpu, + 'ram' => $plan->ram, + 'disk' => $plan->disk, + 'status' => 'pending', + 'provisioning_step' => 'queued', + ]); + + $whmcsService = WhmcsService::query()->create([ + 'whmcs_service_id' => $request->integer('whmcs_service_id'), + 'whmcs_client_id' => $request->integer('whmcs_client_id'), + 'whmcs_order_id' => $request->input('whmcs_order_id'), + 'customer_id' => $customer->id, + 'user_id' => $user->id, + 'hosting_plan_id' => $plan->id, + 'status' => 'provisioning', + 'config' => $request->only([ + 'provision_mode', 'template_slug', 'iso_volid', 'behind_traefik', 'subdomain', + ]), + ]); + + $customer->update(['whmcs_service_id' => $whmcsService->id]); + + $vmid = app(VmidReservationService::class)->reserveForCustomer($customer); + $customer->update(['vmid' => $vmid]); + + ProvisionCustomerJob::dispatch($customer->id); + + return compact('customer', 'user', 'whmcsService', 'vmid'); + }); + + return response()->json([ + 'message' => 'Provisioning queued.', + 'customer_id' => $result['customer']->id, + 'vmid' => $result['vmid'], + 'panel_url' => config('hosting.panel.url'), + ], 202); + } + + public function suspend(Request $request, int $whmcsServiceId): JsonResponse + { + $service = $this->resolveService($whmcsServiceId); + $customer = $service->customer; + + if ($customer?->vmid) { + app(\App\Services\Hosting\Proxmox\ProxmoxClient::class)->stopVM((int) $customer->vmid); + } + + $service->update(['status' => 'suspended']); + $customer?->update(['status' => 'failed', 'provisioning_step' => 'suspended']); + + return response()->json(['message' => 'Service suspended.']); + } + + public function unsuspend(Request $request, int $whmcsServiceId): JsonResponse + { + $service = $this->resolveService($whmcsServiceId); + $customer = $service->customer; + + if ($customer?->vmid) { + app(\App\Services\Hosting\Proxmox\ProxmoxClient::class)->startVM((int) $customer->vmid); + $customer->update(['status' => 'active', 'provisioning_step' => 'completed']); + } + + $service->update(['status' => 'active']); + + return response()->json(['message' => 'Service unsuspended.']); + } + + public function terminate(Request $request, int $whmcsServiceId, DeprovisionService $deprovision): JsonResponse + { + $service = $this->resolveService($whmcsServiceId); + $customer = $service->customer; + + if ($customer) { + $deprovision->terminatePermanently($customer); + } + + $service->update(['status' => 'terminated', 'customer_id' => null]); + + return response()->json([ + 'message' => 'Service terminated. VMID will be released after configured retention.', + ]); + } + + public function status(int $whmcsServiceId): JsonResponse + { + $service = $this->resolveService($whmcsServiceId); + $service->load('customer'); + + return response()->json([ + 'whmcs_service_id' => $service->whmcs_service_id, + 'status' => $service->status, + 'customer' => $service->customer ? [ + 'id' => $service->customer->id, + 'name' => $service->customer->name, + 'vmid' => $service->customer->vmid, + 'status' => $service->customer->status, + 'provisioning_step' => $service->customer->provisioning_step, + 'ip_address' => $service->customer->ip_address, + 'domain' => $service->customer->domain, + ] : null, + ]); + } + + private function resolveService(int $whmcsServiceId): WhmcsService + { + return WhmcsService::query() + ->where('whmcs_service_id', $whmcsServiceId) + ->firstOrFail(); + } +} diff --git a/app/Http/Controllers/Auth/LoginController.php b/app/Http/Controllers/Auth/LoginController.php new file mode 100644 index 0000000..76ee49e --- /dev/null +++ b/app/Http/Controllers/Auth/LoginController.php @@ -0,0 +1,50 @@ +validate([ + 'email' => ['required', 'email'], + 'password' => ['required'], + ]); + + if (! Auth::attempt($credentials, $request->boolean('remember'))) { + return back()->withErrors(['email' => 'Ungültige Anmeldedaten.'])->onlyInput('email'); + } + + $user = Auth::user(); + if (! $user->is_active) { + Auth::logout(); + + return back()->withErrors(['email' => 'Ihr Konto ist deaktiviert.']); + } + + $request->session()->regenerate(); + $request->session()->forget('two_factor_passed'); + + return redirect()->intended(route('dashboard')); + } + + public function destroy(Request $request): RedirectResponse + { + Auth::logout(); + $request->session()->invalidate(); + $request->session()->regenerateToken(); + + return redirect()->route('login'); + } +} diff --git a/app/Http/Controllers/Auth/TwoFactorController.php b/app/Http/Controllers/Auth/TwoFactorController.php new file mode 100644 index 0000000..d32723f --- /dev/null +++ b/app/Http/Controllers/Auth/TwoFactorController.php @@ -0,0 +1,65 @@ +session()->get('two_factor_setup_secret'); + if (! $secret) { + $secret = $twoFactor->generateSecret(); + $request->session()->put('two_factor_setup_secret', $secret); + } + + $qrUrl = $twoFactor->qrUrl($request->user(), $secret); + $writer = new Writer(new ImageRenderer(new RendererStyle(200), new SvgImageBackEnd)); + $qrSvg = $writer->writeString($qrUrl); + + return view('auth.two-factor-setup', [ + 'secret' => $secret, + 'qrSvg' => $qrSvg, + ]); + } + + public function enable(Request $request, TwoFactorService $twoFactor): RedirectResponse + { + $request->validate(['code' => ['required', 'string', 'size:6']]); + $secret = $request->session()->pull('two_factor_setup_secret'); + if (! $secret || ! $twoFactor->enable($request->user(), $secret, $request->input('code'))) { + return back()->withErrors(['code' => 'Ungültiger Code. Bitte erneut versuchen.']); + } + + $request->session()->put('two_factor_passed', true); + + return redirect()->route('dashboard')->with('success', 'Zwei-Faktor-Authentifizierung aktiviert.'); + } + + public function challenge(): View + { + return view('auth.two-factor-challenge'); + } + + public function verifyChallenge(Request $request, TwoFactorService $twoFactor): RedirectResponse + { + $request->validate(['code' => ['required', 'string']]); + + if (! $twoFactor->verify($request->user(), $request->input('code'))) { + return back()->withErrors(['code' => 'Ungültiger Authentifizierungscode.']); + } + + $request->session()->put('two_factor_passed', true); + + return redirect()->intended(route('dashboard')); + } +} diff --git a/app/Http/Controllers/Controller.php b/app/Http/Controllers/Controller.php new file mode 100644 index 0000000..e7f7c94 --- /dev/null +++ b/app/Http/Controllers/Controller.php @@ -0,0 +1,10 @@ +domain(); + + $customer = Customer::query()->create([ + 'name' => $request->validated('name'), + 'domain' => $domain, + 'cpu' => $request->integer('cpu', config('hosting.defaults.cpu')), + 'ram' => $request->integer('ram', config('hosting.defaults.ram')), + 'disk' => $request->integer('disk', config('hosting.defaults.disk')), + 'status' => 'pending', + 'provisioning_step' => 'queued', + ]); + + ProvisionCustomerJob::dispatch($customer->id); + + return response()->json([ + 'message' => 'Provisioning started.', + 'customer' => $customer, + ], 202); + } + + public function show(Customer $customer): JsonResponse + { + return response()->json(['customer' => $customer]); + } + + public function index(): JsonResponse + { + return response()->json([ + 'customers' => Customer::query()->latest()->get(), + ]); + } + + public function destroy(Customer $customer): JsonResponse + { + if ($customer->status === 'pending' && $customer->provisioning_step === 'queued') { + $customer->delete(); + + return response()->json(['message' => 'Queued customer removed.']); + } + + return response()->json([ + 'message' => 'Use deprovision endpoint for active customers.', + ], 422); + } +} diff --git a/app/Http/Controllers/Web/Admin/SystemHealthController.php b/app/Http/Controllers/Web/Admin/SystemHealthController.php new file mode 100644 index 0000000..52457cf --- /dev/null +++ b/app/Http/Controllers/Web/Admin/SystemHealthController.php @@ -0,0 +1,17 @@ + $health->checks(), + ]); + } +} diff --git a/app/Http/Controllers/Web/Admin/VmTemplateController.php b/app/Http/Controllers/Web/Admin/VmTemplateController.php new file mode 100644 index 0000000..2ff02bd --- /dev/null +++ b/app/Http/Controllers/Web/Admin/VmTemplateController.php @@ -0,0 +1,72 @@ +orderBy('name')->get(); + + return view('admin.templates.index', compact('templates')); + } + + public function create(): View + { + return view('admin.templates.create'); + } + + public function store(Request $request): RedirectResponse + { + $data = $request->validate([ + 'slug' => ['required', 'string', 'max:64', 'alpha_dash', 'unique:vm_templates,slug'], + 'name' => ['required', 'string', 'max:120'], + 'proxmox_template_vmid' => ['required', 'integer', 'min:100'], + 'os_family' => ['nullable', 'string', 'max:32'], + 'is_active' => ['boolean'], + ]); + + VmTemplate::query()->create([ + ...$data, + 'is_active' => $request->boolean('is_active', true), + ]); + + return redirect()->route('admin.templates.index')->with('success', 'Template angelegt.'); + } + + public function edit(VmTemplate $template): View + { + return view('admin.templates.edit', compact('template')); + } + + public function update(Request $request, VmTemplate $template): RedirectResponse + { + $data = $request->validate([ + 'slug' => ['required', 'string', 'max:64', 'alpha_dash', 'unique:vm_templates,slug,'.$template->id], + 'name' => ['required', 'string', 'max:120'], + 'proxmox_template_vmid' => ['required', 'integer', 'min:100'], + 'os_family' => ['nullable', 'string', 'max:32'], + 'is_active' => ['boolean'], + ]); + + $template->update([ + ...$data, + 'is_active' => $request->boolean('is_active', true), + ]); + + return redirect()->route('admin.templates.index')->with('success', 'Template aktualisiert.'); + } + + public function destroy(VmTemplate $template): RedirectResponse + { + $template->delete(); + + return redirect()->route('admin.templates.index')->with('success', 'Template gelöscht.'); + } +} diff --git a/app/Http/Controllers/Web/DashboardController.php b/app/Http/Controllers/Web/DashboardController.php new file mode 100644 index 0000000..489a7e4 --- /dev/null +++ b/app/Http/Controllers/Web/DashboardController.php @@ -0,0 +1,45 @@ +user(); + $vmQuery = Customer::query()->forUser($user); + + $stats = [ + 'vms_total' => (clone $vmQuery)->count(), + 'vms_active' => (clone $vmQuery)->where('status', 'active')->count(), + 'vms_pending' => (clone $vmQuery)->where('status', 'pending')->count(), + 'vms_failed' => (clone $vmQuery)->where('status', 'failed')->count(), + ]; + + $pools = IpPool::query() + ->where('is_active', true) + ->orderBy('type') + ->get(); + + $recentVms = Customer::query() + ->forUser($user) + ->with(['owner', 'ipPool']) + ->latest() + ->limit(8) + ->get(); + + return view('dashboard', [ + 'stats' => $stats, + 'pools' => $pools, + 'recentVms' => $recentVms, + 'usersCount' => $user->isAdmin() ? User::query()->count() : null, + ]); + } +} diff --git a/app/Http/Controllers/Web/IpPoolController.php b/app/Http/Controllers/Web/IpPoolController.php new file mode 100644 index 0000000..cd32f19 --- /dev/null +++ b/app/Http/Controllers/Web/IpPoolController.php @@ -0,0 +1,123 @@ +authorize('viewAny', IpPool::class); + + $pools = IpPool::query() + ->withCount(['vms' => fn ($q) => $q->whereIn('status', ['pending', 'active'])]) + ->orderBy('type') + ->orderBy('name') + ->get() + ->map(function (IpPool $pool) { + $pool->setAttribute('usage_percent', $pool->totalIps() > 0 + ? round(($pool->usedIpsCount() / $pool->totalIps()) * 100, 1) + : 0); + + return $pool; + }); + + $assignments = Customer::query() + ->forUser($request->user()) + ->with(['owner', 'ipPool']) + ->whereIn('status', ['pending', 'active']) + ->where(fn ($q) => $q->whereNotNull('ip_address')->orWhereNotNull('public_ip')) + ->orderBy('name') + ->get(); + + return view('ip-pools.index', compact('pools', 'assignments')); + } + + public function create(): View + { + $this->authorize('create', IpPool::class); + + return view('ip-pools.create', ['types' => IpPoolType::cases()]); + } + + public function store(Request $request): RedirectResponse + { + $this->authorize('create', IpPool::class); + + $data = $request->validate([ + 'name' => ['required', 'string', 'max:100'], + 'type' => ['required', Rule::enum(IpPoolType::class)], + 'start_ip' => ['required', 'ip'], + 'end_ip' => ['required', 'ip'], + 'gateway' => ['nullable', 'ip'], + 'cidr' => ['required', 'integer', 'min:8', 'max:32'], + 'description' => ['nullable', 'string', 'max:500'], + 'is_active' => ['boolean'], + ]); + + if (ip2long($data['start_ip']) > ip2long($data['end_ip'])) { + return back()->withErrors(['end_ip' => 'End-IP muss größer als Start-IP sein.'])->withInput(); + } + + IpPool::query()->create([ + ...$data, + 'is_active' => $request->boolean('is_active', true), + ]); + + return redirect()->route('ip-pools.index')->with('success', 'IP-Pool erstellt.'); + } + + public function edit(IpPool $ipPool): View + { + $this->authorize('update', $ipPool); + + return view('ip-pools.edit', [ + 'pool' => $ipPool, + 'types' => IpPoolType::cases(), + ]); + } + + public function update(Request $request, IpPool $ipPool): RedirectResponse + { + $this->authorize('update', $ipPool); + + $data = $request->validate([ + 'name' => ['required', 'string', 'max:100'], + 'type' => ['required', Rule::enum(IpPoolType::class)], + 'start_ip' => ['required', 'ip'], + 'end_ip' => ['required', 'ip'], + 'gateway' => ['nullable', 'ip'], + 'cidr' => ['required', 'integer', 'min:8', 'max:32'], + 'description' => ['nullable', 'string', 'max:500'], + 'is_active' => ['boolean'], + ]); + + $ipPool->update([ + ...$data, + 'is_active' => $request->boolean('is_active'), + ]); + + return redirect()->route('ip-pools.index')->with('success', 'IP-Pool aktualisiert.'); + } + + public function destroy(IpPool $ipPool): RedirectResponse + { + $this->authorize('delete', $ipPool); + + if ($ipPool->vms()->whereIn('status', ['pending', 'active'])->exists()) { + return back()->withErrors(['pool' => 'Pool wird noch von aktiven VMs verwendet.']); + } + + $ipPool->delete(); + + return redirect()->route('ip-pools.index')->with('success', 'IP-Pool gelöscht.'); + } +} diff --git a/app/Http/Controllers/Web/IsoUploadController.php b/app/Http/Controllers/Web/IsoUploadController.php new file mode 100644 index 0000000..c5508f4 --- /dev/null +++ b/app/Http/Controllers/Web/IsoUploadController.php @@ -0,0 +1,38 @@ +where('user_id', $request->user()->id) + ->latest() + ->get(); + + return view('iso-uploads.index', compact('uploads')); + } + + public function store(Request $request, IsoUploadService $service): RedirectResponse + { + $request->validate([ + 'iso' => ['required', 'file', 'mimes:iso', 'max:'.((int) config('hosting.iso_upload.max_size_mb', 10240) * 1024)], + ]); + + try { + $service->upload($request->user(), $request->file('iso')); + } catch (\Throwable $e) { + return back()->withErrors(['iso' => $e->getMessage()]); + } + + return redirect()->route('iso-uploads.index')->with('success', 'ISO hochgeladen.'); + } +} diff --git a/app/Http/Controllers/Web/UserController.php b/app/Http/Controllers/Web/UserController.php new file mode 100644 index 0000000..11722ff --- /dev/null +++ b/app/Http/Controllers/Web/UserController.php @@ -0,0 +1,106 @@ +authorize('viewAny', User::class); + + $users = User::query()->withCount('vms')->orderBy('name')->paginate(20); + + return view('users.index', compact('users')); + } + + public function create(): View + { + $this->authorize('create', User::class); + + return view('users.create', ['roles' => UserRole::cases()]); + } + + public function store(Request $request): RedirectResponse + { + $this->authorize('create', User::class); + + $data = $request->validate([ + 'name' => ['required', 'string', 'max:100'], + 'email' => ['required', 'email', 'max:255', 'unique:users,email'], + 'password' => ['required', 'confirmed', Password::defaults()], + 'role' => ['required', Rule::enum(UserRole::class)], + 'is_active' => ['boolean'], + ]); + + User::query()->create([ + 'name' => $data['name'], + 'email' => $data['email'], + 'password' => Hash::make($data['password']), + 'role' => $data['role'], + 'is_active' => $request->boolean('is_active', true), + ]); + + return redirect()->route('users.index')->with('success', 'Benutzer erstellt.'); + } + + public function edit(User $user): View + { + $this->authorize('update', $user); + + return view('users.edit', [ + 'user' => $user, + 'roles' => UserRole::cases(), + ]); + } + + public function update(Request $request, User $user): RedirectResponse + { + $this->authorize('update', $user); + + $data = $request->validate([ + 'name' => ['required', 'string', 'max:100'], + 'email' => ['required', 'email', 'max:255', Rule::unique('users')->ignore($user->id)], + 'password' => ['nullable', 'confirmed', Password::defaults()], + 'role' => ['required', Rule::enum(UserRole::class)], + 'is_active' => ['boolean'], + ]); + + $user->fill([ + 'name' => $data['name'], + 'email' => $data['email'], + 'role' => $data['role'], + 'is_active' => $request->boolean('is_active'), + ]); + + if (! empty($data['password'])) { + $user->password = Hash::make($data['password']); + } + + $user->save(); + + return redirect()->route('users.index')->with('success', 'Benutzer aktualisiert.'); + } + + public function destroy(User $user): RedirectResponse + { + $this->authorize('delete', $user); + + if ($user->vms()->whereIn('status', ['pending', 'active'])->exists()) { + return back()->withErrors(['user' => 'Benutzer hat noch aktive VMs.']); + } + + $user->delete(); + + return redirect()->route('users.index')->with('success', 'Benutzer gelöscht.'); + } +} diff --git a/app/Http/Controllers/Web/VmBackupController.php b/app/Http/Controllers/Web/VmBackupController.php new file mode 100644 index 0000000..cd2b3c9 --- /dev/null +++ b/app/Http/Controllers/Web/VmBackupController.php @@ -0,0 +1,24 @@ +authorize('manage', $vm); + + try { + $backups->start($vm, auth()->user()); + } catch (\Throwable $e) { + return back()->withErrors(['backup' => $e->getMessage()]); + } + + return back()->with('success', 'Backup gestartet.'); + } +} diff --git a/app/Http/Controllers/Web/VmConsoleController.php b/app/Http/Controllers/Web/VmConsoleController.php new file mode 100644 index 0000000..6863ba7 --- /dev/null +++ b/app/Http/Controllers/Web/VmConsoleController.php @@ -0,0 +1,47 @@ +authorize('manage', $vm); + + try { + $session = $management->createConsoleSession($vm, $request->user()); + } catch (\Throwable $e) { + return view('vms.console-error', [ + 'vm' => $vm, + 'error' => $e->getMessage(), + ]); + } + + return view('vms.console', [ + 'vm' => $vm, + 'token' => $session['token'], + 'wsUrl' => $session['ws_url'], + 'expiresAt' => $session['expires_at'], + ]); + } + + public function show(Request $request, string $token, VmManagementService $management): View + { + $session = $management->getConsoleSession($token, $request->user()); + $vm = Customer::query()->findOrFail($session['customer_id']); + $this->authorize('view', $vm); + + return view('vms.console', [ + 'vm' => $vm, + 'token' => $token, + 'wsUrl' => $session['ws_url'], + 'expiresAt' => now()->addMinutes(5)->timestamp, + ]); + } +} diff --git a/app/Http/Controllers/Web/VmController.php b/app/Http/Controllers/Web/VmController.php new file mode 100644 index 0000000..59bbccb --- /dev/null +++ b/app/Http/Controllers/Web/VmController.php @@ -0,0 +1,215 @@ +authorize('viewAny', Customer::class); + + $vms = Customer::query() + ->forUser($request->user()) + ->with(['owner', 'ipPool']) + ->when($request->query('status'), fn ($q, $status) => $q->where('status', $status)) + ->latest() + ->paginate(15) + ->withQueryString(); + + return view('vms.index', compact('vms')); + } + + public function create(Request $request): View + { + $this->authorize('create', Customer::class); + + $isos = []; + try { + $isos = app(ProxmoxClient::class)->listIsos(); + } catch (\Throwable) { + // Proxmox nicht erreichbar – Formular bleibt nutzbar + } + + return view('vms.create', [ + 'privatePools' => IpPool::query()->where('type', 'private')->where('is_active', true)->get(), + 'customers' => $request->user()->isAdmin() + ? User::query()->where('role', 'customer')->orderBy('name')->get() + : collect(), + 'deviceTypes' => VmDevice::typesFor($request->user()), + 'templates' => \App\Models\VmTemplate::query()->where('is_active', true)->orderBy('name')->get(), + 'isos' => $isos, + ]); + } + + public function store(StoreVmRequest $request): RedirectResponse + { + $domain = $request->domain(); + + if ($domain && Customer::query()->where('domain', $domain)->exists()) { + return back()->withErrors(['subdomain' => 'Diese Subdomain ist bereits vergeben.'])->withInput(); + } + + if (! $domain) { + $domain = 'direct-'.Str::slug($request->validated('name')).'-'.Str::lower(Str::random(6)).'.internal'; + } + + $vm = Customer::query()->create([ + 'user_id' => $request->ownerId(), + 'name' => $request->validated('name'), + 'domain' => $domain, + 'behind_traefik' => $request->boolean('behind_traefik'), + 'ip_pool_id' => $request->input('ip_pool_id'), + 'cpu' => $request->integer('cpu'), + 'ram' => $request->integer('ram'), + 'disk' => $request->integer('disk'), + 'attached_iso' => $request->validated('install_iso'), + 'status' => 'pending', + 'provisioning_step' => 'queued', + ]); + + $this->syncDevices($vm, $request->input('devices', [])); + + ProvisionCustomerJob::dispatch($vm->id); + + return redirect() + ->route('vms.show', $vm) + ->with('success', 'VM-Provisioning wurde gestartet.'); + } + + public function show(Request $request, Customer $vm): View + { + $this->authorize('view', $vm); + + $vm->load([ + 'owner', 'ipPool', 'devices', + 'snapshots' => fn ($q) => $q->latest(), + 'backups' => fn ($q) => $q->latest()->limit(10), + 'firewallRules', + 'metrics' => fn ($q) => $q->limit(48), + 'activityLogs' => fn ($q) => $q->limit(15)->with('user'), + ]); + + $isos = []; + $liveStatus = null; + + if ($vm->vmid && $vm->status === 'active') { + try { + $proxmox = app(ProxmoxClient::class); + $isos = $proxmox->listIsos(); + } catch (\Throwable) { + // + } + + try { + $proxmox ??= app(ProxmoxClient::class); + $liveStatus = $proxmox->normalizeLiveStatus($proxmox->getVMStatus((int) $vm->vmid)); + $vm->update([ + 'proxmox_status' => $liveStatus['status'], + 'proxmox_uptime' => $liveStatus['uptime'], + 'proxmox_status_at' => now(), + ]); + } catch (\Throwable) { + // + } + } + + return view('vms.show', compact('vm', 'isos', 'liveStatus')); + } + + public function edit(Request $request, Customer $vm): View + { + $this->authorize('update', $vm); + + $vm->load('devices'); + + return view('vms.edit', [ + 'vm' => $vm, + 'deviceTypes' => VmDevice::typesFor($request->user()), + 'templates' => \App\Models\VmTemplate::query()->where('is_active', true)->orderBy('name')->get(), + ]); + } + + public function update(UpdateVmRequest $request, Customer $vm): RedirectResponse + { + $vm->update($request->only(['name', 'cpu', 'ram', 'disk'])); + + if ($request->has('devices')) { + $vm->devices()->delete(); + $this->syncDevices($vm, $request->input('devices', [])); + } + + if ($vm->vmid && $vm->status === 'active') { + try { + app(\App\Services\Hosting\Proxmox\ProxmoxClient::class) + ->updateVmResources((int) $vm->vmid, $vm->cpu, $vm->ram, $vm->disk); + app(\App\Services\Hosting\Proxmox\ProxmoxClient::class) + ->applyDevices((int) $vm->vmid, $vm->devices()->get()); + } catch (\Throwable $e) { + return back()->with('warning', 'DB gespeichert, Proxmox-Update fehlgeschlagen: '.$e->getMessage()); + } + } + + return redirect()->route('vms.show', $vm)->with('success', 'VM-Konfiguration gespeichert.'); + } + + public function destroy(Request $request, Customer $vm, DeprovisionService $deprovision, \App\Services\Hosting\Snapshots\SnapshotService $snapshots): RedirectResponse + { + $this->authorize('delete', $vm); + + if ($vm->vmid && $vm->status === 'active') { + try { + $snapshots->autoBeforeDestructive($vm, $request->user(), 'delete'); + } catch (\Throwable) { + // + } + } + + if ($vm->status === 'pending' && $vm->provisioning_step === 'queued') { + if ($vm->vmid) { + app(\App\Services\Hosting\Provisioning\VmidReservationService::class) + ->scheduleRelease((int) $vm->vmid, $vm); + } + $vm->devices()->delete(); + $vm->delete(); + + return redirect()->route('vms.index')->with('success', 'VM-Eintrag gelöscht.'); + } + + $deprovision->removeVmOnly($vm, $request->user()); + + return redirect()->route('vms.index')->with('success', 'VM wurde entfernt. VMID wird nach 48h freigegeben.'); + } + + private function syncDevices(Customer $vm, array $devices): void + { + $allowed = array_keys(VmDevice::typesFor(auth()->user())); + + foreach ($devices as $index => $device) { + if (empty($device['type']) || ! in_array($device['type'], $allowed, true)) { + continue; + } + + $vm->devices()->create([ + 'type' => $device['type'], + 'slot' => $device['slot'] ?? null, + 'config' => $device['config'] ?? [], + 'sort_order' => $index, + ]); + } + } +} diff --git a/app/Http/Controllers/Web/VmFirewallController.php b/app/Http/Controllers/Web/VmFirewallController.php new file mode 100644 index 0000000..0cba5b3 --- /dev/null +++ b/app/Http/Controllers/Web/VmFirewallController.php @@ -0,0 +1,53 @@ +authorize('manage', $vm); + + $data = $request->validate([ + 'direction' => ['required', Rule::in(['in', 'out'])], + 'action' => ['required', Rule::in(['ACCEPT', 'DROP', 'REJECT'])], + 'protocol' => ['required', Rule::in(['tcp', 'udp', 'icmp'])], + 'port' => ['nullable', 'string', 'max:32'], + 'source' => ['nullable', 'string', 'max:64'], + ]); + + $vm->firewallRules()->create([ + ...$data, + 'sort_order' => $vm->firewallRules()->count(), + ]); + + try { + $firewall->syncToProxmox($vm); + } catch (\Throwable $e) { + return back()->with('warning', 'Regel gespeichert, Proxmox-Sync fehlgeschlagen: '.$e->getMessage()); + } + + return back()->with('success', 'Firewall-Regel hinzugefügt.'); + } + + public function destroy(Customer $vm, int $rule, FirewallService $firewall): RedirectResponse + { + $this->authorize('manage', $vm); + $vm->firewallRules()->whereKey($rule)->delete(); + + try { + $firewall->syncToProxmox($vm); + } catch (\Throwable) { + // + } + + return back()->with('success', 'Regel entfernt.'); + } +} diff --git a/app/Http/Controllers/Web/VmIsoController.php b/app/Http/Controllers/Web/VmIsoController.php new file mode 100644 index 0000000..10239bf --- /dev/null +++ b/app/Http/Controllers/Web/VmIsoController.php @@ -0,0 +1,55 @@ +authorize('manage', $vm); + + $data = $request->validate([ + 'iso_volid' => ['required', 'string', 'max:255'], + ]); + + $snapshots->autoBeforeDestructive($vm, $request->user(), 'iso-mount'); + + try { + $management->mountIso($vm, $data['iso_volid'], $request->user()); + } catch (\Throwable $e) { + return back()->withErrors(['iso' => $e->getMessage()]); + } + + return back()->with('success', 'ISO wurde eingebunden. VM ggf. neu starten, um vom Installationsmedium zu booten.'); + } + + public function destroy(Request $request, Customer $vm, VmManagementService $management): RedirectResponse + { + $this->authorize('manage', $vm); + + try { + $management->unmountIso($vm, $request->user()); + } catch (\Throwable $e) { + return back()->withErrors(['iso' => $e->getMessage()]); + } + + return back()->with('success', 'ISO wurde entfernt.'); + } + + public function index(ProxmoxClient $proxmox): \Illuminate\Http\JsonResponse + { + try { + return response()->json(['isos' => $proxmox->listIsos()]); + } catch (\Throwable $e) { + return response()->json(['error' => $e->getMessage()], 502); + } + } +} diff --git a/app/Http/Controllers/Web/VmPowerController.php b/app/Http/Controllers/Web/VmPowerController.php new file mode 100644 index 0000000..42357ee --- /dev/null +++ b/app/Http/Controllers/Web/VmPowerController.php @@ -0,0 +1,36 @@ +authorize('manage', $vm); + + $action = VmPowerAction::from($request->validate([ + 'action' => ['required', Rule::enum(VmPowerAction::class)], + ])['action']); + + if (in_array($action, [VmPowerAction::Stop, VmPowerAction::Reset, VmPowerAction::Reboot], true)) { + $snapshots->autoBeforeDestructive($vm, $request->user(), 'power-'.$action->value); + } + + try { + $management->power($vm, $action, $request->user()); + } catch (\Throwable $e) { + return back()->withErrors(['power' => $e->getMessage()]); + } + + return back()->with('success', $action->label().' wurde ausgeführt.'); + } +} diff --git a/app/Http/Controllers/Web/VmReinstallController.php b/app/Http/Controllers/Web/VmReinstallController.php new file mode 100644 index 0000000..f8ad4e7 --- /dev/null +++ b/app/Http/Controllers/Web/VmReinstallController.php @@ -0,0 +1,26 @@ +authorize('manage', $vm); + $request->validate(['confirm' => ['required', 'in:REINSTALL']]); + + try { + $reinstall->reinstall($vm, $request->user()); + } catch (\Throwable $e) { + return back()->withErrors(['reinstall' => $e->getMessage()]); + } + + return redirect()->route('vms.show', $vm)->with('success', 'Neuinstallation gestartet.'); + } +} diff --git a/app/Http/Controllers/Web/VmSnapshotController.php b/app/Http/Controllers/Web/VmSnapshotController.php new file mode 100644 index 0000000..e337a9f --- /dev/null +++ b/app/Http/Controllers/Web/VmSnapshotController.php @@ -0,0 +1,55 @@ +authorize('manage', $vm); + $request->validate(['label' => ['nullable', 'string', 'max:64']]); + + try { + $snapshots->create($vm, $request->user(), false, $request->input('label')); + } catch (\Throwable $e) { + return back()->withErrors(['snapshot' => $e->getMessage()]); + } + + return back()->with('success', 'Snapshot erstellt.'); + } + + public function rollback(Customer $vm, VmSnapshot $snapshot, SnapshotService $snapshots): RedirectResponse + { + $this->authorize('manage', $vm); + abort_unless($snapshot->customer_id === $vm->id, 404); + + try { + $snapshots->rollback($vm, $snapshot); + } catch (\Throwable $e) { + return back()->withErrors(['snapshot' => $e->getMessage()]); + } + + return back()->with('success', 'Snapshot wiederhergestellt.'); + } + + public function destroy(Customer $vm, VmSnapshot $snapshot, SnapshotService $snapshots): RedirectResponse + { + $this->authorize('manage', $vm); + abort_unless($snapshot->customer_id === $vm->id, 404); + + try { + $snapshots->delete($vm, $snapshot); + } catch (\Throwable $e) { + return back()->withErrors(['snapshot' => $e->getMessage()]); + } + + return back()->with('success', 'Snapshot gelöscht.'); + } +} diff --git a/app/Http/Controllers/Web/VmStatusController.php b/app/Http/Controllers/Web/VmStatusController.php new file mode 100644 index 0000000..ee90afa --- /dev/null +++ b/app/Http/Controllers/Web/VmStatusController.php @@ -0,0 +1,42 @@ +authorize('view', $vm); + + if (! $vm->vmid || $vm->status !== 'active') { + return response()->json([ + 'status' => $vm->status, + 'proxmox' => null, + 'message' => 'VM nicht bereit', + ]); + } + + try { + $live = $management->refreshLiveStatus($vm); + + return response()->json([ + 'status' => $vm->status, + 'proxmox' => $live, + 'attached_iso' => $vm->attached_iso, + 'refreshed_at' => $vm->proxmox_status_at?->toIso8601String(), + ]); + } catch (\Throwable $e) { + return response()->json([ + 'status' => $vm->status, + 'proxmox' => null, + 'error' => $e->getMessage(), + ], 502); + } + } +} diff --git a/app/Http/Middleware/EnsureTwoFactorVerified.php b/app/Http/Middleware/EnsureTwoFactorVerified.php new file mode 100644 index 0000000..5219606 --- /dev/null +++ b/app/Http/Middleware/EnsureTwoFactorVerified.php @@ -0,0 +1,33 @@ +user(); + if (! $user) { + return $next($request); + } + + if ($this->twoFactor->mustSetup($user) && ! $request->routeIs('two-factor.*')) { + return redirect()->route('two-factor.setup'); + } + + if ($this->twoFactor->isEnabled($user) && ! $request->session()->get('two_factor_passed')) { + if (! $request->routeIs('two-factor.challenge', 'two-factor.challenge.store', 'logout')) { + return redirect()->route('two-factor.challenge'); + } + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/EnsureUserIsAdmin.php b/app/Http/Middleware/EnsureUserIsAdmin.php new file mode 100644 index 0000000..dd032c5 --- /dev/null +++ b/app/Http/Middleware/EnsureUserIsAdmin.php @@ -0,0 +1,19 @@ +user()?->isAdmin()) { + abort(403, 'Zugriff nur für Administratoren.'); + } + + return $next($request); + } +} diff --git a/app/Http/Middleware/VerifyWhmcsRequest.php b/app/Http/Middleware/VerifyWhmcsRequest.php new file mode 100644 index 0000000..8841072 --- /dev/null +++ b/app/Http/Middleware/VerifyWhmcsRequest.php @@ -0,0 +1,48 @@ +ip(), $allowedIps, true)) { + abort(403, 'IP not allowed.'); + } + + $timestamp = (int) $request->header('X-Whmcs-Timestamp', 0); + $signature = (string) $request->header('X-Whmcs-Signature', ''); + $window = (int) config('hosting.whmcs.replay_window_seconds', 300); + + if ($timestamp === 0 || $signature === '') { + abort(401, 'Missing WHMCS signature headers.'); + } + + if (abs(time() - $timestamp) > $window) { + abort(401, 'Request timestamp expired.'); + } + + $payload = $timestamp.'.'.$request->getContent(); + $expected = hash_hmac('sha256', $payload, $secret); + + if (! hash_equals($expected, $signature)) { + abort(401, 'Invalid WHMCS signature.'); + } + + return $next($request); + } +} diff --git a/app/Http/Requests/StoreCustomerRequest.php b/app/Http/Requests/StoreCustomerRequest.php new file mode 100644 index 0000000..d82272d --- /dev/null +++ b/app/Http/Requests/StoreCustomerRequest.php @@ -0,0 +1,42 @@ + ['required', 'string', 'max:100', 'regex:/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/'], + 'subdomain' => [ + 'required', + 'string', + 'max:63', + 'regex:/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/', + function (string $attribute, mixed $value, \Closure $fail) use ($baseDomain): void { + $domain = strtolower((string) $value).'.'.$baseDomain; + if (\App\Models\Customer::query()->where('domain', $domain)->exists()) { + $fail("The domain {$domain} is already registered."); + } + }, + ], + 'cpu' => ['sometimes', 'integer', 'min:1', 'max:32'], + 'ram' => ['sometimes', 'integer', 'min:512', 'max:131072'], + 'disk' => ['sometimes', 'integer', 'min:10', 'max:2048'], + ]; + } + + public function domain(): string + { + return strtolower($this->validated('subdomain')).'.'.config('hosting.plesk.base_domain'); + } +} diff --git a/app/Http/Requests/StoreVmRequest.php b/app/Http/Requests/StoreVmRequest.php new file mode 100644 index 0000000..bee0b15 --- /dev/null +++ b/app/Http/Requests/StoreVmRequest.php @@ -0,0 +1,64 @@ +user()->can('create', Customer::class); + } + + public function rules(): array + { + $baseDomain = config('hosting.plesk.base_domain'); + + return [ + 'name' => ['required', 'string', 'max:100', 'regex:/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/'], + 'subdomain' => [ + Rule::requiredIf(fn () => $this->boolean('behind_traefik')), + 'nullable', + 'string', + 'max:63', + 'regex:/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/', + ], + 'behind_traefik' => ['boolean'], + 'user_id' => [ + Rule::requiredIf(fn () => $this->user()->isAdmin()), + 'nullable', + 'exists:users,id', + ], + 'ip_pool_id' => ['nullable', 'exists:ip_pools,id'], + 'cpu' => ['required', 'integer', 'min:1', 'max:32'], + 'ram' => ['required', 'integer', 'min:512', 'max:131072'], + 'disk' => ['required', 'integer', 'min:10', 'max:2048'], + 'devices' => ['nullable', 'array'], + 'devices.*.type' => ['required_with:devices', Rule::in(array_keys(\App\Models\VmDevice::typesFor($this->user())))], + 'devices.*.slot' => ['nullable', 'string', 'max:32'], + 'devices.*.config' => ['nullable', 'array'], + 'install_iso' => ['nullable', 'string', 'max:255'], + ]; + } + + public function domain(): ?string + { + if (! $this->boolean('behind_traefik') || ! $this->filled('subdomain')) { + return null; + } + + return strtolower($this->input('subdomain')).'.'.config('hosting.plesk.base_domain'); + } + + public function ownerId(): int + { + if ($this->user()->isAdmin() && $this->filled('user_id')) { + return (int) $this->input('user_id'); + } + + return $this->user()->id; + } +} diff --git a/app/Http/Requests/UpdateVmRequest.php b/app/Http/Requests/UpdateVmRequest.php new file mode 100644 index 0000000..4f9ac2a --- /dev/null +++ b/app/Http/Requests/UpdateVmRequest.php @@ -0,0 +1,28 @@ +user()->can('update', $this->route('vm')); + } + + public function rules(): array + { + return [ + 'name' => ['sometimes', 'string', 'max:100', 'regex:/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/'], + 'cpu' => ['sometimes', 'integer', 'min:1', 'max:32'], + 'ram' => ['sometimes', 'integer', 'min:512', 'max:131072'], + 'disk' => ['sometimes', 'integer', 'min:10', 'max:2048'], + 'devices' => ['nullable', 'array'], + 'devices.*.type' => ['required_with:devices', Rule::in(array_keys(\App\Models\VmDevice::typesFor($this->user())))], + 'devices.*.slot' => ['nullable', 'string', 'max:32'], + 'devices.*.config' => ['nullable', 'array'], + ]; + } +} diff --git a/app/Http/Requests/Whmcs/ProvisionServiceRequest.php b/app/Http/Requests/Whmcs/ProvisionServiceRequest.php new file mode 100644 index 0000000..454c369 --- /dev/null +++ b/app/Http/Requests/Whmcs/ProvisionServiceRequest.php @@ -0,0 +1,57 @@ + ['required', 'integer', 'unique:whmcs_services,whmcs_service_id'], + 'whmcs_client_id' => ['required', 'integer'], + 'whmcs_order_id' => ['nullable', 'integer'], + 'client_email' => ['required', 'email', 'max:255'], + 'client_name' => ['required', 'string', 'max:100'], + 'plan_slug' => ['required', 'string', 'exists:hosting_plans,slug'], + 'hostname' => ['required', 'string', 'max:100', 'regex:/^[a-zA-Z0-9][a-zA-Z0-9_-]*$/'], + 'subdomain' => [ + Rule::requiredIf(fn () => $this->boolean('behind_traefik', true)), + 'nullable', + 'string', + 'max:63', + 'regex:/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/', + ], + 'behind_traefik' => ['boolean'], + 'provision_mode' => ['required', Rule::in(['template', 'iso', 'empty'])], + 'template_slug' => [ + Rule::requiredIf(fn () => $this->input('provision_mode') === 'template'), + 'nullable', + 'string', + 'max:64', + ], + 'iso_volid' => [ + Rule::requiredIf(fn () => $this->input('provision_mode') === 'iso'), + 'nullable', + 'string', + 'max:255', + ], + ]; + } + + public function domain(): ?string + { + if (! $this->boolean('behind_traefik', true) || ! $this->filled('subdomain')) { + return null; + } + + return strtolower($this->input('subdomain')).'.'.config('hosting.plesk.base_domain'); + } +} diff --git a/app/Jobs/ProvisionCustomerJob.php b/app/Jobs/ProvisionCustomerJob.php new file mode 100644 index 0000000..84a5a37 --- /dev/null +++ b/app/Jobs/ProvisionCustomerJob.php @@ -0,0 +1,75 @@ +with('owner')->findOrFail($this->customerId); + + if ($customer->status === 'active') { + Log::info('ProvisionCustomerJob: customer already active', ['id' => $customer->id]); + + return; + } + + $customer->update([ + 'status' => 'pending', + 'provisioning_step' => 'queued', + 'error_message' => null, + ]); + + $data = CustomerProvisionData::fromCustomer($customer); + + $provisioning->provision($customer, $data); + + if ($customer->owner) { + $notifications->provisioningCompleted($customer->fresh(), $customer->owner); + } + } + + public function failed(?Throwable $exception): void + { + Log::error('ProvisionCustomerJob failed permanently', [ + 'customer_id' => $this->customerId, + 'error' => $exception?->getMessage(), + ]); + + $customer = Customer::query()->with('owner')->find($this->customerId); + if ($customer) { + $customer->update([ + 'status' => 'failed', + 'error_message' => $exception?->getMessage() ?? 'Unknown provisioning failure', + ]); + if ($customer->owner) { + app(HostingNotificationService::class)->provisioningFailed( + $customer, + $customer->owner, + $customer->error_message ?? 'Unbekannter Fehler', + ); + } + } + } +} diff --git a/app/Models/Customer.php b/app/Models/Customer.php new file mode 100644 index 0000000..16c3fc7 --- /dev/null +++ b/app/Models/Customer.php @@ -0,0 +1,129 @@ + 'integer', + 'cpu' => 'integer', + 'ram' => 'integer', + 'disk' => 'integer', + 'behind_traefik' => 'boolean', + 'proxmox_uptime' => 'integer', + 'proxmox_status_at' => 'datetime', + ]; + } + + public function owner(): BelongsTo + { + return $this->belongsTo(User::class, 'user_id'); + } + + public function ipPool(): BelongsTo + { + return $this->belongsTo(IpPool::class, 'ip_pool_id'); + } + + public function plan(): BelongsTo + { + return $this->belongsTo(HostingPlan::class, 'hosting_plan_id'); + } + + public function whmcsService(): BelongsTo + { + return $this->belongsTo(WhmcsService::class, 'whmcs_service_id'); + } + + public function vmidReservation(): \Illuminate\Database\Eloquent\Relations\HasOne + { + return $this->hasOne(VmidReservation::class); + } + + public function devices(): HasMany + { + return $this->hasMany(VmDevice::class)->orderBy('sort_order'); + } + + public function snapshots(): HasMany + { + return $this->hasMany(VmSnapshot::class); + } + + public function backups(): HasMany + { + return $this->hasMany(VmBackup::class); + } + + public function firewallRules(): HasMany + { + return $this->hasMany(VmFirewallRule::class)->orderBy('sort_order'); + } + + public function metrics(): HasMany + { + return $this->hasMany(VmMetric::class)->orderByDesc('recorded_at'); + } + + public function activityLogs(): HasMany + { + return $this->hasMany(VmActivityLog::class)->latest(); + } + + public function isRunning(): bool + { + return $this->proxmox_status === 'running'; + } + + public function scopeForUser(Builder $query, User $user): Builder + { + if ($user->isAdmin()) { + return $query; + } + + return $query->where('user_id', $user->id); + } + + public function isProvisionable(): bool + { + return in_array($this->status, ['pending', 'failed'], true); + } + + public function displayName(): string + { + return $this->name.($this->vmid ? " (#{$this->vmid})" : ''); + } +} diff --git a/app/Models/CustomerIsoUpload.php b/app/Models/CustomerIsoUpload.php new file mode 100644 index 0000000..ca4cb94 --- /dev/null +++ b/app/Models/CustomerIsoUpload.php @@ -0,0 +1,30 @@ + 'integer', + 'expires_at' => 'datetime', + ]; + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } +} diff --git a/app/Models/HostingPlan.php b/app/Models/HostingPlan.php new file mode 100644 index 0000000..d62027c --- /dev/null +++ b/app/Models/HostingPlan.php @@ -0,0 +1,41 @@ + 'integer', + 'ram' => 'integer', + 'disk' => 'integer', + 'max_backups' => 'integer', + 'allow_public_ip' => 'boolean', + 'allow_iso_upload' => 'boolean', + 'is_active' => 'boolean', + 'whmcs_product_id' => 'integer', + ]; + } + + public function customers(): HasMany + { + return $this->hasMany(Customer::class, 'hosting_plan_id'); + } +} diff --git a/app/Models/IpPool.php b/app/Models/IpPool.php new file mode 100644 index 0000000..2502629 --- /dev/null +++ b/app/Models/IpPool.php @@ -0,0 +1,74 @@ + IpPoolType::class, + 'cidr' => 'integer', + 'is_active' => 'boolean', + ]; + } + + public function vms(): HasMany + { + return $this->hasMany(Customer::class, 'ip_pool_id'); + } + + public function totalIps(): int + { + $start = ip2long($this->start_ip); + $end = ip2long($this->end_ip); + + if ($start === false || $end === false || $end < $start) { + return 0; + } + + return (int) ($end - $start + 1); + } + + public function usedIpsCount(): int + { + $query = Customer::query() + ->where('ip_pool_id', $this->id) + ->whereIn('status', ['pending', 'active']); + + if ($this->type === IpPoolType::Public) { + return $query->whereNotNull('public_ip')->count(); + } + + return $query->whereNotNull('ip_address')->count(); + } + + public function freeIpsCount(): int + { + return max(0, $this->totalIps() - $this->usedIpsCount()); + } + + public function containsIp(string $ip): bool + { + $long = ip2long($ip); + $start = ip2long($this->start_ip); + $end = ip2long($this->end_ip); + + return $long !== false && $long >= $start && $long <= $end; + } +} diff --git a/app/Models/SystemSetting.php b/app/Models/SystemSetting.php new file mode 100644 index 0000000..669280f --- /dev/null +++ b/app/Models/SystemSetting.php @@ -0,0 +1,32 @@ +find($key); + + return $row?->value ?? $default; + }); + } + + public static function set(string $key, mixed $value): void + { + static::query()->updateOrCreate(['key' => $key], ['value' => (string) $value]); + Cache::forget("setting.{$key}"); + } +} diff --git a/app/Models/User.php b/app/Models/User.php new file mode 100644 index 0000000..03e159c --- /dev/null +++ b/app/Models/User.php @@ -0,0 +1,46 @@ + */ + use HasFactory, Notifiable; + + protected function casts(): array + { + return [ + 'email_verified_at' => 'datetime', + 'password' => 'hashed', + 'role' => UserRole::class, + 'is_active' => 'boolean', + 'two_factor_confirmed_at' => 'datetime', + ]; + } + + public function vms(): HasMany + { + return $this->hasMany(Customer::class, 'user_id'); + } + + public function isAdmin(): bool + { + return $this->role === UserRole::Admin; + } + + public function isCustomer(): bool + { + return $this->role === UserRole::Customer; + } +} diff --git a/app/Models/VmActivityLog.php b/app/Models/VmActivityLog.php new file mode 100644 index 0000000..ba6c009 --- /dev/null +++ b/app/Models/VmActivityLog.php @@ -0,0 +1,35 @@ + 'array', + ]; + } + + public function vm(): BelongsTo + { + return $this->belongsTo(Customer::class, 'customer_id'); + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } +} diff --git a/app/Models/VmBackup.php b/app/Models/VmBackup.php new file mode 100644 index 0000000..28615a3 --- /dev/null +++ b/app/Models/VmBackup.php @@ -0,0 +1,26 @@ + 'integer', + 'completed_at' => 'datetime', + ]; + } + + public function vm(): BelongsTo + { + return $this->belongsTo(Customer::class, 'customer_id'); + } +} diff --git a/app/Models/VmDevice.php b/app/Models/VmDevice.php new file mode 100644 index 0000000..3030191 --- /dev/null +++ b/app/Models/VmDevice.php @@ -0,0 +1,58 @@ + 'Zusätzliche Festplatte', + self::TYPE_NETWORK => 'Netzwerk-Interface', + self::TYPE_USB => 'USB-Gerät', + self::TYPE_PCI => 'PCI Passthrough', + ]; + } + + public static function typesFor(?\App\Models\User $user = null): array + { + $types = self::types(); + if ($user && ! $user->isAdmin()) { + return array_intersect_key($types, array_flip([self::TYPE_DISK, self::TYPE_NETWORK])); + } + + return $types; + } + + protected $fillable = [ + 'customer_id', + 'type', + 'slot', + 'config', + 'sort_order', + ]; + + protected function casts(): array + { + return [ + 'config' => 'array', + 'sort_order' => 'integer', + ]; + } + + public function vm(): BelongsTo + { + return $this->belongsTo(Customer::class, 'customer_id'); + } +} diff --git a/app/Models/VmFirewallRule.php b/app/Models/VmFirewallRule.php new file mode 100644 index 0000000..f49370c --- /dev/null +++ b/app/Models/VmFirewallRule.php @@ -0,0 +1,26 @@ + 'boolean', + 'sort_order' => 'integer', + ]; + } + + public function vm(): BelongsTo + { + return $this->belongsTo(Customer::class, 'customer_id'); + } +} diff --git a/app/Models/VmMetric.php b/app/Models/VmMetric.php new file mode 100644 index 0000000..76d1073 --- /dev/null +++ b/app/Models/VmMetric.php @@ -0,0 +1,32 @@ + 'float', + 'mem' => 'integer', + 'maxmem' => 'integer', + 'disk' => 'integer', + 'maxdisk' => 'integer', + 'recorded_at' => 'datetime', + ]; + } + + public function vm(): BelongsTo + { + return $this->belongsTo(Customer::class, 'customer_id'); + } +} diff --git a/app/Models/VmSnapshot.php b/app/Models/VmSnapshot.php new file mode 100644 index 0000000..adad5a9 --- /dev/null +++ b/app/Models/VmSnapshot.php @@ -0,0 +1,26 @@ + 'boolean', + 'expires_at' => 'datetime', + ]; + } + + public function vm(): BelongsTo + { + return $this->belongsTo(Customer::class, 'customer_id'); + } +} diff --git a/app/Models/VmTemplate.php b/app/Models/VmTemplate.php new file mode 100644 index 0000000..e5a537f --- /dev/null +++ b/app/Models/VmTemplate.php @@ -0,0 +1,20 @@ + 'integer', + 'is_active' => 'boolean', + ]; + } +} diff --git a/app/Models/VmidReservation.php b/app/Models/VmidReservation.php new file mode 100644 index 0000000..2cc7a04 --- /dev/null +++ b/app/Models/VmidReservation.php @@ -0,0 +1,36 @@ + 'integer', + 'release_at' => 'datetime', + 'released_at' => 'datetime', + ]; + } + + public function customer(): BelongsTo + { + return $this->belongsTo(Customer::class); + } + + public function isBlocking(int $vmid): bool + { + return in_array($this->status, ['reserved', 'active', 'pending_release'], true); + } +} diff --git a/app/Models/WhmcsService.php b/app/Models/WhmcsService.php new file mode 100644 index 0000000..9c48e2c --- /dev/null +++ b/app/Models/WhmcsService.php @@ -0,0 +1,45 @@ + 'integer', + 'whmcs_client_id' => 'integer', + 'whmcs_order_id' => 'integer', + 'config' => 'array', + ]; + } + + public function customer(): BelongsTo + { + return $this->belongsTo(Customer::class); + } + + public function user(): BelongsTo + { + return $this->belongsTo(User::class); + } + + public function plan(): BelongsTo + { + return $this->belongsTo(HostingPlan::class, 'hosting_plan_id'); + } +} diff --git a/app/Policies/IpPoolPolicy.php b/app/Policies/IpPoolPolicy.php new file mode 100644 index 0000000..fd92f7c --- /dev/null +++ b/app/Policies/IpPoolPolicy.php @@ -0,0 +1,34 @@ +is_active; + } + + public function view(User $user, IpPool $ipPool): bool + { + return $user->is_active; + } + + public function create(User $user): bool + { + return $user->isAdmin() && $user->is_active; + } + + public function update(User $user, IpPool $ipPool): bool + { + return $user->isAdmin() && $user->is_active; + } + + public function delete(User $user, IpPool $ipPool): bool + { + return $user->isAdmin() && $user->is_active; + } +} diff --git a/app/Policies/UserPolicy.php b/app/Policies/UserPolicy.php new file mode 100644 index 0000000..06cc7e0 --- /dev/null +++ b/app/Policies/UserPolicy.php @@ -0,0 +1,28 @@ +isAdmin() && $user->is_active; + } + + public function create(User $user): bool + { + return $user->isAdmin() && $user->is_active; + } + + public function update(User $user, User $model): bool + { + return $user->isAdmin() && $user->is_active; + } + + public function delete(User $user, User $model): bool + { + return $user->isAdmin() && $user->is_active && $user->id !== $model->id; + } +} diff --git a/app/Policies/VmPolicy.php b/app/Policies/VmPolicy.php new file mode 100644 index 0000000..50ede5b --- /dev/null +++ b/app/Policies/VmPolicy.php @@ -0,0 +1,39 @@ +is_active; + } + + public function view(User $user, Customer $vm): bool + { + return $user->is_active && ($user->isAdmin() || $vm->user_id === $user->id); + } + + public function create(User $user): bool + { + return $user->is_active; + } + + public function update(User $user, Customer $vm): bool + { + return $user->is_active && ($user->isAdmin() || $vm->user_id === $user->id); + } + + public function delete(User $user, Customer $vm): bool + { + return $user->is_active && ($user->isAdmin() || $vm->user_id === $user->id); + } + + public function manage(User $user, Customer $vm): bool + { + return $this->update($user, $vm) && $vm->status === 'active' && $vm->vmid !== null; + } +} diff --git a/app/Providers/AppServiceProvider.php b/app/Providers/AppServiceProvider.php new file mode 100644 index 0000000..c406b56 --- /dev/null +++ b/app/Providers/AppServiceProvider.php @@ -0,0 +1,36 @@ +by($request->ip().'|'.$request->input('email')); + }); + + Gate::policy(Customer::class, VmPolicy::class); + Gate::policy(IpPool::class, IpPoolPolicy::class); + Gate::policy(User::class, UserPolicy::class); + } +} diff --git a/app/Providers/HostingServiceProvider.php b/app/Providers/HostingServiceProvider.php new file mode 100644 index 0000000..c2713f9 --- /dev/null +++ b/app/Providers/HostingServiceProvider.php @@ -0,0 +1,36 @@ +app->singleton(ProxmoxClient::class); + $this->app->singleton(PleskClient::class); + $this->app->singleton(TraefikGenerator::class); + $this->app->singleton(IpAddressAllocator::class); + $this->app->singleton(ProvisioningService::class); + $this->app->singleton(VmManagementService::class); + } + + public function boot(): void + { + RateLimiter::for('vm-power', function (Request $request) { + $limit = (int) config('hosting.vm_power.rate_limit_per_minute', 20); + + return Limit::perMinute($limit)->by($request->user()?->id ?: $request->ip()); + }); + } +} diff --git a/app/Services/Auth/TwoFactorService.php b/app/Services/Auth/TwoFactorService.php new file mode 100644 index 0000000..951aab7 --- /dev/null +++ b/app/Services/Auth/TwoFactorService.php @@ -0,0 +1,87 @@ +google2fa->generateSecretKey(); + } + + public function qrUrl(User $user, string $secret): string + { + $company = config('app.name', 'HexaHost Panel'); + + return $this->google2fa->getQRCodeUrl($company, $user->email, $secret); + } + + public function verify(User $user, string $code): bool + { + $secret = $this->decryptSecret($user); + if (! $secret) { + return false; + } + + return $this->google2fa->verifyKey($secret, $code); + } + + public function enable(User $user, string $secret, string $code): bool + { + if (! $this->google2fa->verifyKey($secret, $code)) { + return false; + } + + $recovery = collect(range(1, 8))->map(fn () => bin2hex(random_bytes(4)))->implode(','); + + $user->forceFill([ + 'two_factor_secret' => Crypt::encryptString($secret), + 'two_factor_recovery_codes' => Crypt::encryptString($recovery), + 'two_factor_confirmed_at' => now(), + ])->save(); + + return true; + } + + public function disable(User $user): void + { + $user->forceFill([ + 'two_factor_secret' => null, + 'two_factor_recovery_codes' => null, + 'two_factor_confirmed_at' => null, + ])->save(); + } + + public function isEnabled(User $user): bool + { + return $user->two_factor_confirmed_at !== null && $user->two_factor_secret !== null; + } + + public function mustSetup(User $user): bool + { + if (! config('hosting.security.admin_2fa_required', true)) { + return false; + } + + return $user->isAdmin() && ! $this->isEnabled($user); + } + + public function decryptSecret(User $user): ?string + { + if (! $user->two_factor_secret) { + return null; + } + + try { + return Crypt::decryptString($user->two_factor_secret); + } catch (\Throwable) { + return null; + } + } +} diff --git a/app/Services/Hosting/Backups/BackupService.php b/app/Services/Hosting/Backups/BackupService.php new file mode 100644 index 0000000..a5a0393 --- /dev/null +++ b/app/Services/Hosting/Backups/BackupService.php @@ -0,0 +1,73 @@ +maxBackupsForUser($user); + $count = VmBackup::query() + ->whereHas('vm', fn ($q) => $q->where('user_id', $user->id)) + ->whereIn('status', ['running', 'completed']) + ->count(); + + if ($count >= $max) { + throw new ProvisioningException("Maximal {$max} Backups erlaubt.", step: 'backup_limit'); + } + + $storage = config('hosting.backups.pbs_storage', 'inett-PBS'); + $upid = $this->proxmox->startBackup((int) $vm->vmid, $storage); + + return VmBackup::query()->create([ + 'customer_id' => $vm->id, + 'user_id' => $user->id, + 'storage' => $storage, + 'volume_id' => $upid, + 'status' => 'running', + ]); + } + + public function maxBackupsForUser(User $user): int + { + return (int) config('hosting.backups.max_per_customer', 4); + } + + public function deleteAllForVm(Customer $vm): void + { + $backups = VmBackup::query()->where('customer_id', $vm->id)->get(); + + foreach ($backups as $backup) { + Log::info('Backup record removed', ['id' => $backup->id, 'volume' => $backup->volume_id]); + // PBS purge via API when credentials available + $backup->delete(); + } + } + + public function enforceRetentionForUser(User $user): void + { + $max = $this->maxBackupsForUser($user); + $backups = VmBackup::query() + ->whereHas('vm', fn ($q) => $q->where('user_id', $user->id)) + ->where('status', 'completed') + ->orderByDesc('completed_at') + ->get(); + + foreach ($backups->slice($max) as $old) { + $old->delete(); + } + } +} diff --git a/app/Services/Hosting/DTO/CustomerProvisionData.php b/app/Services/Hosting/DTO/CustomerProvisionData.php new file mode 100644 index 0000000..fb5ade9 --- /dev/null +++ b/app/Services/Hosting/DTO/CustomerProvisionData.php @@ -0,0 +1,74 @@ +name, + domain: $customer->domain, + vmid: $customer->vmid, + ip: $customer->ip_address, + public_ip: $customer->public_ip, + cpu: $customer->cpu, + ram: $customer->ram, + disk: $customer->disk, + behind_traefik: $customer->behind_traefik, + ip_pool_id: $customer->ip_pool_id, + ); + } + + public static function fromArray(array $data): self + { + return new self( + customer_name: (string) $data['customer_name'], + domain: isset($data['domain']) ? (string) $data['domain'] : null, + vmid: isset($data['vmid']) ? (int) $data['vmid'] : null, + ip: isset($data['ip']) ? (string) $data['ip'] : null, + public_ip: isset($data['public_ip']) ? (string) $data['public_ip'] : null, + cpu: (int) ($data['cpu'] ?? config('hosting.defaults.cpu', 2)), + ram: (int) ($data['ram'] ?? config('hosting.defaults.ram', 2048)), + disk: (int) ($data['disk'] ?? config('hosting.defaults.disk', 32)), + behind_traefik: (bool) ($data['behind_traefik'] ?? true), + ip_pool_id: isset($data['ip_pool_id']) ? (int) $data['ip_pool_id'] : null, + ); + } + + public function subdomain(): string + { + if (! $this->domain) { + return ''; + } + + $base = config('hosting.plesk.base_domain'); + $suffix = '.'.$base; + + if (str_ends_with($this->domain, $suffix)) { + return substr($this->domain, 0, -strlen($suffix)); + } + + return explode('.', $this->domain)[0] ?? $this->customer_name; + } + + public function requiresTraefik(): bool + { + return $this->behind_traefik && $this->domain !== null && $this->domain !== ''; + } +} diff --git a/app/Services/Hosting/Firewall/FirewallService.php b/app/Services/Hosting/Firewall/FirewallService.php new file mode 100644 index 0000000..96c55e1 --- /dev/null +++ b/app/Services/Hosting/Firewall/FirewallService.php @@ -0,0 +1,33 @@ +vmid) { + return; + } + + $rules = $vm->firewallRules()->where('is_active', true)->orderBy('sort_order')->get(); + $payload = $rules->map(fn (VmFirewallRule $r) => [ + 'type' => $r->direction === 'out' ? 'out' : 'in', + 'action' => $r->action, + 'proto' => $r->protocol, + 'dport' => $r->port, + 'source' => $r->source, + 'enable' => 1, + ])->all(); + + if ($payload !== []) { + $this->proxmox->setFirewallRules((int) $vm->vmid, $payload); + } + } +} diff --git a/app/Services/Hosting/Health/SystemHealthService.php b/app/Services/Hosting/Health/SystemHealthService.php new file mode 100644 index 0000000..1407ee7 --- /dev/null +++ b/app/Services/Hosting/Health/SystemHealthService.php @@ -0,0 +1,71 @@ + + */ + public function checks(): array + { + return [ + 'database' => $this->checkDatabase(), + 'proxmox' => $this->checkProxmox(), + 'traefik_config' => $this->checkTraefik(), + 'queue' => $this->checkQueue(), + ]; + } + + private function checkDatabase(): array + { + try { + DB::connection()->getPdo(); + + return ['status' => 'ok', 'message' => 'Datenbank erreichbar']; + } catch (\Throwable $e) { + return ['status' => 'error', 'message' => $e->getMessage()]; + } + } + + private function checkProxmox(): array + { + try { + $this->proxmox->node(); + + return ['status' => 'ok', 'message' => 'Proxmox API erreichbar']; + } catch (\Throwable $e) { + return ['status' => 'error', 'message' => $e->getMessage()]; + } + } + + private function checkTraefik(): array + { + $path = config('hosting.traefik.dynamic_config_path'); + if (! $path) { + return ['status' => 'warning', 'message' => 'Traefik-Pfad nicht konfiguriert']; + } + if (! is_writable(dirname($path)) && ! file_exists($path)) { + return ['status' => 'warning', 'message' => 'Traefik-Verzeichnis nicht beschreibbar']; + } + + return ['status' => 'ok', 'message' => is_file($path) ? 'Konfigurationsdatei vorhanden' : 'Wird bei erster Route angelegt']; + } + + private function checkQueue(): array + { + try { + $size = DB::table('jobs')->count(); + + return ['status' => 'ok', 'message' => "Queue: {$size} ausstehende Jobs"]; + } catch (\Throwable) { + return ['status' => 'warning', 'message' => 'Queue-Tabelle nicht verfügbar (sync driver?)']; + } + } +} diff --git a/app/Services/Hosting/Iso/IsoUploadService.php b/app/Services/Hosting/Iso/IsoUploadService.php new file mode 100644 index 0000000..0bfaaa3 --- /dev/null +++ b/app/Services/Hosting/Iso/IsoUploadService.php @@ -0,0 +1,67 @@ +getSize() > $maxMb * 1024 * 1024) { + throw new ProvisioningException("Maximale ISO-Größe: {$maxMb} MB.", step: 'iso_upload'); + } + + $maxPerCustomer = (int) config('hosting.iso_upload.max_per_customer', 1); + $existing = CustomerIsoUpload::query()->where('user_id', $user->id)->where('expires_at', '>', now())->count(); + if ($existing >= $maxPerCustomer) { + throw new ProvisioningException('Nur eine aktive ISO pro Kunde erlaubt.', step: 'iso_upload'); + } + + $storage = config('hosting.proxmox.iso_storage', 'ISO'); + $safeName = preg_replace('/[^a-zA-Z0-9._-]/', '_', $file->getClientOriginalName()) ?: 'upload.iso'; + $path = $file->getRealPath(); + + $this->proxmox->uploadIsoToStorage($storage, $safeName, $path); + + $volid = "{$storage}:iso/{$safeName}"; + $hours = (int) config('hosting.iso_upload.retention_hours', 48); + + return CustomerIsoUpload::query()->create([ + 'user_id' => $user->id, + 'filename' => $safeName, + 'volid' => $volid, + 'size_bytes' => $file->getSize(), + 'expires_at' => now()->addHours($hours), + ]); + } + + public function purgeExpired(): int + { + $storage = config('hosting.proxmox.iso_storage', 'ISO'); + $count = 0; + + foreach (CustomerIsoUpload::query()->where('expires_at', '<=', now())->get() as $upload) { + try { + $this->proxmox->deleteStorageFile($storage, $upload->volid); + } catch (\Throwable) { + // + } + $upload->delete(); + $count++; + } + + return $count; + } +} diff --git a/app/Services/Hosting/Metrics/MetricsCollectorService.php b/app/Services/Hosting/Metrics/MetricsCollectorService.php new file mode 100644 index 0000000..85e7b77 --- /dev/null +++ b/app/Services/Hosting/Metrics/MetricsCollectorService.php @@ -0,0 +1,46 @@ +where('status', 'active')->whereNotNull('vmid')->get(); + + foreach ($vms as $vm) { + try { + $raw = $this->proxmox->getVMStatus((int) $vm->vmid); + $normalized = $this->proxmox->normalizeLiveStatus($raw); + + VmMetric::query()->create([ + 'customer_id' => $vm->id, + 'cpu' => $normalized['cpu'], + 'mem' => $normalized['mem'], + 'maxmem' => $normalized['maxmem'], + 'disk' => $normalized['disk'], + 'maxdisk' => $normalized['maxdisk'], + 'recorded_at' => now(), + ]); + + VmMetric::query() + ->where('customer_id', $vm->id) + ->where('recorded_at', '<', now()->subDays(7)) + ->delete(); + + $count++; + } catch (\Throwable) { + // + } + } + + return $count; + } +} diff --git a/app/Services/Hosting/Notifications/HostingNotificationService.php b/app/Services/Hosting/Notifications/HostingNotificationService.php new file mode 100644 index 0000000..189fe38 --- /dev/null +++ b/app/Services/Hosting/Notifications/HostingNotificationService.php @@ -0,0 +1,60 @@ +send($user, 'VM bereit: '.$vm->name, "Ihre VM {$vm->name} wurde erfolgreich provisioniert.", [ + 'event' => 'provisioning.completed', + 'customer_id' => $vm->id, + ]); + } + + public function provisioningFailed(Customer $vm, User $user, string $error): void + { + $this->send($user, 'Provisioning fehlgeschlagen: '.$vm->name, $error, [ + 'event' => 'provisioning.failed', + 'customer_id' => $vm->id, + 'error' => $error, + ]); + } + + public function vmDown(Customer $vm, User $user): void + { + $this->send($user, 'VM offline: '.$vm->name, "Ihre VM {$vm->name} ist nicht mehr erreichbar (Proxmox).", [ + 'event' => 'vm.down', + ]); + } + + private function send(User $user, string $subject, string $body, array $webhookPayload): void + { + if (config('hosting.plesk.mail_enabled', true)) { + try { + Mail::raw($body, fn ($m) => $m->to($user->email)->subject($subject)); + } catch (\Throwable $e) { + Log::warning('Mail send failed', ['error' => $e->getMessage()]); + } + } + + $url = config('hosting.notifications.webhook_url'); + if ($url) { + try { + Http::timeout(10)->post($url, array_merge($webhookPayload, [ + 'email' => $user->email, + 'subject' => $subject, + 'body' => $body, + ])); + } catch (\Throwable $e) { + Log::warning('Webhook failed', ['error' => $e->getMessage()]); + } + } + } +} diff --git a/app/Services/Hosting/Plesk/PleskClient.php b/app/Services/Hosting/Plesk/PleskClient.php new file mode 100644 index 0000000..8648f54 --- /dev/null +++ b/app/Services/Hosting/Plesk/PleskClient.php @@ -0,0 +1,219 @@ +http = Http::baseUrl(rtrim(config('hosting.plesk.url'), '/').'/api/v2') + ->withBasicAuth($user, $password) + ->acceptJson() + ->timeout((int) config('hosting.plesk.timeout', 30)) + ->when(! $verify, fn (PendingRequest $request) => $request->withoutVerifying()); + } + + public function createARecord(string $domain, string $subdomain, string $ip): array + { + $this->validateDomain($domain); + $this->validateSubdomain($subdomain); + $this->validateIp($ip); + + $baseDomain = config('hosting.plesk.base_domain'); + $zoneDomain = $this->resolveZoneDomain($domain, $baseDomain); + $host = $this->resolveHostLabel($domain, $subdomain, $baseDomain); + + if ($this->findARecord($zoneDomain, $host) !== null) { + throw new PleskException( + "DNS A record already exists for {$host}.{$zoneDomain}", + step: 'plesk_dns_exists', + ); + } + + $targetIp = config('hosting.traefik.public_ip') ?: $ip; + + Log::info('Plesk: creating A record', [ + 'zone' => $zoneDomain, + 'host' => $host, + 'ip' => $targetIp, + ]); + + $response = $this->http->post("/domains/{$zoneDomain}/dns/records", [ + 'type' => 'A', + 'host' => $host === '@' ? '' : $host, + 'value' => $targetIp, + ]); + + if ($response->failed()) { + throw new PleskException( + 'Plesk create A record failed: '.$response->body(), + step: 'plesk_create', + context: ['status' => $response->status()], + code: $response->status(), + ); + } + + return $response->json() ?? []; + } + + public function deleteARecord(string $domain, string $subdomain): void + { + $baseDomain = config('hosting.plesk.base_domain'); + $zoneDomain = $this->resolveZoneDomain($domain, $baseDomain); + $host = $this->resolveHostLabel($domain, $subdomain, $baseDomain); + + $record = $this->findARecord($zoneDomain, $host); + + if ($record === null) { + Log::warning('Plesk: A record not found for deletion', compact('zoneDomain', 'host')); + + return; + } + + $recordId = $record['id'] ?? null; + + if ($recordId === null) { + throw new PleskException('Plesk record id missing.', step: 'plesk_delete'); + } + + Log::info('Plesk: deleting A record', ['zone' => $zoneDomain, 'id' => $recordId]); + + $response = $this->http->delete("/domains/{$zoneDomain}/dns/records/{$recordId}"); + + if ($response->failed() && $response->status() !== 404) { + throw new PleskException( + 'Plesk delete A record failed: '.$response->body(), + step: 'plesk_delete', + code: $response->status(), + ); + } + } + + public function listRecords(string $domain): array + { + $zoneDomain = $this->resolveZoneDomain($domain, config('hosting.plesk.base_domain')); + + try { + $response = $this->http->get("/domains/{$zoneDomain}/dns/records"); + + if ($response->failed()) { + throw new PleskException( + 'Plesk list records failed: '.$response->body(), + step: 'plesk_list', + code: $response->status(), + ); + } + + return $response->json() ?? []; + } catch (ConnectionException $e) { + throw new PleskException( + 'Plesk connection failed: '.$e->getMessage(), + step: 'plesk_connection', + previous: $e, + ); + } + } + + public function dnsExists(string $domain, string $subdomain): bool + { + $zoneDomain = $this->resolveZoneDomain($domain, config('hosting.plesk.base_domain')); + $host = $this->resolveHostLabel($domain, $subdomain, config('hosting.plesk.base_domain')); + + return $this->findARecord($zoneDomain, $host) !== null; + } + + private function findARecord(string $zoneDomain, string $host): ?array + { + $records = $this->listRecords($zoneDomain); + $items = $records['records'] ?? (is_array($records) && array_is_list($records) ? $records : []); + + foreach ($items as $record) { + if (! is_array($record)) { + continue; + } + + $type = strtoupper((string) ($record['type'] ?? '')); + $recordHost = (string) ($record['host'] ?? $record['name'] ?? ''); + + if ($type !== 'A') { + continue; + } + + $normalizedHost = $recordHost === '' ? '@' : rtrim($recordHost, '.'); + + if ($normalizedHost === $host || $normalizedHost === "{$host}.{$zoneDomain}") { + return $record; + } + } + + return null; + } + + private function resolveZoneDomain(string $domain, string $baseDomain): string + { + if (str_ends_with($domain, '.'.$baseDomain) || $domain === $baseDomain) { + return $baseDomain; + } + + return $domain; + } + + private function resolveHostLabel(string $domain, string $subdomain, string $baseDomain): string + { + if ($subdomain !== '' && $subdomain !== '@') { + return $subdomain; + } + + if ($domain === $baseDomain) { + return '@'; + } + + if (str_ends_with($domain, '.'.$baseDomain)) { + return substr($domain, 0, -(strlen($baseDomain) + 1)); + } + + return explode('.', $domain)[0] ?? $subdomain; + } + + private function validateDomain(string $domain): void + { + if (! preg_match('/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/i', $domain)) { + throw new PleskException("Invalid domain: {$domain}", step: 'plesk_validation'); + } + } + + private function validateSubdomain(string $subdomain): void + { + if ($subdomain === '' || $subdomain === '@') { + return; + } + + if (! preg_match('/^[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?$/i', $subdomain)) { + throw new PleskException("Invalid subdomain: {$subdomain}", step: 'plesk_validation'); + } + } + + private function validateIp(string $ip): void + { + if (! filter_var($ip, FILTER_VALIDATE_IP)) { + throw new PleskException("Invalid IP: {$ip}", step: 'plesk_validation'); + } + } +} diff --git a/app/Services/Hosting/Provisioning/DeprovisionService.php b/app/Services/Hosting/Provisioning/DeprovisionService.php new file mode 100644 index 0000000..647682b --- /dev/null +++ b/app/Services/Hosting/Provisioning/DeprovisionService.php @@ -0,0 +1,86 @@ + $customer->id]); + + $this->deleteBackups($customer); + + $customerId = $customer->id; + $vmid = $customer->vmid; + + if ($actor) { + VmActivityLog::query()->create([ + 'customer_id' => $customerId, + 'user_id' => $actor->id, + 'action' => 'terminate.permanent', + 'status' => 'success', + ]); + } + + $this->provisioning->deprovision($customer); + + if ($vmid) { + $this->vmidReservation->scheduleRelease((int) $vmid, $customer); + } + + $customer->devices()->delete(); + $customer->delete(); + } + + /** + * VM entfernen, Kundeneintrag bleibt (Support-Fall). + */ + public function removeVmOnly(Customer $customer, ?User $actor = null): void + { + $this->provisioning->deprovision($customer); + + if ($customer->vmid) { + $this->vmidReservation->scheduleRelease((int) $customer->vmid, $customer); + } + + $customer->update([ + 'status' => 'failed', + 'provisioning_step' => 'deprovisioned', + 'vmid' => null, + ]); + } + + private function deleteBackups(Customer $customer): void + { + if (! $customer->vmid) { + return; + } + + if (! config('hosting.backups.enabled', false)) { + Log::info('Backup deletion skipped (PBS not enabled)', ['vmid' => $customer->vmid]); + + return; + } + + // PBS-Integration folgt in Phase 2, wenn API-Rechte auf inett-PBS vorhanden + Log::warning('PBS backup purge pending implementation', [ + 'vmid' => $customer->vmid, + 'storage' => config('hosting.backups.pbs_storage'), + ]); + } +} diff --git a/app/Services/Hosting/Provisioning/IpAddressAllocator.php b/app/Services/Hosting/Provisioning/IpAddressAllocator.php new file mode 100644 index 0000000..8fa11d9 --- /dev/null +++ b/app/Services/Hosting/Provisioning/IpAddressAllocator.php @@ -0,0 +1,162 @@ +defaultPrivatePool(); + + return $this->allocate($pool, $preferred); + } + + public function allocatePublicIp(?IpPool $pool = null, ?string $preferred = null): string + { + $pool ??= IpPool::query() + ->where('type', IpPoolType::Public) + ->where('is_active', true) + ->first() ?? $this->bootstrapPublicPool(); + + if ($pool->type !== IpPoolType::Public) { + throw new ProvisioningException('Selected pool is not a public IP pool.', step: 'ip_allocation'); + } + + return $this->allocate($pool, $preferred, 'public_ip'); + } + + public function allocate(IpPool $pool, ?string $preferred = null, string $column = 'ip_address'): string + { + return DB::transaction(function () use ($pool, $preferred, $column) { + IpPool::query()->whereKey($pool->id)->lockForUpdate()->first(); + + if ($preferred !== null) { + if (! $pool->containsIp($preferred)) { + throw new ProvisioningException( + "IP {$preferred} is outside pool {$pool->name}.", + step: 'ip_allocation', + ); + } + + if ($this->isIpUsed($preferred, $pool, $column)) { + throw new ProvisioningException( + "IP address {$preferred} is already in use.", + step: 'ip_allocation', + ); + } + + return $preferred; + } + + $start = ip2long($pool->start_ip); + $end = ip2long($pool->end_ip); + + if ($start === false || $end === false || $start > $end) { + throw new ProvisioningException('Invalid IP pool range.', step: 'ip_allocation'); + } + + $used = $this->usedIpsInPool($pool, $column); + + for ($long = $start; $long <= $end; $long++) { + if (! isset($used[$long])) { + return long2ip($long); + } + } + + throw new ProvisioningException("No free IPs in pool {$pool->name}.", step: 'ip_allocation'); + }, 3); + } + + private function defaultPrivatePool(): IpPool + { + $pool = IpPool::query() + ->where('type', IpPoolType::Private) + ->where('is_active', true) + ->orderBy('id') + ->first(); + + if ($pool) { + return $pool; + } + + return $this->bootstrapPoolFromConfig(IpPoolType::Private); + } + + private function bootstrapPublicPool(): IpPool + { + return IpPool::query()->firstOrCreate( + ['name' => 'Öffentlich 185.45.149.x', 'type' => IpPoolType::Public], + [ + 'start_ip' => config('hosting.public_network.ip_pool_start'), + 'end_ip' => config('hosting.public_network.ip_pool_end'), + 'gateway' => config('hosting.public_network.gateway'), + 'cidr' => config('hosting.public_network.cidr'), + 'is_active' => true, + ], + ); + } + + private function bootstrapPoolFromConfig(IpPoolType $type): IpPool + { + return IpPool::query()->firstOrCreate( + ['name' => 'Privat 10.32.0.0/24', 'type' => IpPoolType::Private], + [ + 'start_ip' => config('hosting.network.ip_pool_start'), + 'end_ip' => config('hosting.network.ip_pool_end'), + 'gateway' => config('hosting.network.gateway'), + 'cidr' => config('hosting.network.cidr'), + 'is_active' => true, + ], + ); + } + + private function usedIpsInPool(IpPool $pool, string $column): array + { + $query = Customer::query() + ->where('ip_pool_id', $pool->id) + ->whereIn('status', ['pending', 'active']); + + if ($column === 'public_ip') { + return $query->whereNotNull('public_ip') + ->pluck('public_ip') + ->merge( + Customer::query() + ->whereIn('status', ['pending', 'active']) + ->whereNotNull('public_ip') + ->pluck('public_ip') + ) + ->unique() + ->map(fn (string $ip) => ip2long($ip)) + ->filter() + ->flip() + ->all(); + } + + return $query->whereNotNull('ip_address') + ->pluck('ip_address') + ->map(fn (string $ip) => ip2long($ip)) + ->filter() + ->flip() + ->all(); + } + + private function isIpUsed(string $ip, IpPool $pool, string $column): bool + { + $check = Customer::query() + ->whereIn('status', ['pending', 'active']); + + if ($column === 'public_ip') { + return (clone $check)->where('public_ip', $ip)->exists() + || (clone $check)->where('ip_address', $ip)->exists(); + } + + return (clone $check)->where('ip_address', $ip)->exists() + || (clone $check)->where('public_ip', $ip)->exists(); + } +} diff --git a/app/Services/Hosting/Provisioning/ProvisioningRollback.php b/app/Services/Hosting/Provisioning/ProvisioningRollback.php new file mode 100644 index 0000000..e5b111f --- /dev/null +++ b/app/Services/Hosting/Provisioning/ProvisioningRollback.php @@ -0,0 +1,69 @@ +completed[] = ['step' => $step, 'context' => $context]; + } + + public function execute(): void + { + Log::warning('Provisioning rollback started', ['steps' => count($this->completed)]); + + foreach (array_reverse($this->completed) as $entry) { + try { + match ($entry['step']) { + 'traefik_route' => $this->rollbackTraefik($entry['context']), + 'plesk_dns' => $this->rollbackDns($entry['context']), + 'proxmox_vm_started', 'proxmox_vm_created' => $this->rollbackVm($entry['context']), + default => null, + }; + } catch (\Throwable $e) { + Log::error('Rollback step failed', [ + 'step' => $entry['step'], + 'error' => $e->getMessage(), + ]); + } + } + } + + private function rollbackTraefik(array $context): void + { + if (! empty($context['domain'])) { + $this->traefik->removeCustomerRoute($context['domain']); + Log::info('Rollback: Traefik route removed', $context); + } + } + + private function rollbackDns(array $context): void + { + if (! empty($context['domain']) && isset($context['subdomain'])) { + $this->plesk->deleteARecord($context['domain'], $context['subdomain']); + Log::info('Rollback: Plesk DNS removed', $context); + } + } + + private function rollbackVm(array $context): void + { + if (! empty($context['vmid'])) { + $this->proxmox->deleteVM((int) $context['vmid']); + Log::info('Rollback: Proxmox VM deleted', $context); + } + } +} diff --git a/app/Services/Hosting/Provisioning/ProvisioningService.php b/app/Services/Hosting/Provisioning/ProvisioningService.php new file mode 100644 index 0000000..daf6f97 --- /dev/null +++ b/app/Services/Hosting/Provisioning/ProvisioningService.php @@ -0,0 +1,262 @@ +proxmox, $this->plesk, $this->traefik); + + try { + return DB::transaction(function () use ($customer, $data, $rollback) { + $this->updateStep($customer, 'reserving_vmid', 'pending'); + + $vmid = $data->vmid ?? $customer->vmid ?? $this->reserveVmid($customer); + $customer->update(['vmid' => $vmid]); + $this->vmidReservation->activate($vmid, $customer); + + $pool = $this->resolveIpPool($customer); + $gateway = $pool->gateway ?? config('hosting.network.gateway'); + $cidr = $pool->cidr ?? (int) config('hosting.network.cidr'); + + $this->updateStep($customer, 'allocating_ip'); + $ip = $data->ip ?? $this->ipAllocator->allocateFromPool($pool); + $customer->update(['ip_address' => $ip, 'ip_pool_id' => $pool->id]); + + $publicIp = null; + if (! $data->behind_traefik) { + $publicIp = $data->public_ip ?? $this->ipAllocator->allocatePublicIp(); + $customer->update(['public_ip' => $publicIp]); + } + + $ipConfig0 = $this->proxmox->buildIpConfig($ip, $gateway, $cidr); + $ipConfig1 = null; + if ($publicIp) { + $publicPool = IpPool::query()->where('type', 'public')->where('is_active', true)->first(); + $ipConfig1 = $this->proxmox->buildIpConfig( + $publicIp, + $publicPool?->gateway, + $publicPool?->cidr ?? 32, + ); + } + + $vmName = $this->vmName($data->customer_name, $vmid); + $this->updateStep($customer, 'creating_vm'); + $templateVmid = $this->resolveTemplateVmid($customer); + $this->proxmox->createVM( + vmid: $vmid, + name: $vmName, + cpu: $data->cpu, + ramMb: $data->ram, + diskGb: $data->disk, + ipConfig: $ipConfig0, + templateVmid: $templateVmid, + ); + if ($ipConfig1) { + $this->proxmox->setCloudInitIps($vmid, $ipConfig0, $ipConfig1, $vmName); + } + $rollback->mark('proxmox_vm_created', ['vmid' => $vmid]); + + $customer->load('devices'); + if ($customer->devices->isNotEmpty()) { + $this->updateStep($customer, 'applying_devices'); + $this->proxmox->applyDevices($vmid, $customer->devices); + } + + $this->updateStep($customer, 'starting_vm'); + $this->proxmox->startVM($vmid); + $rollback->mark('proxmox_vm_started', ['vmid' => $vmid]); + + if ($customer->attached_iso) { + $this->updateStep($customer, 'mounting_iso'); + $this->proxmox->mountIso($vmid, $customer->attached_iso); + } + + if ($data->requiresTraefik()) { + $subdomain = $data->subdomain(); + $this->updateStep($customer, 'creating_dns'); + $this->plesk->createARecord($data->domain, $subdomain, $ip); + $rollback->mark('plesk_dns', [ + 'domain' => $data->domain, + 'subdomain' => $subdomain, + ]); + + $this->updateStep($customer, 'configuring_traefik'); + $this->traefik->addCustomerRoute($data->domain, $ip); + $rollback->mark('traefik_route', ['domain' => $data->domain]); + + $this->updateStep($customer, 'reloading_traefik'); + $this->traefik->reload(); + } + + try { + $live = $this->proxmox->normalizeLiveStatus($this->proxmox->getVMStatus($vmid)); + $customer->update([ + 'status' => 'active', + 'provisioning_step' => 'completed', + 'error_message' => null, + 'proxmox_status' => $live['status'], + 'proxmox_uptime' => $live['uptime'], + 'proxmox_status_at' => now(), + ]); + } catch (\Throwable) { + $customer->update([ + 'status' => 'active', + 'provisioning_step' => 'completed', + 'error_message' => null, + ]); + } + + Log::info('Provisioning completed', [ + 'customer_id' => $customer->id, + 'vmid' => $vmid, + 'domain' => $data->domain, + 'ip' => $ip, + 'public_ip' => $publicIp, + ]); + + return $customer->fresh(); + }); + } catch (\Throwable $e) { + Log::error('Provisioning failed', [ + 'customer_id' => $customer->id, + 'step' => $customer->provisioning_step, + 'error' => $e->getMessage(), + ]); + + $rollback->execute(); + + $customer->update([ + 'status' => 'failed', + 'error_message' => $e->getMessage(), + ]); + + if ($e instanceof ProvisioningException) { + throw $e; + } + + throw new ProvisioningException( + $e->getMessage(), + step: $customer->provisioning_step, + previous: $e, + ); + } + } + + public function deprovision(Customer $customer): void + { + if ($customer->domain && $customer->behind_traefik) { + try { + $this->traefik->removeCustomerRoute($customer->domain); + $this->traefik->reload(); + } catch (\Throwable $e) { + Log::warning('Deprovision: Traefik cleanup failed', ['error' => $e->getMessage()]); + } + + try { + $data = CustomerProvisionData::fromCustomer($customer); + $this->plesk->deleteARecord($customer->domain, $data->subdomain()); + } catch (\Throwable $e) { + Log::warning('Deprovision: DNS cleanup failed', ['error' => $e->getMessage()]); + } + } + + if ($customer->vmid) { + $this->proxmox->deleteVM((int) $customer->vmid); + } + + $customer->update([ + 'status' => 'failed', + 'provisioning_step' => 'deprovisioned', + 'error_message' => null, + ]); + } + + private function resolveIpPool(Customer $customer): IpPool + { + if ($customer->ip_pool_id) { + $pool = IpPool::query()->find($customer->ip_pool_id); + if ($pool && $pool->is_active) { + return $pool; + } + } + + return IpPool::query() + ->where('type', 'private') + ->where('is_active', true) + ->orderBy('id') + ->firstOrFail(); + } + + private function reserveVmid(Customer $customer): int + { + if ($customer->vmid) { + $vmid = (int) $customer->vmid; + if ($this->vmidReservation->isVmidBlocked($vmid)) { + return $vmid; + } + } + + $vmid = $this->vmidReservation->reserveForCustomer($customer); + + if ($this->proxmox->vmExists($vmid)) { + throw new ProvisioningException( + "VMID {$vmid} already exists in Proxmox.", + step: 'reserving_vmid', + ); + } + + return $vmid; + } + + private function vmName(string $customerName, int $vmid): string + { + $slug = preg_replace('/[^a-z0-9-]/', '-', strtolower($customerName)) ?: 'customer'; + + return substr("host-{$slug}-{$vmid}", 0, 63); + } + + private function resolveTemplateVmid(Customer $customer): ?int + { + if ($customer->provision_mode === 'empty') { + return null; + } + + $fromDb = VmTemplate::query()->where('is_active', true)->orderBy('id')->value('proxmox_template_vmid'); + $fromEnv = config('hosting.proxmox.template_vmid'); + + return $fromDb ? (int) $fromDb : ($fromEnv ? (int) $fromEnv : null); + } + + private function updateStep(Customer $customer, string $step, ?string $status = null): void + { + $payload = ['provisioning_step' => $step]; + + if ($status !== null) { + $payload['status'] = $status; + } + + $customer->update($payload); + Log::info('Provisioning step', ['customer_id' => $customer->id, 'step' => $step]); + } +} diff --git a/app/Services/Hosting/Provisioning/VmidReservationService.php b/app/Services/Hosting/Provisioning/VmidReservationService.php new file mode 100644 index 0000000..0c0cfb6 --- /dev/null +++ b/app/Services/Hosting/Provisioning/VmidReservationService.php @@ -0,0 +1,104 @@ +findNextAvailableVmid(); + + VmidReservation::query()->create([ + 'vmid' => $vmid, + 'customer_id' => $customer->id, + 'status' => 'reserved', + ]); + + return $vmid; + }); + } + + public function activate(int $vmid, Customer $customer): void + { + VmidReservation::query() + ->where('vmid', $vmid) + ->where('customer_id', $customer->id) + ->update([ + 'status' => 'active', + 'release_at' => null, + ]); + } + + public function scheduleRelease(int $vmid, ?Customer $customer = null): void + { + $hours = (int) config('hosting.vmid.release_after_hours', 48); + + $query = VmidReservation::query()->where('vmid', $vmid); + + if ($customer) { + $query->where('customer_id', $customer->id); + } + + $query->update([ + 'status' => 'pending_release', + 'release_at' => now()->addHours($hours), + ]); + } + + public function releaseDue(): int + { + $count = 0; + + $due = VmidReservation::query() + ->where('status', 'pending_release') + ->where('release_at', '<=', now()) + ->get(); + + foreach ($due as $reservation) { + $reservation->update([ + 'status' => 'released', + 'released_at' => now(), + ]); + $count++; + } + + return $count; + } + + public function isVmidBlocked(int $vmid): bool + { + return VmidReservation::query() + ->where('vmid', $vmid) + ->whereIn('status', ['reserved', 'active', 'pending_release']) + ->exists(); + } + + private function findNextAvailableVmid(): int + { + $start = (int) config('hosting.vmid.range_start', 2000); + $end = (int) config('hosting.vmid.range_end', 2999); + + $blocked = VmidReservation::query() + ->whereIn('status', ['reserved', 'active', 'pending_release']) + ->pluck('vmid') + ->flip() + ->all(); + + for ($vmid = $start; $vmid <= $end; $vmid++) { + if (! isset($blocked[$vmid])) { + return $vmid; + } + } + + throw new ProvisioningException( + "No free VMID in range {$start}-{$end}.", + step: 'reserving_vmid', + ); + } +} diff --git a/app/Services/Hosting/Proxmox/ProxmoxClient.php b/app/Services/Hosting/Proxmox/ProxmoxClient.php new file mode 100644 index 0000000..a7915dc --- /dev/null +++ b/app/Services/Hosting/Proxmox/ProxmoxClient.php @@ -0,0 +1,591 @@ +http !== null) { + return $this->http; + } + + $token = config('hosting.proxmox.token'); + if (empty($token)) { + throw new ProxmoxException('PROXMOX_TOKEN is not configured.'); + } + + $verify = filter_var(config('hosting.proxmox.verify_ssl'), FILTER_VALIDATE_BOOLEAN); + + return $this->http = Http::baseUrl(rtrim(config('hosting.proxmox.url'), '/').'/api2/json') + ->withHeaders([ + 'Authorization' => str_starts_with($token, 'PVEAPIToken=') ? $token : 'PVEAPIToken='.$token, + ]) + ->acceptJson() + ->timeout((int) config('hosting.proxmox.timeout', 120)) + ->when(! $verify, fn (PendingRequest $request) => $request->withoutVerifying()); + } + + public function getNextVmid(): int + { + $response = $this->request('GET', '/cluster/nextid'); + + return (int) $response['data']; + } + + public function vmExists(int $vmid): bool + { + try { + $this->getVMStatus($vmid); + + return true; + } catch (ProxmoxException $e) { + if (str_contains($e->getMessage(), 'does not exist') || $e->getCode() === 404) { + return false; + } + + throw $e; + } + } + + public function createVM( + int $vmid, + string $name, + int $cpu, + int $ramMb, + int $diskGb, + string $ipConfig, + ?int $templateVmid = null, + ): void { + if ($this->vmExists($vmid)) { + throw new ProxmoxException("VM {$vmid} already exists.", step: 'proxmox_create'); + } + + $node = config('hosting.proxmox.node'); + $storage = config('hosting.proxmox.storage'); + $bridge = config('hosting.proxmox.bridge'); + $templateVmid ??= config('hosting.proxmox.template_vmid') ? (int) config('hosting.proxmox.template_vmid') : null; + + Log::info('Proxmox: creating VM', compact('vmid', 'name', 'cpu', 'ramMb', 'diskGb')); + + if ($templateVmid) { + $this->cloneFromTemplateVmid((int) $templateVmid, $vmid, $name); + $this->resizeVmIfNeeded($vmid, $cpu, $ramMb, $diskGb); + $this->configureCloudInit($vmid, $ipConfig, $name); + } else { + $this->createVmFromScratch($vmid, $name, $cpu, $ramMb, $diskGb, $ipConfig, $node, $storage, $bridge); + } + } + + public function setCloudInitIps(int $vmid, string $ipconfig0, ?string $ipconfig1, string $name): void + { + $this->configureCloudInit($vmid, $ipconfig0, $name, $ipconfig1); + } + + public function node(): string + { + return (string) config('hosting.proxmox.node'); + } + + public function startVM(int $vmid): void + { + $this->powerAction($vmid, 'start'); + } + + public function shutdownVM(int $vmid, int $timeout = 60): void + { + $this->powerAction($vmid, 'shutdown', ['timeout' => $timeout]); + } + + public function stopVM(int $vmid): void + { + $this->powerAction($vmid, 'stop'); + } + + public function rebootVM(int $vmid, int $timeout = 60): void + { + $this->powerAction($vmid, 'reboot', ['timeout' => $timeout]); + } + + public function resetVM(int $vmid): void + { + $this->powerAction($vmid, 'reset'); + } + + public function powerAction(int $vmid, string $action, array $params = []): void + { + $node = $this->node(); + Log::info('Proxmox: power action', ['vmid' => $vmid, 'action' => $action]); + $this->request('POST', "/nodes/{$node}/qemu/{$vmid}/status/{$action}", $params); + } + + public function getVmConfig(int $vmid): array + { + $node = $this->node(); + $response = $this->request('GET', "/nodes/{$node}/qemu/{$vmid}/config"); + + return $response['data'] ?? []; + } + + /** + * @return array + */ + public function listIsos(?string $storage = null): array + { + $storage ??= config('hosting.proxmox.iso_storage', 'local'); + $node = $this->node(); + + $response = $this->request('GET', "/nodes/{$node}/storage/{$storage}/content", [ + 'content' => 'iso', + ]); + + $items = $response['data'] ?? []; + + return collect($items) + ->filter(fn ($item) => is_array($item) && ($item['content'] ?? '') === 'iso') + ->map(fn (array $item) => [ + 'volid' => (string) ($item['volid'] ?? ''), + 'label' => (string) ($item['volid'] ?? $item['name'] ?? 'unknown'), + 'size' => (int) ($item['size'] ?? 0), + ]) + ->filter(fn (array $item) => $item['volid'] !== '') + ->values() + ->all(); + } + + public function mountIso(int $vmid, string $isoVolid, ?string $device = null): void + { + $device ??= config('hosting.proxmox.iso_device', 'ide2'); + $node = $this->node(); + + if (! str_contains($isoVolid, ':')) { + $storage = config('hosting.proxmox.iso_storage', 'local'); + $isoVolid = "{$storage}:iso/{$isoVolid}"; + } + + Log::info('Proxmox: mounting ISO', ['vmid' => $vmid, 'iso' => $isoVolid, 'device' => $device]); + + $this->request('PUT', "/nodes/{$node}/qemu/{$vmid}/config", [ + $device => "{$isoVolid},media=cdrom", + 'boot' => "order={$device};scsi0", + ]); + } + + public function unmountIso(int $vmid, ?string $device = null): void + { + $device ??= config('hosting.proxmox.iso_device', 'ide2'); + $node = $this->node(); + + Log::info('Proxmox: unmounting ISO', ['vmid' => $vmid, 'device' => $device]); + + $this->request('PUT', "/nodes/{$node}/qemu/{$vmid}/config", [ + 'delete' => $device, + 'boot' => 'order=scsi0', + ]); + } + + /** + * @return array{port: string, ticket: string, cert: ?string, node: string, vmid: int} + */ + public function createVncProxy(int $vmid): array + { + $node = $this->node(); + + $response = $this->request('POST', "/nodes/{$node}/qemu/{$vmid}/vncproxy", [ + 'websocket' => 1, + ]); + + $data = $response['data'] ?? []; + + return [ + 'port' => (string) ($data['port'] ?? ''), + 'ticket' => (string) ($data['ticket'] ?? ''), + 'cert' => isset($data['cert']) ? (string) $data['cert'] : null, + 'node' => $node, + 'vmid' => $vmid, + ]; + } + + public function buildVncWebSocketUrl(int $vmid, string $port, string $ticket): string + { + $base = rtrim(config('hosting.proxmox.console_ws_url') ?: config('hosting.proxmox.url'), '/'); + $parsed = parse_url($base); + $scheme = ($parsed['scheme'] ?? 'https') === 'https' ? 'wss' : 'ws'; + $host = $parsed['host'] ?? 'localhost'; + $portNum = $parsed['port'] ?? (($parsed['scheme'] ?? 'https') === 'https' ? 8006 : 80); + $node = $this->node(); + + return sprintf( + '%s://%s:%s/api2/json/nodes/%s/qemu/%d/vncwebsocket?port=%s&vncticket=%s', + $scheme, + $host, + $portNum, + $node, + $vmid, + urlencode($port), + urlencode($ticket), + ); + } + + public function normalizeLiveStatus(array $status): array + { + return [ + 'status' => (string) ($status['status'] ?? 'unknown'), + 'uptime' => (int) ($status['uptime'] ?? 0), + 'cpu' => (float) ($status['cpu'] ?? 0), + 'mem' => (int) ($status['mem'] ?? 0), + 'maxmem' => (int) ($status['maxmem'] ?? 0), + 'disk' => (int) ($status['disk'] ?? 0), + 'maxdisk' => (int) ($status['maxdisk'] ?? 0), + ]; + } + + public function waitForTask(string $upid, int $maxSeconds = 600): void + { + $node = $this->node(); + $deadline = time() + $maxSeconds; + + while (time() < $deadline) { + $response = $this->request('GET', '/nodes/'.$node.'/tasks/'.rawurlencode($upid).'/status'); + $status = $response['data']['status'] ?? ''; + if ($status === 'stopped') { + $exit = $response['data']['exitstatus'] ?? 'OK'; + if ($exit !== 'OK') { + throw new ProxmoxException('Proxmox task failed: '.$exit, step: 'proxmox_task'); + } + + return; + } + sleep(2); + } + + throw new ProxmoxException('Proxmox task timeout: '.$upid, step: 'proxmox_task'); + } + + public function createSnapshot(int $vmid, string $name): void + { + $node = $this->node(); + $response = $this->request('POST', "/nodes/{$node}/qemu/{$vmid}/snapshot", [ + 'snapname' => $name, + ]); + if (! empty($response['data'])) { + $this->waitForTask($response['data']); + } + } + + public function rollbackSnapshot(int $vmid, string $name): void + { + $node = $this->node(); + $response = $this->request('POST', "/nodes/{$node}/qemu/{$vmid}/snapshot/{$name}/rollback"); + if (! empty($response['data'])) { + $this->waitForTask($response['data']); + } + } + + public function deleteSnapshot(int $vmid, string $name): void + { + $node = $this->node(); + $this->request('DELETE', "/nodes/{$node}/qemu/{$vmid}/snapshot/{$name}"); + } + + /** + * @return array + */ + public function listSnapshots(int $vmid): array + { + $node = $this->node(); + $response = $this->request('GET', "/nodes/{$node}/qemu/{$vmid}/snapshot"); + + return collect($response['data'] ?? []) + ->filter(fn ($item) => is_array($item)) + ->map(fn (array $item) => [ + 'name' => (string) ($item['name'] ?? ''), + 'description' => (string) ($item['description'] ?? ''), + ]) + ->filter(fn ($item) => $item['name'] !== '') + ->values() + ->all(); + } + + public function startBackup(int $vmid, string $storage): string + { + $node = $this->node(); + $response = $this->request('POST', "/nodes/{$node}/vzdump", [ + 'vmid' => $vmid, + 'storage' => $storage, + 'mode' => 'snapshot', + 'compress' => 'zstd', + ]); + + return (string) ($response['data'] ?? ''); + } + + public function getFirewallRules(int $vmid): array + { + $node = $this->node(); + $response = $this->request('GET', "/nodes/{$node}/qemu/{$vmid}/firewall/rules"); + + return $response['data'] ?? []; + } + + public function setFirewallRules(int $vmid, array $rules): void + { + $node = $this->node(); + // Replace all rules: delete existing then add - simplified: enable firewall + pos rules via PUT pos + $this->request('PUT', "/nodes/{$node}/qemu/{$vmid}/firewall/options", ['enable' => 1]); + foreach ($rules as $pos => $rule) { + $this->request('POST', "/nodes/{$node}/qemu/{$vmid}/firewall/rules", array_merge($rule, ['pos' => $pos])); + } + } + + public function uploadIsoToStorage(string $storage, string $filename, string $localPath): void + { + $node = $this->node(); + $client = $this->http(); + $response = $client->attach( + 'content', + file_get_contents($localPath), + $filename + )->post("/nodes/{$node}/storage/{$storage}/upload", [ + 'content' => 'iso', + 'filename' => $filename, + ]); + + if ($response->failed()) { + throw new ProxmoxException('ISO upload failed: '.$response->body(), step: 'proxmox_upload'); + } + } + + public function deleteStorageFile(string $storage, string $volid): void + { + $node = $this->node(); + $this->request('DELETE', "/nodes/{$node}/storage/{$storage}/content/".urlencode($volid)); + } + + public function cloneFromTemplateVmid(int $templateVmid, int $newVmid, string $name): void + { + $node = $this->node(); + $response = $this->request('POST', "/nodes/{$node}/qemu/{$templateVmid}/clone", [ + 'newid' => $newVmid, + 'name' => $name, + 'full' => 1, + 'target' => $node, + ]); + if (! empty($response['data'])) { + $this->waitForTask($response['data']); + } + } + + public function deleteVM(int $vmid): void + { + if (! $this->vmExists($vmid)) { + Log::warning('Proxmox: VM already absent, skipping delete', ['vmid' => $vmid]); + + return; + } + + try { + $status = $this->getVMStatus($vmid); + if (($status['status'] ?? '') === 'running') { + $this->stopVM($vmid); + $this->waitUntilStopped($vmid); + } + } catch (ProxmoxException) { + // continue with delete attempt + } + + $node = config('hosting.proxmox.node'); + Log::info('Proxmox: deleting VM', ['vmid' => $vmid]); + $this->request('DELETE', "/nodes/{$node}/qemu/{$vmid}"); + } + + public function getVMStatus(int $vmid): array + { + $node = config('hosting.proxmox.node'); + $response = $this->request('GET', "/nodes/{$node}/qemu/{$vmid}/status/current"); + + return $response['data'] ?? []; + } + + public function buildIpConfig(string $ip, ?string $gateway = null, ?int $cidr = null): string + { + $cidr ??= (int) config('hosting.network.cidr'); + $gateway ??= config('hosting.network.gateway'); + + return "ip={$ip}/{$cidr},gw={$gateway}"; + } + + /** + * @param iterable $devices + */ + public function applyDevices(int $vmid, iterable $devices): void + { + $node = config('hosting.proxmox.node'); + $storage = config('hosting.proxmox.storage'); + $params = []; + + foreach ($devices as $device) { + $config = $device->config ?? []; + $slot = $device->slot; + + match ($device->type) { + \App\Models\VmDevice::TYPE_DISK => $params[$slot ?? 'scsi1'] = sprintf( + '%s:%d', + $config['storage'] ?? $storage, + (int) ($config['size_gb'] ?? 10), + ), + \App\Models\VmDevice::TYPE_NETWORK => $params[$slot ?? 'net1'] = sprintf( + '%s,bridge=%s', + $config['model'] ?? 'virtio', + $config['bridge'] ?? config('hosting.proxmox.bridge'), + ), + \App\Models\VmDevice::TYPE_USB => $params[$slot ?? 'usb0'] = $config['host_id'] ?? 'host=0', + \App\Models\VmDevice::TYPE_PCI => $params[$slot ?? 'hostpci0'] = $config['address'] ?? '', + default => null, + }; + } + + $params = array_filter($params, fn ($v) => $v !== '' && $v !== null); + + if ($params === []) { + return; + } + + Log::info('Proxmox: applying VM devices', ['vmid' => $vmid, 'devices' => array_keys($params)]); + $this->request('PUT', "/nodes/{$node}/qemu/{$vmid}/config", $params); + } + + public function updateVmResources(int $vmid, int $cpu, int $ramMb, int $diskGb): void + { + $this->resizeVmIfNeeded($vmid, $cpu, $ramMb, $diskGb); + } + + private function resizeVmIfNeeded(int $vmid, int $cpu, int $ramMb, int $diskGb): void + { + $node = config('hosting.proxmox.node'); + + $this->request('PUT', "/nodes/{$node}/qemu/{$vmid}/config", [ + 'cores' => $cpu, + 'memory' => $ramMb, + ]); + + // Disk resize depends on storage layout; best-effort grow on scsi0 + try { + $this->request('PUT', "/nodes/{$node}/qemu/{$vmid}/resize", [ + 'disk' => 'scsi0', + 'size' => $diskGb.'G', + ]); + } catch (ProxmoxException $e) { + Log::warning('Proxmox: disk resize skipped', ['vmid' => $vmid, 'error' => $e->getMessage()]); + } + } + + private function configureCloudInit(int $vmid, string $ipConfig, string $name, ?string $ipConfig1 = null): void + { + $node = config('hosting.proxmox.node'); + $bridge = config('hosting.proxmox.bridge'); + + $params = [ + 'name' => $name, + 'ipconfig0' => $ipConfig, + 'net0' => "virtio,bridge={$bridge}", + ]; + + if ($ipConfig1) { + $publicBridge = config('hosting.proxmox.public_bridge', 'vmbr1'); + $params['ipconfig1'] = $ipConfig1; + $params['net1'] = "virtio,bridge={$publicBridge}"; + } + + $this->request('PUT', "/nodes/{$node}/qemu/{$vmid}/config", $params); + } + + private function createVmFromScratch( + int $vmid, + string $name, + int $cpu, + int $ramMb, + int $diskGb, + string $ipConfig, + string $node, + string $storage, + string $bridge, + ): void { + $this->request('POST', "/nodes/{$node}/qemu", [ + 'vmid' => $vmid, + 'name' => $name, + 'cores' => $cpu, + 'memory' => $ramMb, + 'ostype' => 'l26', + 'scsihw' => 'virtio-scsi-pci', + 'scsi0' => "{$storage}:{$diskGb}", + 'ide2' => "{$storage}:cloudinit", + 'boot' => 'order=scsi0', + 'net0' => "virtio,bridge={$bridge}", + 'ipconfig0' => $ipConfig, + 'agent' => 1, + ]); + } + + private function waitUntilStopped(int $vmid, int $maxSeconds = 60): void + { + $deadline = time() + $maxSeconds; + + while (time() < $deadline) { + $status = $this->getVMStatus($vmid); + if (($status['status'] ?? '') !== 'running') { + return; + } + sleep(2); + } + + throw new ProxmoxException("Timeout waiting for VM {$vmid} to stop.", step: 'proxmox_stop'); + } + + private function request(string $method, string $uri, array $data = []): array + { + try { + $client = $this->http(); + $response = match (strtoupper($method)) { + 'GET' => $client->get($uri, $data), + 'POST' => $client->asForm()->post($uri, $data), + 'PUT' => $client->asForm()->put($uri, $data), + 'DELETE' => $client->delete($uri, $data), + default => throw new ProxmoxException("Unsupported HTTP method: {$method}"), + }; + + if ($response->failed()) { + $message = $response->json('errors') ?? $response->json('message') ?? $response->body(); + throw new ProxmoxException( + 'Proxmox API error: '.(is_string($message) ? $message : json_encode($message)), + step: 'proxmox_api', + context: ['uri' => $uri, 'status' => $response->status()], + code: $response->status(), + ); + } + + return $response->json() ?? []; + } catch (ConnectionException $e) { + throw new ProxmoxException( + 'Proxmox connection timeout or unreachable: '.$e->getMessage(), + step: 'proxmox_connection', + previous: $e, + ); + } catch (RequestException $e) { + throw new ProxmoxException( + 'Proxmox HTTP error: '.$e->getMessage(), + step: 'proxmox_http', + previous: $e, + ); + } + } +} diff --git a/app/Services/Hosting/Proxmox/VmManagementService.php b/app/Services/Hosting/Proxmox/VmManagementService.php new file mode 100644 index 0000000..2d0827d --- /dev/null +++ b/app/Services/Hosting/Proxmox/VmManagementService.php @@ -0,0 +1,192 @@ +vmid) { + throw new ProvisioningException('VM ist noch nicht in Proxmox provisioniert.', step: 'vm_not_ready'); + } + + if ($vm->status !== 'active') { + throw new ProvisioningException('VM ist nicht aktiv (Status: '.$vm->status.').', step: 'vm_not_active'); + } + } + + public function refreshLiveStatus(Customer $vm): array + { + $this->assertManageable($vm); + + $raw = $this->proxmox->getVMStatus((int) $vm->vmid); + $normalized = $this->proxmox->normalizeLiveStatus($raw); + + $vm->update([ + 'proxmox_status' => $normalized['status'], + 'proxmox_uptime' => $normalized['uptime'], + 'proxmox_status_at' => now(), + ]); + + return $normalized; + } + + public function power(Customer $vm, VmPowerAction $action, User $user): void + { + $this->assertManageable($vm); + + $live = $this->refreshLiveStatus($vm); + $isRunning = ($live['status'] ?? '') === 'running'; + + if ($action->requiresRunning() && ! $isRunning) { + throw new ProxmoxException('VM läuft nicht – Aktion nicht möglich.', step: 'power_state'); + } + + if ($action->requiresStopped() && $isRunning) { + throw new ProxmoxException('VM läuft bereits.', step: 'power_state'); + } + + try { + match ($action) { + VmPowerAction::Start => $this->proxmox->startVM((int) $vm->vmid), + VmPowerAction::Shutdown => $this->proxmox->shutdownVM((int) $vm->vmid), + VmPowerAction::Stop => $this->proxmox->stopVM((int) $vm->vmid), + VmPowerAction::Reboot => $this->proxmox->rebootVM((int) $vm->vmid), + VmPowerAction::Reset => $this->proxmox->resetVM((int) $vm->vmid), + }; + + $this->log($vm, $user, 'power.'.$action->value, 'success'); + $this->refreshLiveStatus($vm); + } catch (\Throwable $e) { + $this->log($vm, $user, 'power.'.$action->value, 'failed', $e->getMessage()); + throw $e; + } + } + + public function mountIso(Customer $vm, string $isoVolid, User $user): void + { + $this->assertManageable($vm); + + $available = collect($this->proxmox->listIsos())->pluck('volid'); + if (! $available->contains($isoVolid)) { + throw new ProxmoxException('ISO nicht im Storage gefunden.', step: 'iso_invalid'); + } + + try { + $this->proxmox->mountIso((int) $vm->vmid, $isoVolid); + $vm->update(['attached_iso' => $isoVolid]); + $this->log($vm, $user, 'iso.mount', 'success', null, ['iso' => $isoVolid]); + } catch (\Throwable $e) { + $this->log($vm, $user, 'iso.mount', 'failed', $e->getMessage()); + throw $e; + } + } + + public function unmountIso(Customer $vm, User $user): void + { + $this->assertManageable($vm); + + try { + $this->proxmox->unmountIso((int) $vm->vmid); + $vm->update(['attached_iso' => null]); + $this->log($vm, $user, 'iso.unmount', 'success'); + } catch (\Throwable $e) { + $this->log($vm, $user, 'iso.unmount', 'failed', $e->getMessage()); + throw $e; + } + } + + /** + * @return array{token: string, ws_url: string, vmid: int, node: string, expires_at: int} + */ + public function createConsoleSession(Customer $vm, User $user): array + { + $this->assertManageable($vm); + + $live = $this->refreshLiveStatus($vm); + if (($live['status'] ?? '') !== 'running') { + throw new ProxmoxException('Konsole nur bei laufender VM verfügbar. Bitte VM starten.', step: 'console_not_running'); + } + + $proxy = $this->proxmox->createVncProxy((int) $vm->vmid); + + if ($proxy['port'] === '' || $proxy['ticket'] === '') { + throw new ProxmoxException('VNC-Proxy konnte nicht erstellt werden.', step: 'console_proxy'); + } + + $token = Str::random(64); + $proxmoxWsUrl = $this->proxmox->buildVncWebSocketUrl((int) $vm->vmid, $proxy['port'], $proxy['ticket']); + $expiresAt = now()->addMinutes(5)->timestamp; + + $wsUrl = $proxmoxWsUrl; + if (config('hosting.console.proxy_enabled') && config('hosting.console.proxy_ws_url')) { + $wsUrl = rtrim(config('hosting.console.proxy_ws_url'), '/').'/'.$token; + } + + Cache::put($this->consoleCacheKey($token), [ + 'customer_id' => $vm->id, + 'user_id' => $user->id, + 'ws_url' => $proxmoxWsUrl, + 'ticket' => $proxy['ticket'], + 'port' => $proxy['port'], + 'vmid' => $vm->vmid, + 'node' => $proxy['node'], + 'cert' => $proxy['cert'], + ], 300); + + $this->log($vm, $user, 'console.open', 'success'); + + return [ + 'token' => $token, + 'ws_url' => $wsUrl, + 'vmid' => (int) $vm->vmid, + 'node' => $proxy['node'], + 'expires_at' => $expiresAt, + ]; + } + + public function getConsoleSession(string $token, User $user): array + { + $data = Cache::get($this->consoleCacheKey($token)); + + if (! $data) { + throw new ProxmoxException('Konsole-Session abgelaufen oder ungültig.', step: 'console_expired'); + } + + if ($data['user_id'] !== $user->id && ! $user->isAdmin()) { + throw new ProxmoxException('Kein Zugriff auf diese Konsole.', step: 'console_forbidden'); + } + + return $data; + } + + public function consoleCacheKey(string $token): string + { + return 'vm_console:'.$token; + } + + private function log(Customer $vm, User $user, string $action, string $status, ?string $message = null, array $meta = []): void + { + VmActivityLog::query()->create([ + 'customer_id' => $vm->id, + 'user_id' => $user->id, + 'action' => $action, + 'status' => $status, + 'message' => $message, + 'meta' => $meta ?: null, + ]); + } +} diff --git a/app/Services/Hosting/Reinstall/ReinstallService.php b/app/Services/Hosting/Reinstall/ReinstallService.php new file mode 100644 index 0000000..8fa1a52 --- /dev/null +++ b/app/Services/Hosting/Reinstall/ReinstallService.php @@ -0,0 +1,40 @@ +vmid) { + throw new \RuntimeException('VM ist nicht provisioniert.'); + } + + $this->snapshots->autoBeforeDestructive($vm, $user, 'reinstall'); + + $vmid = (int) $vm->vmid; + $this->proxmox->stopVM($vmid); + $this->proxmox->deleteVM($vmid); + + $vm->update([ + 'status' => 'pending', + 'provisioning_step' => 'queued', + 'proxmox_status' => null, + 'proxmox_uptime' => null, + 'error_message' => null, + ]); + + ProvisionCustomerJob::dispatch($vm->id); + } +} diff --git a/app/Services/Hosting/Snapshots/SnapshotService.php b/app/Services/Hosting/Snapshots/SnapshotService.php new file mode 100644 index 0000000..140e2cb --- /dev/null +++ b/app/Services/Hosting/Snapshots/SnapshotService.php @@ -0,0 +1,70 @@ +format('Ymd-His').'-'.Str::lower(Str::random(4)); + $this->proxmox->createSnapshot((int) $vm->vmid, $name); + + $hours = (int) (config('hosting.snapshots.retention_hours') ?? 48); + + return VmSnapshot::query()->create([ + 'customer_id' => $vm->id, + 'name' => $label ?? $name, + 'proxmox_snapshot_id' => $name, + 'auto_created' => $auto, + 'expires_at' => now()->addHours($hours), + ]); + } + + public function autoBeforeDestructive(Customer $vm, User $user, string $reason): void + { + if (! config('hosting.snapshots.auto_before_destructive', true)) { + return; + } + + $this->create($vm, $user, true, "auto-{$reason}"); + } + + public function rollback(Customer $vm, VmSnapshot $snapshot): void + { + $this->proxmox->rollbackSnapshot((int) $vm->vmid, $snapshot->proxmox_snapshot_id); + } + + public function delete(Customer $vm, VmSnapshot $snapshot): void + { + $this->proxmox->deleteSnapshot((int) $vm->vmid, $snapshot->proxmox_snapshot_id); + $snapshot->delete(); + } + + public function pruneExpired(): int + { + $count = 0; + $expired = VmSnapshot::query()->where('expires_at', '<=', now())->with('vm')->get(); + + foreach ($expired as $snapshot) { + if ($snapshot->vm?->vmid) { + try { + $this->proxmox->deleteSnapshot((int) $snapshot->vm->vmid, $snapshot->proxmox_snapshot_id); + } catch (\Throwable) { + // snapshot may already be gone in Proxmox + } + } + $snapshot->delete(); + $count++; + } + + return $count; + } +} diff --git a/app/Services/Hosting/Traefik/TraefikGenerator.php b/app/Services/Hosting/Traefik/TraefikGenerator.php new file mode 100644 index 0000000..22e7b25 --- /dev/null +++ b/app/Services/Hosting/Traefik/TraefikGenerator.php @@ -0,0 +1,233 @@ +sanitizeDomain($domain); + $ip = $this->sanitizeIp($ip); + + $config = $this->loadConfig(); + $routerKey = $this->routerKey($domain); + $serviceKey = $this->serviceKey($domain); + $port = (int) config('hosting.traefik.backend_port', 80); + $entrypoint = config('hosting.traefik.entrypoint', 'websecure'); + $certResolver = config('hosting.traefik.cert_resolver', 'letsencrypt'); + + $config['http'] ??= []; + $config['http']['routers'] ??= []; + $config['http']['services'] ??= []; + + $config['http']['routers'][$routerKey] = [ + 'rule' => 'Host(`'.$this->escapeHostRule($domain).'`)', + 'entryPoints' => [$entrypoint], + 'service' => $serviceKey, + 'tls' => [ + 'certResolver' => $certResolver, + ], + ]; + + $config['http']['services'][$serviceKey] = [ + 'loadBalancer' => [ + 'servers' => [ + ['url' => "http://{$ip}:{$port}"], + ], + ], + ]; + + $this->writeConfig($config); + Log::info('Traefik: route added', ['domain' => $domain, 'ip' => $ip]); + } + + public function removeCustomerRoute(string $domain): void + { + $domain = $this->sanitizeDomain($domain); + $config = $this->loadConfig(); + + $routerKey = $this->routerKey($domain); + $serviceKey = $this->serviceKey($domain); + + unset($config['http']['routers'][$routerKey], $config['http']['services'][$serviceKey]); + + $this->writeConfig($config); + Log::info('Traefik: route removed', ['domain' => $domain]); + } + + public function rebuildAllRoutes(iterable $customers): void + { + $config = $this->loadConfig(); + $config['http'] ??= []; + $config['http']['routers'] = $this->preserveNonManaged($config['http']['routers'] ?? [], 'routers'); + $config['http']['services'] = $this->preserveNonManaged($config['http']['services'] ?? [], 'services'); + + foreach ($customers as $customer) { + if (empty($customer->domain) || empty($customer->ip_address)) { + continue; + } + + $domain = $this->sanitizeDomain($customer->domain); + $ip = $this->sanitizeIp($customer->ip_address); + $routerKey = $this->routerKey($domain); + $serviceKey = $this->serviceKey($domain); + $port = (int) config('hosting.traefik.backend_port', 80); + $entrypoint = config('hosting.traefik.entrypoint', 'websecure'); + $certResolver = config('hosting.traefik.cert_resolver', 'letsencrypt'); + + $config['http']['routers'][$routerKey] = [ + 'rule' => 'Host(`'.$this->escapeHostRule($domain).'`)', + 'entryPoints' => [$entrypoint], + 'service' => $serviceKey, + 'tls' => ['certResolver' => $certResolver], + ]; + + $config['http']['services'][$serviceKey] = [ + 'loadBalancer' => [ + 'servers' => [['url' => "http://{$ip}:{$port}"]], + ], + ]; + } + + $this->writeConfig($config); + Log::info('Traefik: all customer routes rebuilt'); + } + + public function reload(): void + { + $command = config('hosting.traefik.reload_command'); + + if (empty($command)) { + Log::info('Traefik: no reload command configured, skipping reload'); + + return; + } + + $result = Process::timeout(30)->run($command); + + if (! $result->successful()) { + throw new TraefikException( + 'Traefik reload failed: '.$result->errorOutput(), + step: 'traefik_reload', + ); + } + + Log::info('Traefik: reload triggered'); + } + + private function loadConfig(): array + { + $path = $this->configPath(); + + if (! File::exists($path)) { + File::ensureDirectoryExists(dirname($path)); + + return ['http' => ['routers' => [], 'services' => []]]; + } + + $contents = File::get($path); + + if (trim($contents) === '') { + return ['http' => ['routers' => [], 'services' => []]]; + } + + try { + $parsed = Yaml::parse($contents, Yaml::PARSE_EXCEPTION_ON_INVALID_TYPE); + + return is_array($parsed) ? $parsed : ['http' => ['routers' => [], 'services' => []]]; + } catch (ParseException $e) { + throw new TraefikException( + 'Failed to parse Traefik config: '.$e->getMessage(), + step: 'traefik_parse', + previous: $e, + ); + } + } + + private function writeConfig(array $config): void + { + $path = $this->configPath(); + File::ensureDirectoryExists(dirname($path)); + + $yaml = Yaml::dump($config, 6, 2, Yaml::DUMP_EMPTY_ARRAY_AS_SEQUENCE); + + if (str_contains($yaml, "\0") || preg_match('/[\x00-\x08\x0B\x0C\x0E-\x1F]/', $yaml)) { + throw new TraefikException('Refusing to write invalid Traefik YAML.', step: 'traefik_write'); + } + + $tempPath = $path.'.'.uniqid('tmp', true); + + if (File::put($tempPath, $yaml) === false) { + throw new TraefikException('Failed to write temporary Traefik config.', step: 'traefik_write'); + } + + if (! @rename($tempPath, $path)) { + File::delete($tempPath); + throw new TraefikException('Atomic rename of Traefik config failed.', step: 'traefik_write'); + } + } + + private function preserveNonManaged(array $items, string $type): array + { + return array_filter( + $items, + fn ($key) => ! str_starts_with((string) $key, self::MANAGED_PREFIX), + ARRAY_FILTER_USE_KEY, + ); + } + + private function routerKey(string $domain): string + { + return self::MANAGED_PREFIX.$this->slug($domain).'-router'; + } + + private function serviceKey(string $domain): string + { + return self::MANAGED_PREFIX.$this->slug($domain).'-service'; + } + + private function slug(string $domain): string + { + return Str::slug(str_replace('.', '-', $domain), '-'); + } + + private function sanitizeDomain(string $domain): string + { + $domain = strtolower(trim($domain)); + + if (! preg_match('/^(?:[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?\.)+[a-z]{2,}$/', $domain)) { + throw new TraefikException("Invalid domain: {$domain}", step: 'traefik_validation'); + } + + return $domain; + } + + private function sanitizeIp(string $ip): string + { + if (! filter_var($ip, FILTER_VALIDATE_IP, FILTER_FLAG_IPV4)) { + throw new TraefikException("Invalid IP: {$ip}", step: 'traefik_validation'); + } + + return $ip; + } + + private function escapeHostRule(string $domain): string + { + return str_replace(['`', '\\'], '', $domain); + } +} diff --git a/artisan b/artisan new file mode 100755 index 0000000..c35e31d --- /dev/null +++ b/artisan @@ -0,0 +1,18 @@ +#!/usr/bin/env php +handleCommand(new ArgvInput); + +exit($status); diff --git a/bootstrap/app.php b/bootstrap/app.php new file mode 100644 index 0000000..1538f07 --- /dev/null +++ b/bootstrap/app.php @@ -0,0 +1,27 @@ +withRouting( + web: __DIR__.'/../routes/web.php', + api: __DIR__.'/../routes/api.php', + commands: __DIR__.'/../routes/console.php', + health: '/up', + ) + ->withMiddleware(function (Middleware $middleware): void { + $middleware->alias([ + 'admin' => \App\Http\Middleware\EnsureUserIsAdmin::class, + 'whmcs' => \App\Http\Middleware\VerifyWhmcsRequest::class, + '2fa' => \App\Http\Middleware\EnsureTwoFactorVerified::class, + ]); + + $middleware->appendToGroup('web', [ + \App\Http\Middleware\EnsureTwoFactorVerified::class, + ]); + }) + ->withExceptions(function (Exceptions $exceptions): void { + // + })->create(); diff --git a/bootstrap/cache/.gitignore b/bootstrap/cache/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/bootstrap/cache/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/bootstrap/providers.php b/bootstrap/providers.php new file mode 100644 index 0000000..c866d7b --- /dev/null +++ b/bootstrap/providers.php @@ -0,0 +1,9 @@ +=5.0.0" + }, + "require-dev": { + "doctrine/dbal": "^4.0.0", + "nesbot/carbon": "^2.71.0 || ^3.0.0", + "phpunit/phpunit": "^10.3" + }, + "type": "library", + "autoload": { + "psr-4": { + "Carbon\\Doctrine\\": "src/Carbon/Doctrine/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "KyleKatarn", + "email": "kylekatarnls@gmail.com" + } + ], + "description": "Types to use Carbon in Doctrine", + "keywords": [ + "carbon", + "date", + "datetime", + "doctrine", + "time" + ], + "support": { + "issues": "https://github.com/CarbonPHP/carbon-doctrine-types/issues", + "source": "https://github.com/CarbonPHP/carbon-doctrine-types/tree/3.2.0" + }, + "funding": [ + { + "url": "https://github.com/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon", + "type": "open_collective" + }, + { + "url": "https://tidelift.com/funding/github/packagist/nesbot/carbon", + "type": "tidelift" + } + ], + "time": "2024-02-09T16:56:22+00:00" + }, + { + "name": "dasprid/enum", + "version": "1.0.7", + "source": { + "type": "git", + "url": "https://github.com/DASPRiD/Enum.git", + "reference": "b5874fa9ed0043116c72162ec7f4fb50e02e7cce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/DASPRiD/Enum/zipball/b5874fa9ed0043116c72162ec7f4fb50e02e7cce", + "reference": "b5874fa9ed0043116c72162ec7f4fb50e02e7cce", + "shasum": "" + }, + "require": { + "php": ">=7.1 <9.0" + }, + "require-dev": { + "phpunit/phpunit": "^7 || ^8 || ^9 || ^10 || ^11", + "squizlabs/php_codesniffer": "*" + }, + "type": "library", + "autoload": { + "psr-4": { + "DASPRiD\\Enum\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-2-Clause" + ], + "authors": [ + { + "name": "Ben Scholzen 'DASPRiD'", + "email": "mail@dasprids.de", + "homepage": "https://dasprids.de/", + "role": "Developer" + } + ], + "description": "PHP 7.1 enum implementation", + "keywords": [ + "enum", + "map" + ], + "support": { + "issues": "https://github.com/DASPRiD/Enum/issues", + "source": "https://github.com/DASPRiD/Enum/tree/1.0.7" + }, + "time": "2025-09-16T12:23:56+00:00" + }, + { + "name": "dflydev/dot-access-data", + "version": "v3.0.3", + "source": { + "type": "git", + "url": "https://github.com/dflydev/dflydev-dot-access-data.git", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dflydev/dflydev-dot-access-data/zipball/a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "reference": "a23a2bf4f31d3518f3ecb38660c95715dfead60f", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^0.12.42", + "phpunit/phpunit": "^7.5 || ^8.5 || ^9.3", + "scrutinizer/ocular": "1.6.0", + "squizlabs/php_codesniffer": "^3.5", + "vimeo/psalm": "^4.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Dflydev\\DotAccessData\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Dragonfly Development Inc.", + "email": "info@dflydev.com", + "homepage": "http://dflydev.com" + }, + { + "name": "Beau Simensen", + "email": "beau@dflydev.com", + "homepage": "http://beausimensen.com" + }, + { + "name": "Carlos Frutos", + "email": "carlos@kiwing.it", + "homepage": "https://github.com/cfrutos" + }, + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com" + } + ], + "description": "Given a deep data structure, access data by dot notation.", + "homepage": "https://github.com/dflydev/dflydev-dot-access-data", + "keywords": [ + "access", + "data", + "dot", + "notation" + ], + "support": { + "issues": "https://github.com/dflydev/dflydev-dot-access-data/issues", + "source": "https://github.com/dflydev/dflydev-dot-access-data/tree/v3.0.3" + }, + "time": "2024-07-08T12:26:09+00:00" + }, + { + "name": "doctrine/inflector", + "version": "2.1.0", + "source": { + "type": "git", + "url": "https://github.com/doctrine/inflector.git", + "reference": "6d6c96277ea252fc1304627204c3d5e6e15faa3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/inflector/zipball/6d6c96277ea252fc1304627204c3d5e6e15faa3b", + "reference": "6d6c96277ea252fc1304627204c3d5e6e15faa3b", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "require-dev": { + "doctrine/coding-standard": "^12.0 || ^13.0", + "phpstan/phpstan": "^1.12 || ^2.0", + "phpstan/phpstan-phpunit": "^1.4 || ^2.0", + "phpstan/phpstan-strict-rules": "^1.6 || ^2.0", + "phpunit/phpunit": "^8.5 || ^12.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Inflector\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Benjamin Eberlei", + "email": "kontakt@beberlei.de" + }, + { + "name": "Jonathan Wage", + "email": "jonwage@gmail.com" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Inflector is a small library that can perform string manipulations with regard to upper/lowercase and singular/plural forms of words.", + "homepage": "https://www.doctrine-project.org/projects/inflector.html", + "keywords": [ + "inflection", + "inflector", + "lowercase", + "manipulation", + "php", + "plural", + "singular", + "strings", + "uppercase", + "words" + ], + "support": { + "issues": "https://github.com/doctrine/inflector/issues", + "source": "https://github.com/doctrine/inflector/tree/2.1.0" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Finflector", + "type": "tidelift" + } + ], + "time": "2025-08-10T19:31:58+00:00" + }, + { + "name": "doctrine/lexer", + "version": "3.0.1", + "source": { + "type": "git", + "url": "https://github.com/doctrine/lexer.git", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/doctrine/lexer/zipball/31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "reference": "31ad66abc0fc9e1a1f2d9bc6a42668d2fbbcd6dd", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "doctrine/coding-standard": "^12", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^10.5", + "psalm/plugin-phpunit": "^0.18.3", + "vimeo/psalm": "^5.21" + }, + "type": "library", + "autoload": { + "psr-4": { + "Doctrine\\Common\\Lexer\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Guilherme Blanco", + "email": "guilhermeblanco@gmail.com" + }, + { + "name": "Roman Borschel", + "email": "roman@code-factory.org" + }, + { + "name": "Johannes Schmitt", + "email": "schmittjoh@gmail.com" + } + ], + "description": "PHP Doctrine Lexer parser library that can be used in Top-Down, Recursive Descent Parsers.", + "homepage": "https://www.doctrine-project.org/projects/lexer.html", + "keywords": [ + "annotations", + "docblock", + "lexer", + "parser", + "php" + ], + "support": { + "issues": "https://github.com/doctrine/lexer/issues", + "source": "https://github.com/doctrine/lexer/tree/3.0.1" + }, + "funding": [ + { + "url": "https://www.doctrine-project.org/sponsorship.html", + "type": "custom" + }, + { + "url": "https://www.patreon.com/phpdoctrine", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/doctrine%2Flexer", + "type": "tidelift" + } + ], + "time": "2024-02-05T11:56:58+00:00" + }, + { + "name": "dragonmantank/cron-expression", + "version": "v3.6.0", + "source": { + "type": "git", + "url": "https://github.com/dragonmantank/cron-expression.git", + "reference": "d61a8a9604ec1f8c3d150d09db6ce98b32675013" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/dragonmantank/cron-expression/zipball/d61a8a9604ec1f8c3d150d09db6ce98b32675013", + "reference": "d61a8a9604ec1f8c3d150d09db6ce98b32675013", + "shasum": "" + }, + "require": { + "php": "^8.2|^8.3|^8.4|^8.5" + }, + "replace": { + "mtdowling/cron-expression": "^1.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.32|^2.1.31", + "phpunit/phpunit": "^8.5.48|^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Cron\\": "src/Cron/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Chris Tankersley", + "email": "chris@ctankersley.com", + "homepage": "https://github.com/dragonmantank" + } + ], + "description": "CRON for PHP: Calculate the next or previous run date and determine if a CRON expression is due", + "keywords": [ + "cron", + "schedule" + ], + "support": { + "issues": "https://github.com/dragonmantank/cron-expression/issues", + "source": "https://github.com/dragonmantank/cron-expression/tree/v3.6.0" + }, + "funding": [ + { + "url": "https://github.com/dragonmantank", + "type": "github" + } + ], + "time": "2025-10-31T18:51:33+00:00" + }, + { + "name": "egulias/email-validator", + "version": "4.0.4", + "source": { + "type": "git", + "url": "https://github.com/egulias/EmailValidator.git", + "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/egulias/EmailValidator/zipball/d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa", + "reference": "d42c8731f0624ad6bdc8d3e5e9a4524f68801cfa", + "shasum": "" + }, + "require": { + "doctrine/lexer": "^2.0 || ^3.0", + "php": ">=8.1", + "symfony/polyfill-intl-idn": "^1.26" + }, + "require-dev": { + "phpunit/phpunit": "^10.2", + "vimeo/psalm": "^5.12" + }, + "suggest": { + "ext-intl": "PHP Internationalization Libraries are required to use the SpoofChecking validation" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Egulias\\EmailValidator\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Eduardo Gulias Davis" + } + ], + "description": "A library for validating emails against several RFCs", + "homepage": "https://github.com/egulias/EmailValidator", + "keywords": [ + "email", + "emailvalidation", + "emailvalidator", + "validation", + "validator" + ], + "support": { + "issues": "https://github.com/egulias/EmailValidator/issues", + "source": "https://github.com/egulias/EmailValidator/tree/4.0.4" + }, + "funding": [ + { + "url": "https://github.com/egulias", + "type": "github" + } + ], + "time": "2025-03-06T22:45:56+00:00" + }, + { + "name": "fruitcake/php-cors", + "version": "v1.4.0", + "source": { + "type": "git", + "url": "https://github.com/fruitcake/php-cors.git", + "reference": "38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/fruitcake/php-cors/zipball/38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379", + "reference": "38aaa6c3fd4c157ffe2a4d10aa8b9b16ba8de379", + "shasum": "" + }, + "require": { + "php": "^8.1", + "symfony/http-foundation": "^5.4|^6.4|^7.3|^8" + }, + "require-dev": { + "phpstan/phpstan": "^2", + "phpunit/phpunit": "^9", + "squizlabs/php_codesniffer": "^4" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Fruitcake\\Cors\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fruitcake", + "homepage": "https://fruitcake.nl" + }, + { + "name": "Barryvdh", + "email": "barryvdh@gmail.com" + } + ], + "description": "Cross-origin resource sharing library for the Symfony HttpFoundation", + "homepage": "https://github.com/fruitcake/php-cors", + "keywords": [ + "cors", + "laravel", + "symfony" + ], + "support": { + "issues": "https://github.com/fruitcake/php-cors/issues", + "source": "https://github.com/fruitcake/php-cors/tree/v1.4.0" + }, + "funding": [ + { + "url": "https://fruitcake.nl", + "type": "custom" + }, + { + "url": "https://github.com/barryvdh", + "type": "github" + } + ], + "time": "2025-12-03T09:33:47+00:00" + }, + { + "name": "graham-campbell/result-type", + "version": "v1.1.4", + "source": { + "type": "git", + "url": "https://github.com/GrahamCampbell/Result-Type.git", + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/GrahamCampbell/Result-Type/zipball/e01f4a821471308ba86aa202fed6698b6b695e3b", + "reference": "e01f4a821471308ba86aa202fed6698b6b695e3b", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.5" + }, + "require-dev": { + "phpunit/phpunit": "^8.5.41 || ^9.6.22 || ^10.5.45 || ^11.5.7" + }, + "type": "library", + "autoload": { + "psr-4": { + "GrahamCampbell\\ResultType\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "An Implementation Of The Result Type", + "keywords": [ + "Graham Campbell", + "GrahamCampbell", + "Result Type", + "Result-Type", + "result" + ], + "support": { + "issues": "https://github.com/GrahamCampbell/Result-Type/issues", + "source": "https://github.com/GrahamCampbell/Result-Type/tree/v1.1.4" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/graham-campbell/result-type", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:43:20+00:00" + }, + { + "name": "guzzlehttp/guzzle", + "version": "7.10.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/guzzle.git", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/guzzle/zipball/b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "reference": "b51ac707cfa420b7bfd4e4d5e510ba8008e822b4", + "shasum": "" + }, + "require": { + "ext-json": "*", + "guzzlehttp/promises": "^2.3", + "guzzlehttp/psr7": "^2.8", + "php": "^7.2.5 || ^8.0", + "psr/http-client": "^1.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "provide": { + "psr/http-client-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-curl": "*", + "guzzle/client-integration-tests": "3.0.2", + "php-http/message-factory": "^1.1", + "phpunit/phpunit": "^8.5.39 || ^9.6.20", + "psr/log": "^1.1 || ^2.0 || ^3.0" + }, + "suggest": { + "ext-curl": "Required for CURL handler support", + "ext-intl": "Required for Internationalized Domain Name (IDN) support", + "psr/log": "Required for using the Log middleware" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "files": [ + "src/functions_include.php" + ], + "psr-4": { + "GuzzleHttp\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Jeremy Lindblom", + "email": "jeremeamia@gmail.com", + "homepage": "https://github.com/jeremeamia" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle is a PHP HTTP client library", + "keywords": [ + "client", + "curl", + "framework", + "http", + "http client", + "psr-18", + "psr-7", + "rest", + "web service" + ], + "support": { + "issues": "https://github.com/guzzle/guzzle/issues", + "source": "https://github.com/guzzle/guzzle/tree/7.10.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/guzzle", + "type": "tidelift" + } + ], + "time": "2025-08-23T22:36:01+00:00" + }, + { + "name": "guzzlehttp/promises", + "version": "2.3.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/promises.git", + "reference": "481557b130ef3790cf82b713667b43030dc9c957" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/promises/zipball/481557b130ef3790cf82b713667b43030dc9c957", + "reference": "481557b130ef3790cf82b713667b43030dc9c957", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Promise\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + } + ], + "description": "Guzzle promises library", + "keywords": [ + "promise" + ], + "support": { + "issues": "https://github.com/guzzle/promises/issues", + "source": "https://github.com/guzzle/promises/tree/2.3.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/promises", + "type": "tidelift" + } + ], + "time": "2025-08-22T14:34:08+00:00" + }, + { + "name": "guzzlehttp/psr7", + "version": "2.9.0", + "source": { + "type": "git", + "url": "https://github.com/guzzle/psr7.git", + "reference": "7d0ed42f28e42d61352a7a79de682e5e67fec884" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/psr7/zipball/7d0ed42f28e42d61352a7a79de682e5e67fec884", + "reference": "7d0ed42f28e42d61352a7a79de682e5e67fec884", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "psr/http-factory": "^1.0", + "psr/http-message": "^1.1 || ^2.0", + "ralouphie/getallheaders": "^3.0" + }, + "provide": { + "psr/http-factory-implementation": "1.0", + "psr/http-message-implementation": "1.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "http-interop/http-factory-tests": "0.9.0", + "jshttp/mime-db": "1.54.0.1", + "phpunit/phpunit": "^8.5.44 || ^9.6.25" + }, + "suggest": { + "laminas/laminas-httphandlerrunner": "Emit PSR-7 responses" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\Psr7\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://github.com/sagikazarmark" + }, + { + "name": "Tobias Schultze", + "email": "webmaster@tubo-world.de", + "homepage": "https://github.com/Tobion" + }, + { + "name": "Márk Sági-Kazár", + "email": "mark.sagikazar@gmail.com", + "homepage": "https://sagikazarmark.hu" + } + ], + "description": "PSR-7 message implementation that also provides common utility methods", + "keywords": [ + "http", + "message", + "psr-7", + "request", + "response", + "stream", + "uri", + "url" + ], + "support": { + "issues": "https://github.com/guzzle/psr7/issues", + "source": "https://github.com/guzzle/psr7/tree/2.9.0" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/psr7", + "type": "tidelift" + } + ], + "time": "2026-03-10T16:41:02+00:00" + }, + { + "name": "guzzlehttp/uri-template", + "version": "v1.0.5", + "source": { + "type": "git", + "url": "https://github.com/guzzle/uri-template.git", + "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/guzzle/uri-template/zipball/4f4bbd4e7172148801e76e3decc1e559bdee34e1", + "reference": "4f4bbd4e7172148801e76e3decc1e559bdee34e1", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0", + "symfony/polyfill-php80": "^1.24" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25", + "uri-template/tests": "1.0.0" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + } + }, + "autoload": { + "psr-4": { + "GuzzleHttp\\UriTemplate\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Michael Dowling", + "email": "mtdowling@gmail.com", + "homepage": "https://github.com/mtdowling" + }, + { + "name": "George Mponos", + "email": "gmponos@gmail.com", + "homepage": "https://github.com/gmponos" + }, + { + "name": "Tobias Nyholm", + "email": "tobias.nyholm@gmail.com", + "homepage": "https://github.com/Nyholm" + } + ], + "description": "A polyfill class for uri_template of PHP", + "keywords": [ + "guzzlehttp", + "uri-template" + ], + "support": { + "issues": "https://github.com/guzzle/uri-template/issues", + "source": "https://github.com/guzzle/uri-template/tree/v1.0.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://github.com/Nyholm", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/guzzlehttp/uri-template", + "type": "tidelift" + } + ], + "time": "2025-08-22T14:27:06+00:00" + }, + { + "name": "laravel/framework", + "version": "v13.9.0", + "source": { + "type": "git", + "url": "https://github.com/laravel/framework.git", + "reference": "a0c6ad03b380287015287d8d5a0fa2459e2332fd" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/framework/zipball/a0c6ad03b380287015287d8d5a0fa2459e2332fd", + "reference": "a0c6ad03b380287015287d8d5a0fa2459e2332fd", + "shasum": "" + }, + "require": { + "brick/math": "^0.14.2 || ^0.15 || ^0.16 || ^0.17", + "composer-runtime-api": "^2.2", + "doctrine/inflector": "^2.0.5", + "dragonmantank/cron-expression": "^3.4", + "egulias/email-validator": "^4.0", + "ext-ctype": "*", + "ext-filter": "*", + "ext-hash": "*", + "ext-mbstring": "*", + "ext-openssl": "*", + "ext-session": "*", + "ext-tokenizer": "*", + "fruitcake/php-cors": "^1.3", + "guzzlehttp/guzzle": "^7.8.2", + "guzzlehttp/promises": "^2.0.3", + "guzzlehttp/uri-template": "^1.0", + "laravel/prompts": "^0.3.0", + "laravel/serializable-closure": "^2.0.10", + "league/commonmark": "^2.8.1", + "league/flysystem": "^3.25.1", + "league/flysystem-local": "^3.25.1", + "league/uri": "^7.5.1", + "monolog/monolog": "^3.0", + "nesbot/carbon": "^3.8.4", + "nunomaduro/termwind": "^2.0", + "php": "^8.3", + "psr/container": "^1.1.1 || ^2.0.1", + "psr/log": "^1.0 || ^2.0 || ^3.0", + "psr/simple-cache": "^1.0 || ^2.0 || ^3.0", + "ramsey/uuid": "^4.7", + "symfony/console": "^7.4.0 || ^8.0.0", + "symfony/error-handler": "^7.4.0 || ^8.0.0", + "symfony/finder": "^7.4.0 || ^8.0.0", + "symfony/http-foundation": "^7.4.0 || ^8.0.0", + "symfony/http-kernel": "^7.4.0 || ^8.0.0", + "symfony/mailer": "^7.4.0 || ^8.0.0", + "symfony/mime": "^7.4.0 || ^8.0.0", + "symfony/polyfill-php84": "^1.36", + "symfony/polyfill-php85": "^1.36", + "symfony/polyfill-php86": "^1.36", + "symfony/process": "^7.4.5 || ^8.0.5", + "symfony/routing": "^7.4.0 || ^8.0.0", + "symfony/uid": "^7.4.0 || ^8.0.0", + "symfony/var-dumper": "^7.4.0 || ^8.0.0", + "tijsverkoyen/css-to-inline-styles": "^2.2.5", + "vlucas/phpdotenv": "^5.6.1", + "voku/portable-ascii": "^2.0.2" + }, + "conflict": { + "tightenco/collect": "<5.5.33" + }, + "provide": { + "psr/container-implementation": "1.1 || 2.0", + "psr/log-implementation": "1.0 || 2.0 || 3.0", + "psr/simple-cache-implementation": "1.0 || 2.0 || 3.0" + }, + "replace": { + "illuminate/auth": "self.version", + "illuminate/broadcasting": "self.version", + "illuminate/bus": "self.version", + "illuminate/cache": "self.version", + "illuminate/collections": "self.version", + "illuminate/concurrency": "self.version", + "illuminate/conditionable": "self.version", + "illuminate/config": "self.version", + "illuminate/console": "self.version", + "illuminate/container": "self.version", + "illuminate/contracts": "self.version", + "illuminate/cookie": "self.version", + "illuminate/database": "self.version", + "illuminate/encryption": "self.version", + "illuminate/events": "self.version", + "illuminate/filesystem": "self.version", + "illuminate/hashing": "self.version", + "illuminate/http": "self.version", + "illuminate/json-schema": "self.version", + "illuminate/log": "self.version", + "illuminate/macroable": "self.version", + "illuminate/mail": "self.version", + "illuminate/notifications": "self.version", + "illuminate/pagination": "self.version", + "illuminate/pipeline": "self.version", + "illuminate/process": "self.version", + "illuminate/queue": "self.version", + "illuminate/redis": "self.version", + "illuminate/reflection": "self.version", + "illuminate/routing": "self.version", + "illuminate/session": "self.version", + "illuminate/support": "self.version", + "illuminate/testing": "self.version", + "illuminate/translation": "self.version", + "illuminate/validation": "self.version", + "illuminate/view": "self.version", + "spatie/once": "*" + }, + "require-dev": { + "ably/ably-php": "^1.0", + "aws/aws-sdk-php": "^3.322.9", + "ext-gmp": "*", + "fakerphp/faker": "^1.24", + "guzzlehttp/psr7": "^2.9", + "laravel/pint": "^1.18", + "league/flysystem-aws-s3-v3": "^3.25.1", + "league/flysystem-ftp": "^3.25.1", + "league/flysystem-path-prefixing": "^3.25.1", + "league/flysystem-read-only": "^3.25.1", + "league/flysystem-sftp-v3": "^3.25.1", + "mockery/mockery": "^1.6.10", + "opis/json-schema": "^2.4.1", + "orchestra/testbench-core": "^11.0.0", + "pda/pheanstalk": "^7.0.0 || ^8.0.0", + "php-http/discovery": "^1.15", + "phpstan/phpstan": "^2.0", + "phpunit/phpunit": "^11.5.50 || ^12.5.8 || ^13.0.3", + "predis/predis": "^2.3 || ^3.0", + "rector/rector": "^2.3", + "resend/resend-php": "^1.0", + "symfony/cache": "^7.4.0 || ^8.0.0", + "symfony/http-client": "^7.4.0 || ^8.0.0", + "symfony/psr-http-message-bridge": "^7.4.0 || ^8.0.0", + "symfony/translation": "^7.4.0 || ^8.0.0" + }, + "suggest": { + "ably/ably-php": "Required to use the Ably broadcast driver (^1.0).", + "aws/aws-sdk-php": "Required to use the SQS queue driver, DynamoDb failed job storage, and SES mail driver (^3.322.9).", + "brianium/paratest": "Required to run tests in parallel (^7.0 || ^8.0).", + "ext-apcu": "Required to use the APC cache driver.", + "ext-fileinfo": "Required to use the Filesystem class.", + "ext-ftp": "Required to use the Flysystem FTP driver.", + "ext-gd": "Required to use Illuminate\\Http\\Testing\\FileFactory::image().", + "ext-memcached": "Required to use the memcache cache driver.", + "ext-pcntl": "Required to use all features of the queue worker and console signal trapping.", + "ext-pdo": "Required to use all database features.", + "ext-posix": "Required to use all features of the queue worker.", + "ext-redis": "Required to use the Redis cache and queue drivers (^4.0 || ^5.0 || ^6.0).", + "fakerphp/faker": "Required to generate fake data using the fake() helper (^1.23).", + "filp/whoops": "Required for friendly error pages in development (^2.14.3).", + "laravel/tinker": "Required to use the tinker console command (^2.0).", + "league/flysystem-aws-s3-v3": "Required to use the Flysystem S3 driver (^3.25.1).", + "league/flysystem-ftp": "Required to use the Flysystem FTP driver (^3.25.1).", + "league/flysystem-path-prefixing": "Required to use the scoped driver (^3.25.1).", + "league/flysystem-read-only": "Required to use read-only disks (^3.25.1)", + "league/flysystem-sftp-v3": "Required to use the Flysystem SFTP driver (^3.25.1).", + "mockery/mockery": "Required to use mocking (^1.6).", + "pda/pheanstalk": "Required to use the beanstalk queue driver (^7.0 || ^8.0).", + "php-http/discovery": "Required to use PSR-7 bridging features (^1.15).", + "phpunit/phpunit": "Required to use assertions and run tests (^11.5.50 || ^12.5.8 || ^13.0.3).", + "predis/predis": "Required to use the predis connector (^2.3 || ^3.0).", + "psr/http-message": "Required to allow Storage::put to accept a StreamInterface (^1.0).", + "pusher/pusher-php-server": "Required to use the Pusher broadcast driver (^6.0 || ^7.0).", + "resend/resend-php": "Required to enable support for the Resend mail transport (^0.10.0 || ^1.0).", + "spatie/fork": "Required to use the 'fork' concurrency driver (^1.2).", + "symfony/cache": "Required to PSR-6 cache bridge (^7.4 || ^8.0).", + "symfony/filesystem": "Required to enable support for relative symbolic links (^7.4 || ^8.0).", + "symfony/http-client": "Required to enable support for the Symfony API mail transports (^7.4 || ^8.0).", + "symfony/mailgun-mailer": "Required to enable support for the Mailgun mail transport (^7.4 || ^8.0).", + "symfony/postmark-mailer": "Required to enable support for the Postmark mail transport (^7.4 || ^8.0).", + "symfony/psr-http-message-bridge": "Required to use PSR-7 bridging features (^7.4 || ^8.0)." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "13.0.x-dev" + } + }, + "autoload": { + "files": [ + "src/Illuminate/Collections/functions.php", + "src/Illuminate/Collections/helpers.php", + "src/Illuminate/Events/functions.php", + "src/Illuminate/Filesystem/functions.php", + "src/Illuminate/Foundation/helpers.php", + "src/Illuminate/Log/functions.php", + "src/Illuminate/Reflection/helpers.php", + "src/Illuminate/Support/functions.php", + "src/Illuminate/Support/helpers.php" + ], + "psr-4": { + "Illuminate\\": "src/Illuminate/", + "Illuminate\\Support\\": [ + "src/Illuminate/Macroable/", + "src/Illuminate/Collections/", + "src/Illuminate/Conditionable/", + "src/Illuminate/Reflection/" + ] + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "The Laravel Framework.", + "homepage": "https://laravel.com", + "keywords": [ + "framework", + "laravel" + ], + "support": { + "issues": "https://github.com/laravel/framework/issues", + "source": "https://github.com/laravel/framework" + }, + "time": "2026-05-13T15:38:40+00:00" + }, + { + "name": "laravel/prompts", + "version": "v0.3.17", + "source": { + "type": "git", + "url": "https://github.com/laravel/prompts.git", + "reference": "6a82ac19a28b916ae0885828795dbd4c59d9a818" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/prompts/zipball/6a82ac19a28b916ae0885828795dbd4c59d9a818", + "reference": "6a82ac19a28b916ae0885828795dbd4c59d9a818", + "shasum": "" + }, + "require": { + "composer-runtime-api": "^2.2", + "ext-mbstring": "*", + "php": "^8.1", + "symfony/console": "^6.2|^7.0|^8.0" + }, + "conflict": { + "illuminate/console": ">=10.17.0 <10.25.0", + "laravel/framework": ">=10.17.0 <10.25.0" + }, + "require-dev": { + "illuminate/collections": "^10.0|^11.0|^12.0|^13.0", + "mockery/mockery": "^1.5", + "pestphp/pest": "^2.3|^3.4|^4.0", + "phpstan/phpstan": "^1.12.28", + "phpstan/phpstan-mockery": "^1.1.3" + }, + "suggest": { + "ext-pcntl": "Required for the spinner to be animated." + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "0.3.x-dev" + } + }, + "autoload": { + "files": [ + "src/helpers.php" + ], + "psr-4": { + "Laravel\\Prompts\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Add beautiful and user-friendly forms to your command-line applications.", + "support": { + "issues": "https://github.com/laravel/prompts/issues", + "source": "https://github.com/laravel/prompts/tree/v0.3.17" + }, + "time": "2026-04-20T16:07:33+00:00" + }, + { + "name": "laravel/serializable-closure", + "version": "v2.0.13", + "source": { + "type": "git", + "url": "https://github.com/laravel/serializable-closure.git", + "reference": "b566ee0dd251f3c4078bed003a7ce015f5ea6dce" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/serializable-closure/zipball/b566ee0dd251f3c4078bed003a7ce015f5ea6dce", + "reference": "b566ee0dd251f3c4078bed003a7ce015f5ea6dce", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "illuminate/support": "^10.0|^11.0|^12.0|^13.0", + "nesbot/carbon": "^2.67|^3.0", + "pestphp/pest": "^2.36|^3.0|^4.0", + "phpstan/phpstan": "^2.0", + "symfony/var-dumper": "^6.2.0|^7.0.0|^8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\SerializableClosure\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "nuno@laravel.com" + } + ], + "description": "Laravel Serializable Closure provides an easy and secure way to serialize closures in PHP.", + "keywords": [ + "closure", + "laravel", + "serializable" + ], + "support": { + "issues": "https://github.com/laravel/serializable-closure/issues", + "source": "https://github.com/laravel/serializable-closure" + }, + "time": "2026-04-16T14:03:50+00:00" + }, + { + "name": "laravel/tinker", + "version": "v3.0.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/tinker.git", + "reference": "4faba77764bd33411735936acdf30446d058c78b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/tinker/zipball/4faba77764bd33411735936acdf30446d058c78b", + "reference": "4faba77764bd33411735936acdf30446d058c78b", + "shasum": "" + }, + "require": { + "illuminate/console": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "illuminate/contracts": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "illuminate/support": "^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "php": "^8.1", + "psy/psysh": "^0.12.0", + "symfony/var-dumper": "^5.4|^6.0|^7.0|^8.0" + }, + "require-dev": { + "mockery/mockery": "~1.3.3|^1.4.2", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^10.5|^11.5" + }, + "suggest": { + "illuminate/database": "The Illuminate Database package (^8.0|^9.0|^10.0|^11.0|^12.0|^13.0)." + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Tinker\\TinkerServiceProvider" + ] + }, + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Tinker\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Powerful REPL for the Laravel framework.", + "keywords": [ + "REPL", + "Tinker", + "laravel", + "psysh" + ], + "support": { + "issues": "https://github.com/laravel/tinker/issues", + "source": "https://github.com/laravel/tinker/tree/v3.0.2" + }, + "time": "2026-03-17T14:54:13+00:00" + }, + { + "name": "league/commonmark", + "version": "2.8.2", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/commonmark.git", + "reference": "59fb075d2101740c337c7216e3f32b36c204218b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/commonmark/zipball/59fb075d2101740c337c7216e3f32b36c204218b", + "reference": "59fb075d2101740c337c7216e3f32b36c204218b", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "league/config": "^1.1.1", + "php": "^7.4 || ^8.0", + "psr/event-dispatcher": "^1.0", + "symfony/deprecation-contracts": "^2.1 || ^3.0", + "symfony/polyfill-php80": "^1.16" + }, + "require-dev": { + "cebe/markdown": "^1.0", + "commonmark/cmark": "0.31.1", + "commonmark/commonmark.js": "0.31.1", + "composer/package-versions-deprecated": "^1.8", + "embed/embed": "^4.4", + "erusev/parsedown": "^1.0", + "ext-json": "*", + "github/gfm": "0.29.0", + "michelf/php-markdown": "^1.4 || ^2.0", + "nyholm/psr7": "^1.5", + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.21 || ^10.5.9 || ^11.0.0", + "scrutinizer/ocular": "^1.8.1", + "symfony/finder": "^5.3 | ^6.0 | ^7.0 || ^8.0", + "symfony/process": "^5.4 | ^6.0 | ^7.0 || ^8.0", + "symfony/yaml": "^2.3 | ^3.0 | ^4.0 | ^5.0 | ^6.0 | ^7.0 || ^8.0", + "unleashedtech/php-coding-standard": "^3.1.1", + "vimeo/psalm": "^4.24.0 || ^5.0.0 || ^6.0.0" + }, + "suggest": { + "symfony/yaml": "v2.3+ required if using the Front Matter extension" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "2.9-dev" + } + }, + "autoload": { + "psr-4": { + "League\\CommonMark\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Highly-extensible PHP Markdown parser which fully supports the CommonMark spec and GitHub-Flavored Markdown (GFM)", + "homepage": "https://commonmark.thephpleague.com", + "keywords": [ + "commonmark", + "flavored", + "gfm", + "github", + "github-flavored", + "markdown", + "md", + "parser" + ], + "support": { + "docs": "https://commonmark.thephpleague.com/", + "forum": "https://github.com/thephpleague/commonmark/discussions", + "issues": "https://github.com/thephpleague/commonmark/issues", + "rss": "https://github.com/thephpleague/commonmark/releases.atom", + "source": "https://github.com/thephpleague/commonmark" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/commonmark", + "type": "tidelift" + } + ], + "time": "2026-03-19T13:16:38+00:00" + }, + { + "name": "league/config", + "version": "v1.2.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/config.git", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/config/zipball/754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "reference": "754b3604fb2984c71f4af4a9cbe7b57f346ec1f3", + "shasum": "" + }, + "require": { + "dflydev/dot-access-data": "^3.0.1", + "nette/schema": "^1.2", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.8.2", + "phpunit/phpunit": "^9.5.5", + "scrutinizer/ocular": "^1.8.1", + "unleashedtech/php-coding-standard": "^3.1", + "vimeo/psalm": "^4.7.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "1.2-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Config\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Colin O'Dell", + "email": "colinodell@gmail.com", + "homepage": "https://www.colinodell.com", + "role": "Lead Developer" + } + ], + "description": "Define configuration arrays with strict schemas and access values with dot notation", + "homepage": "https://config.thephpleague.com", + "keywords": [ + "array", + "config", + "configuration", + "dot", + "dot-access", + "nested", + "schema" + ], + "support": { + "docs": "https://config.thephpleague.com/", + "issues": "https://github.com/thephpleague/config/issues", + "rss": "https://github.com/thephpleague/config/releases.atom", + "source": "https://github.com/thephpleague/config" + }, + "funding": [ + { + "url": "https://www.colinodell.com/sponsor", + "type": "custom" + }, + { + "url": "https://www.paypal.me/colinpodell/10.00", + "type": "custom" + }, + { + "url": "https://github.com/colinodell", + "type": "github" + } + ], + "time": "2022-12-11T20:36:23+00:00" + }, + { + "name": "league/flysystem", + "version": "3.34.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem.git", + "reference": "2daaac3b0d4c83ea7ed5d8586e786f5d00f3540e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem/zipball/2daaac3b0d4c83ea7ed5d8586e786f5d00f3540e", + "reference": "2daaac3b0d4c83ea7ed5d8586e786f5d00f3540e", + "shasum": "" + }, + "require": { + "league/flysystem-local": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "conflict": { + "async-aws/core": "<1.19.0", + "async-aws/s3": "<1.14.0", + "aws/aws-sdk-php": "3.209.31 || 3.210.0", + "guzzlehttp/guzzle": "<7.0", + "guzzlehttp/ringphp": "<1.1.1", + "phpseclib/phpseclib": "3.0.15", + "symfony/http-client": "<5.2" + }, + "require-dev": { + "async-aws/s3": "^1.5 || ^2.0", + "async-aws/simple-s3": "^1.1 || ^2.0", + "aws/aws-sdk-php": "^3.295.10", + "composer/semver": "^3.0", + "ext-fileinfo": "*", + "ext-ftp": "*", + "ext-mongodb": "^1.3|^2", + "ext-zip": "*", + "friendsofphp/php-cs-fixer": "^3.5", + "google/cloud-storage": "^1.23", + "guzzlehttp/psr7": "^2.6", + "microsoft/azure-storage-blob": "^1.1", + "mongodb/mongodb": "^1.2|^2", + "phpseclib/phpseclib": "^3.0.36", + "phpstan/phpstan": "^1.10", + "phpunit/phpunit": "^9.5.11|^10.0", + "sabre/dav": "^4.6.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "File storage abstraction for PHP", + "keywords": [ + "WebDAV", + "aws", + "cloud", + "file", + "files", + "filesystem", + "filesystems", + "ftp", + "s3", + "sftp", + "storage" + ], + "support": { + "issues": "https://github.com/thephpleague/flysystem/issues", + "source": "https://github.com/thephpleague/flysystem/tree/3.34.0" + }, + "time": "2026-05-14T10:28:08+00:00" + }, + { + "name": "league/flysystem-local", + "version": "3.31.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/flysystem-local.git", + "reference": "2f669db18a4c20c755c2bb7d3a7b0b2340488079" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/flysystem-local/zipball/2f669db18a4c20c755c2bb7d3a7b0b2340488079", + "reference": "2f669db18a4c20c755c2bb7d3a7b0b2340488079", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "league/flysystem": "^3.0.0", + "league/mime-type-detection": "^1.0.0", + "php": "^8.0.2" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\Flysystem\\Local\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Local filesystem adapter for Flysystem.", + "keywords": [ + "Flysystem", + "file", + "files", + "filesystem", + "local" + ], + "support": { + "source": "https://github.com/thephpleague/flysystem-local/tree/3.31.0" + }, + "time": "2026-01-23T15:30:45+00:00" + }, + { + "name": "league/mime-type-detection", + "version": "1.16.0", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/mime-type-detection.git", + "reference": "2d6702ff215bf922936ccc1ad31007edc76451b9" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/mime-type-detection/zipball/2d6702ff215bf922936ccc1ad31007edc76451b9", + "reference": "2d6702ff215bf922936ccc1ad31007edc76451b9", + "shasum": "" + }, + "require": { + "ext-fileinfo": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.2", + "phpstan/phpstan": "^0.12.68", + "phpunit/phpunit": "^8.5.8 || ^9.3 || ^10.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "League\\MimeTypeDetection\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Frank de Jonge", + "email": "info@frankdejonge.nl" + } + ], + "description": "Mime-type detection for Flysystem", + "support": { + "issues": "https://github.com/thephpleague/mime-type-detection/issues", + "source": "https://github.com/thephpleague/mime-type-detection/tree/1.16.0" + }, + "funding": [ + { + "url": "https://github.com/frankdejonge", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/league/flysystem", + "type": "tidelift" + } + ], + "time": "2024-09-21T08:32:55+00:00" + }, + { + "name": "league/uri", + "version": "7.8.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri.git", + "reference": "08cf38e3924d4f56238125547b5720496fac8fd4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri/zipball/08cf38e3924d4f56238125547b5720496fac8fd4", + "reference": "08cf38e3924d4f56238125547b5720496fac8fd4", + "shasum": "" + }, + "require": { + "league/uri-interfaces": "^7.8.1", + "php": "^8.1", + "psr/http-factory": "^1" + }, + "conflict": { + "league/uri-schemes": "^1.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-dom": "to convert the URI into an HTML anchor tag", + "ext-fileinfo": "to create Data URI from file contennts", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "ext-uri": "to use the PHP native URI class", + "jeremykendall/php-domain-parser": "to further parse the URI host and resolve its Public Suffix and Top Level Domain", + "league/uri-components": "to provide additional tools to manipulate URI objects components", + "league/uri-polyfill": "to backport the PHP URI extension for older versions of PHP", + "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle URLs using the WHATWG URL Living Standard specification", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "URI manipulation library", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "URN", + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "middleware", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc2141", + "rfc3986", + "rfc3987", + "rfc6570", + "rfc8141", + "uri", + "uri-template", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri/tree/7.8.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2026-03-15T20:22:25+00:00" + }, + { + "name": "league/uri-interfaces", + "version": "7.8.1", + "source": { + "type": "git", + "url": "https://github.com/thephpleague/uri-interfaces.git", + "reference": "85d5c77c5d6d3af6c54db4a78246364908f3c928" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/thephpleague/uri-interfaces/zipball/85d5c77c5d6d3af6c54db4a78246364908f3c928", + "reference": "85d5c77c5d6d3af6c54db4a78246364908f3c928", + "shasum": "" + }, + "require": { + "ext-filter": "*", + "php": "^8.1", + "psr/http-message": "^1.1 || ^2.0" + }, + "suggest": { + "ext-bcmath": "to improve IPV4 host parsing", + "ext-gmp": "to improve IPV4 host parsing", + "ext-intl": "to handle IDN host with the best performance", + "php-64bit": "to improve IPV4 host parsing", + "rowbot/url": "to handle URLs using the WHATWG URL Living Standard specification", + "symfony/polyfill-intl-idn": "to handle IDN host via the Symfony polyfill if ext-intl is not present" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "7.x-dev" + } + }, + "autoload": { + "psr-4": { + "League\\Uri\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ignace Nyamagana Butera", + "email": "nyamsprod@gmail.com", + "homepage": "https://nyamsprod.com" + } + ], + "description": "Common tools for parsing and resolving RFC3987/RFC3986 URI", + "homepage": "https://uri.thephpleague.com", + "keywords": [ + "data-uri", + "file-uri", + "ftp", + "hostname", + "http", + "https", + "parse_str", + "parse_url", + "psr-7", + "query-string", + "querystring", + "rfc3986", + "rfc3987", + "rfc6570", + "uri", + "url", + "ws" + ], + "support": { + "docs": "https://uri.thephpleague.com", + "forum": "https://thephpleague.slack.com", + "issues": "https://github.com/thephpleague/uri-src/issues", + "source": "https://github.com/thephpleague/uri-interfaces/tree/7.8.1" + }, + "funding": [ + { + "url": "https://github.com/sponsors/nyamsprod", + "type": "github" + } + ], + "time": "2026-03-08T20:05:35+00:00" + }, + { + "name": "monolog/monolog", + "version": "3.10.0", + "source": { + "type": "git", + "url": "https://github.com/Seldaek/monolog.git", + "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/Seldaek/monolog/zipball/b321dd6749f0bf7189444158a3ce785cc16d69b0", + "reference": "b321dd6749f0bf7189444158a3ce785cc16d69b0", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/log": "^2.0 || ^3.0" + }, + "provide": { + "psr/log-implementation": "3.0.0" + }, + "require-dev": { + "aws/aws-sdk-php": "^3.0", + "doctrine/couchdb": "~1.0@dev", + "elasticsearch/elasticsearch": "^7 || ^8", + "ext-json": "*", + "graylog2/gelf-php": "^1.4.2 || ^2.0", + "guzzlehttp/guzzle": "^7.4.5", + "guzzlehttp/psr7": "^2.2", + "mongodb/mongodb": "^1.8 || ^2.0", + "php-amqplib/php-amqplib": "~2.4 || ^3", + "php-console/php-console": "^3.1.8", + "phpstan/phpstan": "^2", + "phpstan/phpstan-deprecation-rules": "^2", + "phpstan/phpstan-strict-rules": "^2", + "phpunit/phpunit": "^10.5.17 || ^11.0.7", + "predis/predis": "^1.1 || ^2", + "rollbar/rollbar": "^4.0", + "ruflin/elastica": "^7 || ^8", + "symfony/mailer": "^5.4 || ^6", + "symfony/mime": "^5.4 || ^6" + }, + "suggest": { + "aws/aws-sdk-php": "Allow sending log messages to AWS services like DynamoDB", + "doctrine/couchdb": "Allow sending log messages to a CouchDB server", + "elasticsearch/elasticsearch": "Allow sending log messages to an Elasticsearch server via official client", + "ext-amqp": "Allow sending log messages to an AMQP server (1.0+ required)", + "ext-curl": "Required to send log messages using the IFTTTHandler, the LogglyHandler, the SendGridHandler, the SlackWebhookHandler or the TelegramBotHandler", + "ext-mbstring": "Allow to work properly with unicode symbols", + "ext-mongodb": "Allow sending log messages to a MongoDB server (via driver)", + "ext-openssl": "Required to send log messages using SSL", + "ext-sockets": "Allow sending log messages to a Syslog server (via UDP driver)", + "graylog2/gelf-php": "Allow sending log messages to a GrayLog2 server", + "mongodb/mongodb": "Allow sending log messages to a MongoDB server (via library)", + "php-amqplib/php-amqplib": "Allow sending log messages to an AMQP server using php-amqplib", + "rollbar/rollbar": "Allow sending log messages to Rollbar", + "ruflin/elastica": "Allow sending log messages to an Elastic Search server" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Monolog\\": "src/Monolog" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Jordi Boggiano", + "email": "j.boggiano@seld.be", + "homepage": "https://seld.be" + } + ], + "description": "Sends your logs to files, sockets, inboxes, databases and various web services", + "homepage": "https://github.com/Seldaek/monolog", + "keywords": [ + "log", + "logging", + "psr-3" + ], + "support": { + "issues": "https://github.com/Seldaek/monolog/issues", + "source": "https://github.com/Seldaek/monolog/tree/3.10.0" + }, + "funding": [ + { + "url": "https://github.com/Seldaek", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/monolog/monolog", + "type": "tidelift" + } + ], + "time": "2026-01-02T08:56:05+00:00" + }, + { + "name": "nesbot/carbon", + "version": "3.11.4", + "source": { + "type": "git", + "url": "https://github.com/CarbonPHP/carbon.git", + "reference": "e890471a3494740f7d9326d72ce6a8c559ffee60" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/CarbonPHP/carbon/zipball/e890471a3494740f7d9326d72ce6a8c559ffee60", + "reference": "e890471a3494740f7d9326d72ce6a8c559ffee60", + "shasum": "" + }, + "require": { + "carbonphp/carbon-doctrine-types": "<100.0", + "ext-json": "*", + "php": "^8.1", + "psr/clock": "^1.0", + "symfony/clock": "^6.3.12 || ^7.0 || ^8.0", + "symfony/polyfill-mbstring": "^1.0", + "symfony/translation": "^4.4.18 || ^5.2.1 || ^6.0 || ^7.0 || ^8.0" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "require-dev": { + "doctrine/dbal": "^3.6.3 || ^4.0", + "doctrine/orm": "^2.15.2 || ^3.0", + "friendsofphp/php-cs-fixer": "^v3.87.1", + "kylekatarnls/multi-tester": "^2.5.3", + "phpmd/phpmd": "^2.15.0", + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^2.1.22", + "phpunit/phpunit": "^10.5.53", + "squizlabs/php_codesniffer": "^3.13.4 || ^4.0.0" + }, + "bin": [ + "bin/carbon" + ], + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Carbon\\Laravel\\ServiceProvider" + ] + }, + "phpstan": { + "includes": [ + "extension.neon" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev", + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Carbon\\": "src/Carbon/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Brian Nesbitt", + "email": "brian@nesbot.com", + "homepage": "https://markido.com" + }, + { + "name": "kylekatarnls", + "homepage": "https://github.com/kylekatarnls" + } + ], + "description": "An API extension for DateTime that supports 281 different languages.", + "homepage": "https://carbonphp.github.io/carbon/", + "keywords": [ + "date", + "datetime", + "time" + ], + "support": { + "docs": "https://carbonphp.github.io/carbon/guide/getting-started/introduction.html", + "issues": "https://github.com/CarbonPHP/carbon/issues", + "source": "https://github.com/CarbonPHP/carbon" + }, + "funding": [ + { + "url": "https://github.com/sponsors/kylekatarnls", + "type": "github" + }, + { + "url": "https://opencollective.com/Carbon#sponsor", + "type": "opencollective" + }, + { + "url": "https://tidelift.com/subscription/pkg/packagist-nesbot-carbon?utm_source=packagist-nesbot-carbon&utm_medium=referral&utm_campaign=readme", + "type": "tidelift" + } + ], + "time": "2026-04-07T09:57:54+00:00" + }, + { + "name": "nette/schema", + "version": "v1.3.5", + "source": { + "type": "git", + "url": "https://github.com/nette/schema.git", + "reference": "f0ab1a3cda782dbc5da270d28545236aa80c4002" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/schema/zipball/f0ab1a3cda782dbc5da270d28545236aa80c4002", + "reference": "f0ab1a3cda782dbc5da270d28545236aa80c4002", + "shasum": "" + }, + "require": { + "nette/utils": "^4.0", + "php": "8.1 - 8.5" + }, + "require-dev": { + "nette/phpstan-rules": "^1.0", + "nette/tester": "^2.6", + "phpstan/extension-installer": "^1.4@stable", + "phpstan/phpstan": "^2.1.39@stable", + "tracy/tracy": "^2.8" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.3-dev" + } + }, + "autoload": { + "psr-4": { + "Nette\\": "src" + }, + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "📐 Nette Schema: validating data structures against a given Schema.", + "homepage": "https://nette.org", + "keywords": [ + "config", + "nette" + ], + "support": { + "issues": "https://github.com/nette/schema/issues", + "source": "https://github.com/nette/schema/tree/v1.3.5" + }, + "time": "2026-02-23T03:47:12+00:00" + }, + { + "name": "nette/utils", + "version": "v4.1.4", + "source": { + "type": "git", + "url": "https://github.com/nette/utils.git", + "reference": "7da6c396d7ebe142bc857c20479d5e70a5e1aac7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nette/utils/zipball/7da6c396d7ebe142bc857c20479d5e70a5e1aac7", + "reference": "7da6c396d7ebe142bc857c20479d5e70a5e1aac7", + "shasum": "" + }, + "require": { + "php": "8.2 - 8.5" + }, + "conflict": { + "nette/finder": "<3", + "nette/schema": "<1.2.2" + }, + "require-dev": { + "jetbrains/phpstorm-attributes": "^1.2", + "nette/phpstan-rules": "^1.0", + "nette/tester": "^2.5", + "phpstan/extension-installer": "^1.4@stable", + "phpstan/phpstan": "^2.1@stable", + "tracy/tracy": "^2.9" + }, + "suggest": { + "ext-gd": "to use Image", + "ext-iconv": "to use Strings::webalize(), toAscii(), chr() and reverse()", + "ext-intl": "to use Strings::webalize(), toAscii(), normalize() and compare()", + "ext-json": "to use Nette\\Utils\\Json", + "ext-mbstring": "to use Strings::lower() etc...", + "ext-tokenizer": "to use Nette\\Utils\\Reflection::getUseStatements()" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "4.1-dev" + } + }, + "autoload": { + "psr-4": { + "Nette\\": "src" + }, + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause", + "GPL-2.0-only", + "GPL-3.0-only" + ], + "authors": [ + { + "name": "David Grudl", + "homepage": "https://davidgrudl.com" + }, + { + "name": "Nette Community", + "homepage": "https://nette.org/contributors" + } + ], + "description": "🛠 Nette Utils: lightweight utilities for string & array manipulation, image handling, safe JSON encoding/decoding, validation, slug or strong password generating etc.", + "homepage": "https://nette.org", + "keywords": [ + "array", + "core", + "datetime", + "images", + "json", + "nette", + "paginator", + "password", + "slugify", + "string", + "unicode", + "utf-8", + "utility", + "validation" + ], + "support": { + "issues": "https://github.com/nette/utils/issues", + "source": "https://github.com/nette/utils/tree/v4.1.4" + }, + "time": "2026-05-11T20:49:54+00:00" + }, + { + "name": "nikic/php-parser", + "version": "v5.7.0", + "source": { + "type": "git", + "url": "https://github.com/nikic/PHP-Parser.git", + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nikic/PHP-Parser/zipball/dca41cd15c2ac9d055ad70dbfd011130757d1f82", + "reference": "dca41cd15c2ac9d055ad70dbfd011130757d1f82", + "shasum": "" + }, + "require": { + "ext-ctype": "*", + "ext-json": "*", + "ext-tokenizer": "*", + "php": ">=7.4" + }, + "require-dev": { + "ircmaxell/php-yacc": "^0.0.7", + "phpunit/phpunit": "^9.0" + }, + "bin": [ + "bin/php-parse" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "5.x-dev" + } + }, + "autoload": { + "psr-4": { + "PhpParser\\": "lib/PhpParser" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Nikita Popov" + } + ], + "description": "A PHP parser written in PHP", + "keywords": [ + "parser", + "php" + ], + "support": { + "issues": "https://github.com/nikic/PHP-Parser/issues", + "source": "https://github.com/nikic/PHP-Parser/tree/v5.7.0" + }, + "time": "2025-12-06T11:56:16+00:00" + }, + { + "name": "nunomaduro/termwind", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/termwind.git", + "reference": "712a31b768f5daea284c2169a7d227031001b9a8" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/termwind/zipball/712a31b768f5daea284c2169a7d227031001b9a8", + "reference": "712a31b768f5daea284c2169a7d227031001b9a8", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": "^8.2", + "symfony/console": "^7.4.4 || ^8.0.4" + }, + "require-dev": { + "illuminate/console": "^11.47.0", + "laravel/pint": "^1.27.1", + "mockery/mockery": "^1.6.12", + "pestphp/pest": "^2.36.0 || ^3.8.4 || ^4.3.2", + "phpstan/phpstan": "^1.12.32", + "phpstan/phpstan-strict-rules": "^1.6.2", + "symfony/var-dumper": "^7.3.5 || ^8.0.4", + "thecodingmachine/phpstan-strict-rules": "^1.0.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Termwind\\Laravel\\TermwindServiceProvider" + ] + }, + "branch-alias": { + "dev-2.x": "2.x-dev" + } + }, + "autoload": { + "files": [ + "src/Functions.php" + ], + "psr-4": { + "Termwind\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "It's like Tailwind CSS, but for the console.", + "keywords": [ + "cli", + "console", + "css", + "package", + "php", + "style" + ], + "support": { + "issues": "https://github.com/nunomaduro/termwind/issues", + "source": "https://github.com/nunomaduro/termwind/tree/v2.4.0" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://github.com/xiCO2k", + "type": "github" + } + ], + "time": "2026-02-16T23:10:27+00:00" + }, + { + "name": "paragonie/constant_time_encoding", + "version": "v3.1.3", + "source": { + "type": "git", + "url": "https://github.com/paragonie/constant_time_encoding.git", + "reference": "d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/paragonie/constant_time_encoding/zipball/d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77", + "reference": "d5b01a39b3415c2cd581d3bd3a3575c1ebbd8e77", + "shasum": "" + }, + "require": { + "php": "^8" + }, + "require-dev": { + "infection/infection": "^0", + "nikic/php-fuzzer": "^0", + "phpunit/phpunit": "^9|^10|^11", + "vimeo/psalm": "^4|^5|^6" + }, + "type": "library", + "autoload": { + "psr-4": { + "ParagonIE\\ConstantTime\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Paragon Initiative Enterprises", + "email": "security@paragonie.com", + "homepage": "https://paragonie.com", + "role": "Maintainer" + }, + { + "name": "Steve 'Sc00bz' Thomas", + "email": "steve@tobtu.com", + "homepage": "https://www.tobtu.com", + "role": "Original Developer" + } + ], + "description": "Constant-time Implementations of RFC 4648 Encoding (Base-64, Base-32, Base-16)", + "keywords": [ + "base16", + "base32", + "base32_decode", + "base32_encode", + "base64", + "base64_decode", + "base64_encode", + "bin2hex", + "encoding", + "hex", + "hex2bin", + "rfc4648" + ], + "support": { + "email": "info@paragonie.com", + "issues": "https://github.com/paragonie/constant_time_encoding/issues", + "source": "https://github.com/paragonie/constant_time_encoding" + }, + "time": "2025-09-24T15:06:41+00:00" + }, + { + "name": "phpoption/phpoption", + "version": "1.9.5", + "source": { + "type": "git", + "url": "https://github.com/schmittjoh/php-option.git", + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/schmittjoh/php-option/zipball/75365b91986c2405cf5e1e012c5595cd487a98be", + "reference": "75365b91986c2405cf5e1e012c5595cd487a98be", + "shasum": "" + }, + "require": { + "php": "^7.2.5 || ^8.0" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "phpunit/phpunit": "^8.5.44 || ^9.6.25 || ^10.5.53 || ^11.5.34" + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "1.9-dev" + } + }, + "autoload": { + "psr-4": { + "PhpOption\\": "src/PhpOption/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "Apache-2.0" + ], + "authors": [ + { + "name": "Johannes M. Schmitt", + "email": "schmittjoh@gmail.com", + "homepage": "https://github.com/schmittjoh" + }, + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + } + ], + "description": "Option Type for PHP", + "keywords": [ + "language", + "option", + "php", + "type" + ], + "support": { + "issues": "https://github.com/schmittjoh/php-option/issues", + "source": "https://github.com/schmittjoh/php-option/tree/1.9.5" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpoption/phpoption", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:41:33+00:00" + }, + { + "name": "pragmarx/google2fa", + "version": "v8.0.3", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/google2fa.git", + "reference": "6f8d87ebd5afbf7790bde1ffc7579c7c705e0fad" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/google2fa/zipball/6f8d87ebd5afbf7790bde1ffc7579c7c705e0fad", + "reference": "6f8d87ebd5afbf7790bde1ffc7579c7c705e0fad", + "shasum": "" + }, + "require": { + "paragonie/constant_time_encoding": "^1.0|^2.0|^3.0", + "php": "^7.1|^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^1.9", + "phpunit/phpunit": "^7.5.15|^8.5|^9.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "PragmaRX\\Google2FA\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "role": "Creator & Designer" + } + ], + "description": "A One Time Password Authentication package, compatible with Google Authenticator.", + "keywords": [ + "2fa", + "Authentication", + "Two Factor Authentication", + "google2fa" + ], + "support": { + "issues": "https://github.com/antonioribeiro/google2fa/issues", + "source": "https://github.com/antonioribeiro/google2fa/tree/v8.0.3" + }, + "time": "2024-09-05T11:56:40+00:00" + }, + { + "name": "pragmarx/google2fa-laravel", + "version": "v3.0.1", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/google2fa-laravel.git", + "reference": "d885bb5bca8be03b226d040aa80250402760a67c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/google2fa-laravel/zipball/d885bb5bca8be03b226d040aa80250402760a67c", + "reference": "d885bb5bca8be03b226d040aa80250402760a67c", + "shasum": "" + }, + "require": { + "laravel/framework": "^6.0|^7.0|^8.0|^9.0|^10.0|^11.0|^12.0|^13.0", + "php": ">=7.0", + "pragmarx/google2fa-qrcode": "^1.0|^2.0|^3.0" + }, + "require-dev": { + "bacon/bacon-qr-code": "^2.0", + "orchestra/testbench": "3.4.*|3.5.*|3.6.*|3.7.*|4.*|5.*|6.*|7.*|8.*|9.*|10.*|11.*", + "phpunit/phpunit": "~5|~6|~7|~8|~9|~10|~11|~12" + }, + "suggest": { + "bacon/bacon-qr-code": "Required to generate inline QR Codes.", + "pragmarx/recovery": "Generate recovery codes." + }, + "type": "library", + "extra": { + "laravel": { + "aliases": { + "Google2FA": "PragmaRX\\Google2FALaravel\\Facade" + }, + "providers": [ + "PragmaRX\\Google2FALaravel\\ServiceProvider" + ] + }, + "component": "package", + "frameworks": [ + "Laravel" + ], + "branch-alias": { + "dev-master": "0.2-dev" + } + }, + "autoload": { + "psr-4": { + "PragmaRX\\Google2FALaravel\\": "src/", + "PragmaRX\\Google2FALaravel\\Tests\\": "tests/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "role": "Creator & Designer" + } + ], + "description": "A One Time Password Authentication package, compatible with Google Authenticator.", + "keywords": [ + "Authentication", + "Two Factor Authentication", + "google2fa", + "laravel" + ], + "support": { + "issues": "https://github.com/antonioribeiro/google2fa-laravel/issues", + "source": "https://github.com/antonioribeiro/google2fa-laravel/tree/v3.0.1" + }, + "time": "2026-03-17T20:54:53+00:00" + }, + { + "name": "pragmarx/google2fa-qrcode", + "version": "v3.0.1", + "source": { + "type": "git", + "url": "https://github.com/antonioribeiro/google2fa-qrcode.git", + "reference": "c23ebcc3a50de0d1566016a6dd1486e183bb78e1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/antonioribeiro/google2fa-qrcode/zipball/c23ebcc3a50de0d1566016a6dd1486e183bb78e1", + "reference": "c23ebcc3a50de0d1566016a6dd1486e183bb78e1", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "pragmarx/google2fa": "^4.0|^5.0|^6.0|^7.0|^8.0" + }, + "require-dev": { + "bacon/bacon-qr-code": "^2.0", + "chillerlan/php-qrcode": "^1.0|^2.0|^3.0|^4.0", + "khanamiryan/qrcode-detector-decoder": "^1.0", + "phpunit/phpunit": "~4|~5|~6|~7|~8|~9" + }, + "suggest": { + "bacon/bacon-qr-code": "For QR Code generation, requires imagick", + "chillerlan/php-qrcode": "For QR Code generation" + }, + "type": "library", + "extra": { + "component": "package", + "branch-alias": { + "dev-master": "1.0-dev" + } + }, + "autoload": { + "psr-4": { + "PragmaRX\\Google2FAQRCode\\": "src/", + "PragmaRX\\Google2FAQRCode\\Tests\\": "tests/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Antonio Carlos Ribeiro", + "email": "acr@antoniocarlosribeiro.com", + "role": "Creator & Designer" + } + ], + "description": "QR Code package for Google2FA", + "keywords": [ + "2fa", + "Authentication", + "Two Factor Authentication", + "google2fa", + "qr code", + "qrcode" + ], + "support": { + "issues": "https://github.com/antonioribeiro/google2fa-qrcode/issues", + "source": "https://github.com/antonioribeiro/google2fa-qrcode/tree/v3.0.1" + }, + "time": "2025-09-19T23:02:26+00:00" + }, + { + "name": "psr/clock", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/clock.git", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/clock/zipball/e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "reference": "e41a24703d4560fd0acb709162f73b8adfc3aa0d", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Psr\\Clock\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for reading the clock.", + "homepage": "https://github.com/php-fig/clock", + "keywords": [ + "clock", + "now", + "psr", + "psr-20", + "time" + ], + "support": { + "issues": "https://github.com/php-fig/clock/issues", + "source": "https://github.com/php-fig/clock/tree/1.0.0" + }, + "time": "2022-11-25T14:36:26+00:00" + }, + { + "name": "psr/container", + "version": "2.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/container.git", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/container/zipball/c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "reference": "c71ecc56dfe541dbd90c5360474fbc405f8d5963", + "shasum": "" + }, + "require": { + "php": ">=7.4.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Container\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common Container Interface (PHP FIG PSR-11)", + "homepage": "https://github.com/php-fig/container", + "keywords": [ + "PSR-11", + "container", + "container-interface", + "container-interop", + "psr" + ], + "support": { + "issues": "https://github.com/php-fig/container/issues", + "source": "https://github.com/php-fig/container/tree/2.0.2" + }, + "time": "2021-11-05T16:47:00+00:00" + }, + { + "name": "psr/event-dispatcher", + "version": "1.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/event-dispatcher.git", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/event-dispatcher/zipball/dbefd12671e8a14ec7f180cab83036ed26714bb0", + "reference": "dbefd12671e8a14ec7f180cab83036ed26714bb0", + "shasum": "" + }, + "require": { + "php": ">=7.2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\EventDispatcher\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "http://www.php-fig.org/" + } + ], + "description": "Standard interfaces for event handling.", + "keywords": [ + "events", + "psr", + "psr-14" + ], + "support": { + "issues": "https://github.com/php-fig/event-dispatcher/issues", + "source": "https://github.com/php-fig/event-dispatcher/tree/1.0.0" + }, + "time": "2019-01-08T18:20:26+00:00" + }, + { + "name": "psr/http-client", + "version": "1.0.3", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-client.git", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-client/zipball/bb5906edc1c324c9a05aa0873d40117941e5fa90", + "reference": "bb5906edc1c324c9a05aa0873d40117941e5fa90", + "shasum": "" + }, + "require": { + "php": "^7.0 || ^8.0", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Client\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP clients", + "homepage": "https://github.com/php-fig/http-client", + "keywords": [ + "http", + "http-client", + "psr", + "psr-18" + ], + "support": { + "source": "https://github.com/php-fig/http-client" + }, + "time": "2023-09-23T14:17:50+00:00" + }, + { + "name": "psr/http-factory", + "version": "1.1.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-factory.git", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-factory/zipball/2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "reference": "2b4765fddfe3b508ac62f829e852b1501d3f6e8a", + "shasum": "" + }, + "require": { + "php": ">=7.1", + "psr/http-message": "^1.0 || ^2.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "1.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "PSR-17: Common interfaces for PSR-7 HTTP message factories", + "keywords": [ + "factory", + "http", + "message", + "psr", + "psr-17", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-factory" + }, + "time": "2024-04-15T12:06:14+00:00" + }, + { + "name": "psr/http-message", + "version": "2.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/http-message.git", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/http-message/zipball/402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "reference": "402d35bcb92c70c026d1a6a9883f06b2ead23d71", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Http\\Message\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for HTTP messages", + "homepage": "https://github.com/php-fig/http-message", + "keywords": [ + "http", + "http-message", + "psr", + "psr-7", + "request", + "response" + ], + "support": { + "source": "https://github.com/php-fig/http-message/tree/2.0" + }, + "time": "2023-04-04T09:54:51+00:00" + }, + { + "name": "psr/log", + "version": "3.0.2", + "source": { + "type": "git", + "url": "https://github.com/php-fig/log.git", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/log/zipball/f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "reference": "f16e1d5863e37f8d8c2a01719f5b34baa2b714d3", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\Log\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interface for logging libraries", + "homepage": "https://github.com/php-fig/log", + "keywords": [ + "log", + "psr", + "psr-3" + ], + "support": { + "source": "https://github.com/php-fig/log/tree/3.0.2" + }, + "time": "2024-09-11T13:17:53+00:00" + }, + { + "name": "psr/simple-cache", + "version": "3.0.0", + "source": { + "type": "git", + "url": "https://github.com/php-fig/simple-cache.git", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/php-fig/simple-cache/zipball/764e0b3939f5ca87cb904f570ef9be2d78a07865", + "reference": "764e0b3939f5ca87cb904f570ef9be2d78a07865", + "shasum": "" + }, + "require": { + "php": ">=8.0.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "3.0.x-dev" + } + }, + "autoload": { + "psr-4": { + "Psr\\SimpleCache\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "PHP-FIG", + "homepage": "https://www.php-fig.org/" + } + ], + "description": "Common interfaces for simple caching", + "keywords": [ + "cache", + "caching", + "psr", + "psr-16", + "simple-cache" + ], + "support": { + "source": "https://github.com/php-fig/simple-cache/tree/3.0.0" + }, + "time": "2021-10-29T13:26:27+00:00" + }, + { + "name": "psy/psysh", + "version": "v0.12.22", + "source": { + "type": "git", + "url": "https://github.com/bobthecow/psysh.git", + "reference": "3be75d5b9244936dd4ac62ade2bfb004d13acf0f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/bobthecow/psysh/zipball/3be75d5b9244936dd4ac62ade2bfb004d13acf0f", + "reference": "3be75d5b9244936dd4ac62ade2bfb004d13acf0f", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-tokenizer": "*", + "nikic/php-parser": "^5.0 || ^4.0", + "php": "^8.0 || ^7.4", + "symfony/console": "^8.0 || ^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4", + "symfony/var-dumper": "^8.0 || ^7.0 || ^6.0 || ^5.0 || ^4.0 || ^3.4" + }, + "conflict": { + "symfony/console": "4.4.37 || 5.3.14 || 5.3.15 || 5.4.3 || 5.4.4 || 6.0.3 || 6.0.4" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.2", + "composer/class-map-generator": "^1.6" + }, + "suggest": { + "composer/class-map-generator": "Improved tab completion performance with better class discovery.", + "ext-pcntl": "Enabling the PCNTL extension makes PsySH a lot happier :)", + "ext-posix": "If you have PCNTL, you'll want the POSIX extension as well." + }, + "bin": [ + "bin/psysh" + ], + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": false, + "forward-command": false + }, + "branch-alias": { + "dev-main": "0.12.x-dev" + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Psy\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Justin Hileman", + "email": "justin@justinhileman.info" + } + ], + "description": "An interactive shell for modern PHP.", + "homepage": "https://psysh.org", + "keywords": [ + "REPL", + "console", + "interactive", + "shell" + ], + "support": { + "issues": "https://github.com/bobthecow/psysh/issues", + "source": "https://github.com/bobthecow/psysh/tree/v0.12.22" + }, + "time": "2026-03-22T23:03:24+00:00" + }, + { + "name": "ralouphie/getallheaders", + "version": "3.0.3", + "source": { + "type": "git", + "url": "https://github.com/ralouphie/getallheaders.git", + "reference": "120b605dfeb996808c31b6477290a714d356e822" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ralouphie/getallheaders/zipball/120b605dfeb996808c31b6477290a714d356e822", + "reference": "120b605dfeb996808c31b6477290a714d356e822", + "shasum": "" + }, + "require": { + "php": ">=5.6" + }, + "require-dev": { + "php-coveralls/php-coveralls": "^2.1", + "phpunit/phpunit": "^5 || ^6.5" + }, + "type": "library", + "autoload": { + "files": [ + "src/getallheaders.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ralph Khattar", + "email": "ralph.khattar@gmail.com" + } + ], + "description": "A polyfill for getallheaders.", + "support": { + "issues": "https://github.com/ralouphie/getallheaders/issues", + "source": "https://github.com/ralouphie/getallheaders/tree/develop" + }, + "time": "2019-03-08T08:55:37+00:00" + }, + { + "name": "ramsey/collection", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/ramsey/collection.git", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/collection/zipball/344572933ad0181accbf4ba763e85a0306a8c5e2", + "reference": "344572933ad0181accbf4ba763e85a0306a8c5e2", + "shasum": "" + }, + "require": { + "php": "^8.1" + }, + "require-dev": { + "captainhook/plugin-composer": "^5.3", + "ergebnis/composer-normalize": "^2.45", + "fakerphp/faker": "^1.24", + "hamcrest/hamcrest-php": "^2.0", + "jangregor/phpstan-prophecy": "^2.1", + "mockery/mockery": "^1.6", + "php-parallel-lint/php-console-highlighter": "^1.0", + "php-parallel-lint/php-parallel-lint": "^1.4", + "phpspec/prophecy-phpunit": "^2.3", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^10.5", + "ramsey/coding-standard": "^2.3", + "ramsey/conventional-commits": "^1.6", + "roave/security-advisories": "dev-latest" + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + }, + "ramsey/conventional-commits": { + "configFile": "conventional-commits.json" + } + }, + "autoload": { + "psr-4": { + "Ramsey\\Collection\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ben Ramsey", + "email": "ben@benramsey.com", + "homepage": "https://benramsey.com" + } + ], + "description": "A PHP library for representing and manipulating collections.", + "keywords": [ + "array", + "collection", + "hash", + "map", + "queue", + "set" + ], + "support": { + "issues": "https://github.com/ramsey/collection/issues", + "source": "https://github.com/ramsey/collection/tree/2.1.1" + }, + "time": "2025-03-22T05:38:12+00:00" + }, + { + "name": "ramsey/uuid", + "version": "4.9.2", + "source": { + "type": "git", + "url": "https://github.com/ramsey/uuid.git", + "reference": "8429c78ca35a09f27565311b98101e2826affde0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/ramsey/uuid/zipball/8429c78ca35a09f27565311b98101e2826affde0", + "reference": "8429c78ca35a09f27565311b98101e2826affde0", + "shasum": "" + }, + "require": { + "brick/math": "^0.8.16 || ^0.9 || ^0.10 || ^0.11 || ^0.12 || ^0.13 || ^0.14", + "php": "^8.0", + "ramsey/collection": "^1.2 || ^2.0" + }, + "replace": { + "rhumsaa/uuid": "self.version" + }, + "require-dev": { + "captainhook/captainhook": "^5.25", + "captainhook/plugin-composer": "^5.3", + "dealerdirect/phpcodesniffer-composer-installer": "^1.0", + "ergebnis/composer-normalize": "^2.47", + "mockery/mockery": "^1.6", + "paragonie/random-lib": "^2", + "php-mock/php-mock": "^2.6", + "php-mock/php-mock-mockery": "^1.5", + "php-parallel-lint/php-parallel-lint": "^1.4.0", + "phpbench/phpbench": "^1.2.14", + "phpstan/extension-installer": "^1.4", + "phpstan/phpstan": "^2.1", + "phpstan/phpstan-mockery": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^9.6", + "slevomat/coding-standard": "^8.18", + "squizlabs/php_codesniffer": "^3.13" + }, + "suggest": { + "ext-bcmath": "Enables faster math with arbitrary-precision integers using BCMath.", + "ext-gmp": "Enables faster math with arbitrary-precision integers using GMP.", + "ext-uuid": "Enables the use of PeclUuidTimeGenerator and PeclUuidRandomGenerator.", + "paragonie/random-lib": "Provides RandomLib for use with the RandomLibAdapter", + "ramsey/uuid-doctrine": "Allows the use of Ramsey\\Uuid\\Uuid as Doctrine field type." + }, + "type": "library", + "extra": { + "captainhook": { + "force-install": true + } + }, + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Ramsey\\Uuid\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A PHP library for generating and working with universally unique identifiers (UUIDs).", + "keywords": [ + "guid", + "identifier", + "uuid" + ], + "support": { + "issues": "https://github.com/ramsey/uuid/issues", + "source": "https://github.com/ramsey/uuid/tree/4.9.2" + }, + "time": "2025-12-14T04:43:48+00:00" + }, + { + "name": "symfony/clock", + "version": "v8.0.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/clock.git", + "reference": "b55a638b189a6faa875e0ccdb00908fb87af95b3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/clock/zipball/b55a638b189a6faa875e0ccdb00908fb87af95b3", + "reference": "b55a638b189a6faa875e0ccdb00908fb87af95b3", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "psr/clock": "^1.0" + }, + "provide": { + "psr/clock-implementation": "1.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/now.php" + ], + "psr-4": { + "Symfony\\Component\\Clock\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Decouples applications from the system clock", + "homepage": "https://symfony.com", + "keywords": [ + "clock", + "psr20", + "time" + ], + "support": { + "source": "https://github.com/symfony/clock/tree/v8.0.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-30T15:14:47+00:00" + }, + { + "name": "symfony/console", + "version": "v8.0.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/console.git", + "reference": "3156577f46a38aa1b9323aad223de7a9cd426782" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/console/zipball/3156577f46a38aa1b9323aad223de7a9cd426782", + "reference": "3156577f46a38aa1b9323aad223de7a9cd426782", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/polyfill-mbstring": "^1.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/string": "^7.4|^8.0" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/event-dispatcher": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/lock": "^7.4|^8.0", + "symfony/messenger": "^7.4|^8.0", + "symfony/process": "^7.4|^8.0", + "symfony/stopwatch": "^7.4|^8.0", + "symfony/var-dumper": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Console\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Eases the creation of beautiful and testable command line interfaces", + "homepage": "https://symfony.com", + "keywords": [ + "cli", + "command-line", + "console", + "terminal" + ], + "support": { + "source": "https://github.com/symfony/console/tree/v8.0.11" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-05-13T12:07:53+00:00" + }, + { + "name": "symfony/css-selector", + "version": "v8.0.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/css-selector.git", + "reference": "3665cfade90565430909b906394c73c8739e57d0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/css-selector/zipball/3665cfade90565430909b906394c73c8739e57d0", + "reference": "3665cfade90565430909b906394c73c8739e57d0", + "shasum": "" + }, + "require": { + "php": ">=8.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\CssSelector\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Jean-François Simon", + "email": "jeanfrancois.simon@sensiolabs.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Converts CSS selectors to XPath expressions", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/css-selector/tree/v8.0.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-18T13:51:42+00:00" + }, + { + "name": "symfony/deprecation-contracts", + "version": "v3.7.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/deprecation-contracts.git", + "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/deprecation-contracts/zipball/50f59d1f3ca46d41ac911f97a78626b6756af35b", + "reference": "50f59d1f3ca46d41ac911f97a78626b6756af35b", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.7-dev" + } + }, + "autoload": { + "files": [ + "function.php" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "A generic function and convention to trigger deprecation notices", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/deprecation-contracts/tree/v3.7.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-13T15:52:40+00:00" + }, + { + "name": "symfony/error-handler", + "version": "v8.0.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/error-handler.git", + "reference": "c1119fe8dcfc3825ec74ec061b96ef0c8f281517" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/error-handler/zipball/c1119fe8dcfc3825ec74ec061b96ef0c8f281517", + "reference": "c1119fe8dcfc3825ec74ec061b96ef0c8f281517", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "psr/log": "^1|^2|^3", + "symfony/polyfill-php85": "^1.32", + "symfony/var-dumper": "^7.4|^8.0" + }, + "conflict": { + "symfony/deprecation-contracts": "<2.5" + }, + "require-dev": { + "symfony/console": "^7.4|^8.0", + "symfony/deprecation-contracts": "^2.5|^3", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/serializer": "^7.4|^8.0", + "symfony/webpack-encore-bundle": "^1.0|^2.0" + }, + "bin": [ + "Resources/bin/patch-type-declarations" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\ErrorHandler\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to manage errors and ease debugging PHP code", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/error-handler/tree/v8.0.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-30T15:14:47+00:00" + }, + { + "name": "symfony/event-dispatcher", + "version": "v8.0.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher.git", + "reference": "0c3c1a17604c4dbbec4b93fe162c538482096e1f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher/zipball/0c3c1a17604c4dbbec4b93fe162c538482096e1f", + "reference": "0c3c1a17604c4dbbec4b93fe162c538482096e1f", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/event-dispatcher-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/security-http": "<7.4", + "symfony/service-contracts": "<2.5" + }, + "provide": { + "psr/event-dispatcher-implementation": "1.0", + "symfony/event-dispatcher-implementation": "2.0|3.0" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/error-handler": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/framework-bundle": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/stopwatch": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\EventDispatcher\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools that allow your application components to communicate with each other by dispatching events and listening to them", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/event-dispatcher/tree/v8.0.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-18T13:51:42+00:00" + }, + { + "name": "symfony/event-dispatcher-contracts", + "version": "v3.7.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/event-dispatcher-contracts.git", + "reference": "ccba7060602b7fed0b03c85bf025257f76d9ef32" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/event-dispatcher-contracts/zipball/ccba7060602b7fed0b03c85bf025257f76d9ef32", + "reference": "ccba7060602b7fed0b03c85bf025257f76d9ef32", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/event-dispatcher": "^1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.7-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\EventDispatcher\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to dispatching event", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/event-dispatcher-contracts/tree/v3.7.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-01-05T13:30:16+00:00" + }, + { + "name": "symfony/finder", + "version": "v8.0.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/finder.git", + "reference": "8da41214757b87d97f181e3d14a4179286151007" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/finder/zipball/8da41214757b87d97f181e3d14a4179286151007", + "reference": "8da41214757b87d97f181e3d14a4179286151007", + "shasum": "" + }, + "require": { + "php": ">=8.4" + }, + "require-dev": { + "symfony/filesystem": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Finder\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Finds files and directories via an intuitive fluent interface", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/finder/tree/v8.0.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-30T15:14:47+00:00" + }, + { + "name": "symfony/http-foundation", + "version": "v8.0.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-foundation.git", + "reference": "02656f7ebeae5c155d659e946f6b3a33df24051b" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-foundation/zipball/02656f7ebeae5c155d659e946f6b3a33df24051b", + "reference": "02656f7ebeae5c155d659e946f6b3a33df24051b", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/polyfill-mbstring": "^1.1" + }, + "conflict": { + "doctrine/dbal": "<4.3" + }, + "require-dev": { + "doctrine/dbal": "^4.3", + "predis/predis": "^1.1|^2.0", + "symfony/cache": "^7.4|^8.0", + "symfony/clock": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/mime": "^7.4|^8.0", + "symfony/rate-limiter": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpFoundation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Defines an object-oriented layer for the HTTP specification", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-foundation/tree/v8.0.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-30T15:14:47+00:00" + }, + { + "name": "symfony/http-kernel", + "version": "v8.0.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/http-kernel.git", + "reference": "20d3680373f4b791903c09e74b45402b4aeda71c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/http-kernel/zipball/20d3680373f4b791903c09e74b45402b4aeda71c", + "reference": "20d3680373f4b791903c09e74b45402b4aeda71c", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "psr/log": "^1|^2|^3", + "symfony/error-handler": "^7.4|^8.0", + "symfony/event-dispatcher": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/flex": "<2.10", + "symfony/http-client-contracts": "<2.5", + "symfony/translation-contracts": "<2.5", + "twig/twig": "<3.21" + }, + "provide": { + "psr/log-implementation": "1.0|2.0|3.0" + }, + "require-dev": { + "psr/cache": "^1.0|^2.0|^3.0", + "symfony/browser-kit": "^7.4|^8.0", + "symfony/clock": "^7.4|^8.0", + "symfony/config": "^7.4|^8.0", + "symfony/console": "^7.4|^8.0", + "symfony/css-selector": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/dom-crawler": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/finder": "^7.4|^8.0", + "symfony/http-client-contracts": "^2.5|^3", + "symfony/process": "^7.4|^8.0", + "symfony/property-access": "^7.4|^8.0", + "symfony/routing": "^7.4|^8.0", + "symfony/serializer": "^7.4|^8.0", + "symfony/stopwatch": "^7.4|^8.0", + "symfony/translation": "^7.4|^8.0", + "symfony/translation-contracts": "^2.5|^3", + "symfony/uid": "^7.4|^8.0", + "symfony/validator": "^7.4|^8.0", + "symfony/var-dumper": "^7.4|^8.0", + "symfony/var-exporter": "^7.4|^8.0", + "twig/twig": "^3.21" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\HttpKernel\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides a structured process for converting a Request into a Response", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/http-kernel/tree/v8.0.11" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-05-13T18:07:14+00:00" + }, + { + "name": "symfony/mailer", + "version": "v8.0.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/mailer.git", + "reference": "ca5f6edaf8780ece814404b58a4482b22b509c56" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mailer/zipball/ca5f6edaf8780ece814404b58a4482b22b509c56", + "reference": "ca5f6edaf8780ece814404b58a4482b22b509c56", + "shasum": "" + }, + "require": { + "egulias/email-validator": "^2.1.10|^3|^4", + "php": ">=8.4", + "psr/event-dispatcher": "^1", + "psr/log": "^1|^2|^3", + "symfony/event-dispatcher": "^7.4|^8.0", + "symfony/mime": "^7.4|^8.0", + "symfony/service-contracts": "^2.5|^3" + }, + "conflict": { + "symfony/http-client-contracts": "<2.5" + }, + "require-dev": { + "symfony/console": "^7.4|^8.0", + "symfony/http-client": "^7.4|^8.0", + "symfony/messenger": "^7.4|^8.0", + "symfony/twig-bridge": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mailer\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Helps sending emails", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/mailer/tree/v8.0.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-30T15:14:47+00:00" + }, + { + "name": "symfony/mime", + "version": "v8.0.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/mime.git", + "reference": "a9fcb293650c054b62a5b406f4e92e7b711ea333" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/mime/zipball/a9fcb293650c054b62a5b406f4e92e7b711ea333", + "reference": "a9fcb293650c054b62a5b406f4e92e7b711ea333", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/polyfill-intl-idn": "^1.10", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "egulias/email-validator": "~3.0.0", + "phpdocumentor/reflection-docblock": "<5.2|>=7", + "phpdocumentor/type-resolver": "<1.5.1" + }, + "require-dev": { + "egulias/email-validator": "^2.1.10|^3.1|^4", + "league/html-to-markdown": "^5.0", + "phpdocumentor/reflection-docblock": "^5.2|^6.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/process": "^7.4|^8.0", + "symfony/property-access": "^7.4|^8.0", + "symfony/property-info": "^7.4|^8.0", + "symfony/serializer": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Mime\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Allows manipulating MIME messages", + "homepage": "https://symfony.com", + "keywords": [ + "mime", + "mime-type" + ], + "support": { + "source": "https://github.com/symfony/mime/tree/v8.0.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-29T15:02:55+00:00" + }, + { + "name": "symfony/polyfill-ctype", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-ctype.git", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/141046a8f9477948ff284fa65be2095baafb94f2", + "reference": "141046a8f9477948ff284fa65be2095baafb94f2", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-ctype": "*" + }, + "suggest": { + "ext-ctype": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Ctype\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Gert de Pagter", + "email": "BackEndTea@gmail.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for ctype functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "ctype", + "polyfill", + "portable" + ], + "support": { + "source": "https://github.com/symfony/polyfill-ctype/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-10T16:19:22+00:00" + }, + { + "name": "symfony/polyfill-intl-grapheme", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-grapheme.git", + "reference": "4864388bfbd3001ce88e234fab652acd91fdc57e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-grapheme/zipball/4864388bfbd3001ce88e234fab652acd91fdc57e", + "reference": "4864388bfbd3001ce88e234fab652acd91fdc57e", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Grapheme\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's grapheme_* functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "grapheme", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-grapheme/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-26T13:13:48+00:00" + }, + { + "name": "symfony/polyfill-intl-idn", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-idn.git", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-idn/zipball/9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "reference": "9614ac4d8061dc257ecc64cba1b140873dce8ad3", + "shasum": "" + }, + "require": { + "php": ">=7.2", + "symfony/polyfill-intl-normalizer": "^1.10" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Idn\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Laurent Bassin", + "email": "laurent@bassin.info" + }, + { + "name": "Trevor Rowbotham", + "email": "trevor.rowbotham@pm.me" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's idn_to_ascii and idn_to_utf8 functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "idn", + "intl", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-idn/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-10T14:38:51+00:00" + }, + { + "name": "symfony/polyfill-intl-normalizer", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-intl-normalizer.git", + "reference": "3833d7255cc303546435cb650316bff708a1c75c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-intl-normalizer/zipball/3833d7255cc303546435cb650316bff708a1c75c", + "reference": "3833d7255cc303546435cb650316bff708a1c75c", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "suggest": { + "ext-intl": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Intl\\Normalizer\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for intl's Normalizer class and related functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "intl", + "normalizer", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-intl-normalizer/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2024-09-09T11:45:10+00:00" + }, + { + "name": "symfony/polyfill-mbstring", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-mbstring.git", + "reference": "6a21eb99c6973357967f6ce3708cd55a6bec6315" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/6a21eb99c6973357967f6ce3708cd55a6bec6315", + "reference": "6a21eb99c6973357967f6ce3708cd55a6bec6315", + "shasum": "" + }, + "require": { + "ext-iconv": "*", + "php": ">=7.2" + }, + "provide": { + "ext-mbstring": "*" + }, + "suggest": { + "ext-mbstring": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Mbstring\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for the Mbstring extension", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "mbstring", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-10T17:25:58+00:00" + }, + { + "name": "symfony/polyfill-php80", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php80.git", + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php80/zipball/dfb55726c3a76ea3b6459fcfda1ec2d80a682411", + "reference": "dfb55726c3a76ea3b6459fcfda1ec2d80a682411", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php80\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Ion Bazan", + "email": "ion.bazan@gmail.com" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.0+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php80/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-10T16:19:22+00:00" + }, + { + "name": "symfony/polyfill-php84", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php84.git", + "reference": "88486db2c389b290bf87ff1de7ebc1e13e42bb06" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php84/zipball/88486db2c389b290bf87ff1de7ebc1e13e42bb06", + "reference": "88486db2c389b290bf87ff1de7ebc1e13e42bb06", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php84\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.4+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php84/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-10T18:47:49+00:00" + }, + { + "name": "symfony/polyfill-php85", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php85.git", + "reference": "fcfa4973a9917cef23f2e38774da74a2b7d115ee" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php85/zipball/fcfa4973a9917cef23f2e38774da74a2b7d115ee", + "reference": "fcfa4973a9917cef23f2e38774da74a2b7d115ee", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php85\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.5+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php85/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-26T13:10:57+00:00" + }, + { + "name": "symfony/polyfill-php86", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-php86.git", + "reference": "33d8fc5a705481e21fe3a81212b26f9b1f61749c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-php86/zipball/33d8fc5a705481e21fe3a81212b26f9b1f61749c", + "reference": "33d8fc5a705481e21fe3a81212b26f9b1f61749c", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Php86\\": "" + }, + "classmap": [ + "Resources/stubs" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill backporting some PHP 8.6+ features to lower PHP versions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "shim" + ], + "support": { + "source": "https://github.com/symfony/polyfill-php86/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-26T13:13:48+00:00" + }, + { + "name": "symfony/polyfill-uuid", + "version": "v1.37.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/polyfill-uuid.git", + "reference": "26dfec253c4cf3e51b541b52ddf7e42cb0908e94" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/polyfill-uuid/zipball/26dfec253c4cf3e51b541b52ddf7e42cb0908e94", + "reference": "26dfec253c4cf3e51b541b52ddf7e42cb0908e94", + "shasum": "" + }, + "require": { + "php": ">=7.2" + }, + "provide": { + "ext-uuid": "*" + }, + "suggest": { + "ext-uuid": "For best performance" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/polyfill", + "name": "symfony/polyfill" + } + }, + "autoload": { + "files": [ + "bootstrap.php" + ], + "psr-4": { + "Symfony\\Polyfill\\Uuid\\": "" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Symfony polyfill for uuid functions", + "homepage": "https://symfony.com", + "keywords": [ + "compatibility", + "polyfill", + "portable", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/polyfill-uuid/tree/v1.37.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-10T16:19:22+00:00" + }, + { + "name": "symfony/process", + "version": "v8.0.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/process.git", + "reference": "26d89e459f037d2873300605d0a07e7a8ef84db0" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/process/zipball/26d89e459f037d2873300605d0a07e7a8ef84db0", + "reference": "26d89e459f037d2873300605d0a07e7a8ef84db0", + "shasum": "" + }, + "require": { + "php": ">=8.4" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Process\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Executes commands in sub-processes", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/process/tree/v8.0.11" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-05-11T16:56:32+00:00" + }, + { + "name": "symfony/routing", + "version": "v8.0.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/routing.git", + "reference": "75d1bd8e5da3424e4db2fc3ff0222cb4d0c73038" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/routing/zipball/75d1bd8e5da3424e4db2fc3ff0222cb4d0c73038", + "reference": "75d1bd8e5da3424e4db2fc3ff0222cb4d0c73038", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "require-dev": { + "psr/log": "^1|^2|^3", + "symfony/config": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/expression-language": "^7.4|^8.0", + "symfony/http-foundation": "^7.4|^8.0", + "symfony/yaml": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Routing\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Maps an HTTP request to a set of configuration variables", + "homepage": "https://symfony.com", + "keywords": [ + "router", + "routing", + "uri", + "url" + ], + "support": { + "source": "https://github.com/symfony/routing/tree/v8.0.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-29T15:02:55+00:00" + }, + { + "name": "symfony/service-contracts", + "version": "v3.7.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/service-contracts.git", + "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/service-contracts/zipball/d25d82433a80eba6aa0e6c24b61d7370d99e444a", + "reference": "d25d82433a80eba6aa0e6c24b61d7370d99e444a", + "shasum": "" + }, + "require": { + "php": ">=8.1", + "psr/container": "^1.1|^2.0", + "symfony/deprecation-contracts": "^2.5|^3" + }, + "conflict": { + "ext-psr": "<1.1|>=2" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.7-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Service\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to writing services", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/service-contracts/tree/v3.7.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-28T09:44:51+00:00" + }, + { + "name": "symfony/string", + "version": "v8.0.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/string.git", + "reference": "39be2ad058a3c0bd558edca23e65f009865d75ff" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/string/zipball/39be2ad058a3c0bd558edca23e65f009865d75ff", + "reference": "39be2ad058a3c0bd558edca23e65f009865d75ff", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/polyfill-ctype": "^1.8", + "symfony/polyfill-intl-grapheme": "^1.33", + "symfony/polyfill-intl-normalizer": "^1.0", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "symfony/translation-contracts": "<2.5" + }, + "require-dev": { + "symfony/emoji": "^7.4|^8.0", + "symfony/http-client": "^7.4|^8.0", + "symfony/intl": "^7.4|^8.0", + "symfony/translation-contracts": "^2.5|^3.0", + "symfony/var-exporter": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\String\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to strings and deals with bytes, UTF-8 code points and grapheme clusters in a unified way", + "homepage": "https://symfony.com", + "keywords": [ + "grapheme", + "i18n", + "string", + "unicode", + "utf-8", + "utf8" + ], + "support": { + "source": "https://github.com/symfony/string/tree/v8.0.11" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-05-13T12:07:53+00:00" + }, + { + "name": "symfony/translation", + "version": "v8.0.10", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation.git", + "reference": "f63e9342e12646a57c91ef8a366a4f9d8e557b67" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation/zipball/f63e9342e12646a57c91ef8a366a4f9d8e557b67", + "reference": "f63e9342e12646a57c91ef8a366a4f9d8e557b67", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/polyfill-mbstring": "^1.0", + "symfony/translation-contracts": "^3.6.1" + }, + "conflict": { + "nikic/php-parser": "<5.0", + "symfony/http-client-contracts": "<2.5", + "symfony/service-contracts": "<2.5" + }, + "provide": { + "symfony/translation-implementation": "2.3|3.0" + }, + "require-dev": { + "nikic/php-parser": "^5.0", + "psr/log": "^1|^2|^3", + "symfony/config": "^7.4|^8.0", + "symfony/console": "^7.4|^8.0", + "symfony/dependency-injection": "^7.4|^8.0", + "symfony/finder": "^7.4|^8.0", + "symfony/http-client-contracts": "^2.5|^3.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/intl": "^7.4|^8.0", + "symfony/polyfill-intl-icu": "^1.21", + "symfony/routing": "^7.4|^8.0", + "symfony/service-contracts": "^2.5|^3", + "symfony/yaml": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "files": [ + "Resources/functions.php" + ], + "psr-4": { + "Symfony\\Component\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides tools to internationalize your application", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/translation/tree/v8.0.10" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-05-06T11:30:54+00:00" + }, + { + "name": "symfony/translation-contracts", + "version": "v3.7.0", + "source": { + "type": "git", + "url": "https://github.com/symfony/translation-contracts.git", + "reference": "0ab302977a952b42fd51475c4ebac81f8da0a95d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/translation-contracts/zipball/0ab302977a952b42fd51475c4ebac81f8da0a95d", + "reference": "0ab302977a952b42fd51475c4ebac81f8da0a95d", + "shasum": "" + }, + "require": { + "php": ">=8.1" + }, + "type": "library", + "extra": { + "thanks": { + "url": "https://github.com/symfony/contracts", + "name": "symfony/contracts" + }, + "branch-alias": { + "dev-main": "3.7-dev" + } + }, + "autoload": { + "psr-4": { + "Symfony\\Contracts\\Translation\\": "" + }, + "exclude-from-classmap": [ + "/Test/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Generic abstractions related to translation", + "homepage": "https://symfony.com", + "keywords": [ + "abstractions", + "contracts", + "decoupling", + "interfaces", + "interoperability", + "standards" + ], + "support": { + "source": "https://github.com/symfony/translation-contracts/tree/v3.7.0" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-01-05T13:30:16+00:00" + }, + { + "name": "symfony/uid", + "version": "v8.0.9", + "source": { + "type": "git", + "url": "https://github.com/symfony/uid.git", + "reference": "4d9d6510bbe88ebb4608b7200d18606cdf80825c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/uid/zipball/4d9d6510bbe88ebb4608b7200d18606cdf80825c", + "reference": "4d9d6510bbe88ebb4608b7200d18606cdf80825c", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/polyfill-uuid": "^1.15" + }, + "require-dev": { + "symfony/console": "^7.4|^8.0" + }, + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Uid\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Grégoire Pineau", + "email": "lyrixx@lyrixx.info" + }, + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides an object-oriented API to generate and represent UIDs", + "homepage": "https://symfony.com", + "keywords": [ + "UID", + "ulid", + "uuid" + ], + "support": { + "source": "https://github.com/symfony/uid/tree/v8.0.9" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-04-30T16:10:06+00:00" + }, + { + "name": "symfony/var-dumper", + "version": "v8.0.8", + "source": { + "type": "git", + "url": "https://github.com/symfony/var-dumper.git", + "reference": "cfb7badd53bf4177f6e9416cfbbccc13c0e773a1" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/var-dumper/zipball/cfb7badd53bf4177f6e9416cfbbccc13c0e773a1", + "reference": "cfb7badd53bf4177f6e9416cfbbccc13c0e773a1", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/polyfill-mbstring": "^1.0" + }, + "conflict": { + "symfony/console": "<7.4", + "symfony/error-handler": "<7.4" + }, + "require-dev": { + "symfony/console": "^7.4|^8.0", + "symfony/http-kernel": "^7.4|^8.0", + "symfony/process": "^7.4|^8.0", + "symfony/uid": "^7.4|^8.0", + "twig/twig": "^3.12" + }, + "bin": [ + "Resources/bin/var-dump-server" + ], + "type": "library", + "autoload": { + "files": [ + "Resources/functions/dump.php" + ], + "psr-4": { + "Symfony\\Component\\VarDumper\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nicolas Grekas", + "email": "p@tchwork.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Provides mechanisms for walking through any arbitrary PHP variable", + "homepage": "https://symfony.com", + "keywords": [ + "debug", + "dump" + ], + "support": { + "source": "https://github.com/symfony/var-dumper/tree/v8.0.8" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-03-31T07:15:36+00:00" + }, + { + "name": "symfony/yaml", + "version": "v8.0.11", + "source": { + "type": "git", + "url": "https://github.com/symfony/yaml.git", + "reference": "48046fbd5567bd1717f278eaa2cfc3131f489984" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/symfony/yaml/zipball/48046fbd5567bd1717f278eaa2cfc3131f489984", + "reference": "48046fbd5567bd1717f278eaa2cfc3131f489984", + "shasum": "" + }, + "require": { + "php": ">=8.4", + "symfony/polyfill-ctype": "^1.8" + }, + "conflict": { + "symfony/console": "<7.4" + }, + "require-dev": { + "symfony/console": "^7.4|^8.0" + }, + "bin": [ + "Resources/bin/yaml-lint" + ], + "type": "library", + "autoload": { + "psr-4": { + "Symfony\\Component\\Yaml\\": "" + }, + "exclude-from-classmap": [ + "/Tests/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Fabien Potencier", + "email": "fabien@symfony.com" + }, + { + "name": "Symfony Community", + "homepage": "https://symfony.com/contributors" + } + ], + "description": "Loads and dumps YAML files", + "homepage": "https://symfony.com", + "support": { + "source": "https://github.com/symfony/yaml/tree/v8.0.11" + }, + "funding": [ + { + "url": "https://symfony.com/sponsor", + "type": "custom" + }, + { + "url": "https://github.com/fabpot", + "type": "github" + }, + { + "url": "https://github.com/nicolas-grekas", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/symfony/symfony", + "type": "tidelift" + } + ], + "time": "2026-05-13T12:07:53+00:00" + }, + { + "name": "tijsverkoyen/css-to-inline-styles", + "version": "v2.4.0", + "source": { + "type": "git", + "url": "https://github.com/tijsverkoyen/CssToInlineStyles.git", + "reference": "f0292ccf0ec75843d65027214426b6b163b48b41" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/tijsverkoyen/CssToInlineStyles/zipball/f0292ccf0ec75843d65027214426b6b163b48b41", + "reference": "f0292ccf0ec75843d65027214426b6b163b48b41", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "php": "^7.4 || ^8.0", + "symfony/css-selector": "^5.4 || ^6.0 || ^7.0 || ^8.0" + }, + "require-dev": { + "phpstan/phpstan": "^2.0", + "phpstan/phpstan-phpunit": "^2.0", + "phpunit/phpunit": "^8.5.21 || ^9.5.10" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.x-dev" + } + }, + "autoload": { + "psr-4": { + "TijsVerkoyen\\CssToInlineStyles\\": "src" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Tijs Verkoyen", + "email": "css_to_inline_styles@verkoyen.eu", + "role": "Developer" + } + ], + "description": "CssToInlineStyles is a class that enables you to convert HTML-pages/files into HTML-pages/files with inline styles. This is very useful when you're sending emails.", + "homepage": "https://github.com/tijsverkoyen/CssToInlineStyles", + "support": { + "issues": "https://github.com/tijsverkoyen/CssToInlineStyles/issues", + "source": "https://github.com/tijsverkoyen/CssToInlineStyles/tree/v2.4.0" + }, + "time": "2025-12-02T11:56:42+00:00" + }, + { + "name": "vlucas/phpdotenv", + "version": "v5.6.3", + "source": { + "type": "git", + "url": "https://github.com/vlucas/phpdotenv.git", + "reference": "955e7815d677a3eaa7075231212f2110983adecc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/vlucas/phpdotenv/zipball/955e7815d677a3eaa7075231212f2110983adecc", + "reference": "955e7815d677a3eaa7075231212f2110983adecc", + "shasum": "" + }, + "require": { + "ext-pcre": "*", + "graham-campbell/result-type": "^1.1.4", + "php": "^7.2.5 || ^8.0", + "phpoption/phpoption": "^1.9.5", + "symfony/polyfill-ctype": "^1.26", + "symfony/polyfill-mbstring": "^1.26", + "symfony/polyfill-php80": "^1.26" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.8.2", + "ext-filter": "*", + "phpunit/phpunit": "^8.5.34 || ^9.6.13 || ^10.4.2" + }, + "suggest": { + "ext-filter": "Required to use the boolean validator." + }, + "type": "library", + "extra": { + "bamarni-bin": { + "bin-links": true, + "forward-command": false + }, + "branch-alias": { + "dev-master": "5.6-dev" + } + }, + "autoload": { + "psr-4": { + "Dotenv\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Graham Campbell", + "email": "hello@gjcampbell.co.uk", + "homepage": "https://github.com/GrahamCampbell" + }, + { + "name": "Vance Lucas", + "email": "vance@vancelucas.com", + "homepage": "https://github.com/vlucas" + } + ], + "description": "Loads environment variables from `.env` to `getenv()`, `$_ENV` and `$_SERVER` automagically.", + "keywords": [ + "dotenv", + "env", + "environment" + ], + "support": { + "issues": "https://github.com/vlucas/phpdotenv/issues", + "source": "https://github.com/vlucas/phpdotenv/tree/v5.6.3" + }, + "funding": [ + { + "url": "https://github.com/GrahamCampbell", + "type": "github" + }, + { + "url": "https://tidelift.com/funding/github/packagist/vlucas/phpdotenv", + "type": "tidelift" + } + ], + "time": "2025-12-27T19:49:13+00:00" + }, + { + "name": "voku/portable-ascii", + "version": "2.1.1", + "source": { + "type": "git", + "url": "https://github.com/voku/portable-ascii.git", + "reference": "8e1051fe39379367aecf014f41744ce7539a856f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/voku/portable-ascii/zipball/8e1051fe39379367aecf014f41744ce7539a856f", + "reference": "8e1051fe39379367aecf014f41744ce7539a856f", + "shasum": "" + }, + "require": { + "php": ">=7.1.0" + }, + "require-dev": { + "phpunit/phpunit": "~8.5 || ~9.6 || ~10.5 || ~11.5" + }, + "suggest": { + "ext-intl": "Use Intl for transliterator_transliterate() support" + }, + "type": "library", + "autoload": { + "psr-4": { + "voku\\": "src/voku/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Lars Moelleken", + "homepage": "https://www.moelleken.org/" + } + ], + "description": "Portable ASCII library - performance optimized (ascii) string functions for php.", + "homepage": "https://github.com/voku/portable-ascii", + "keywords": [ + "ascii", + "clean", + "php" + ], + "support": { + "issues": "https://github.com/voku/portable-ascii/issues", + "source": "https://github.com/voku/portable-ascii/tree/2.1.1" + }, + "funding": [ + { + "url": "https://www.paypal.me/moelleken", + "type": "custom" + }, + { + "url": "https://github.com/voku", + "type": "github" + }, + { + "url": "https://opencollective.com/portable-ascii", + "type": "open_collective" + }, + { + "url": "https://www.patreon.com/voku", + "type": "patreon" + }, + { + "url": "https://tidelift.com/funding/github/packagist/voku/portable-ascii", + "type": "tidelift" + } + ], + "time": "2026-04-26T05:33:54+00:00" + } + ], + "packages-dev": [ + { + "name": "fakerphp/faker", + "version": "v1.24.1", + "source": { + "type": "git", + "url": "https://github.com/FakerPHP/Faker.git", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/FakerPHP/Faker/zipball/e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "reference": "e0ee18eb1e6dc3cda3ce9fd97e5a0689a88a64b5", + "shasum": "" + }, + "require": { + "php": "^7.4 || ^8.0", + "psr/container": "^1.0 || ^2.0", + "symfony/deprecation-contracts": "^2.2 || ^3.0" + }, + "conflict": { + "fzaninotto/faker": "*" + }, + "require-dev": { + "bamarni/composer-bin-plugin": "^1.4.1", + "doctrine/persistence": "^1.3 || ^2.0", + "ext-intl": "*", + "phpunit/phpunit": "^9.5.26", + "symfony/phpunit-bridge": "^5.4.16" + }, + "suggest": { + "doctrine/orm": "Required to use Faker\\ORM\\Doctrine", + "ext-curl": "Required by Faker\\Provider\\Image to download images.", + "ext-dom": "Required by Faker\\Provider\\HtmlLorem for generating random HTML.", + "ext-iconv": "Required by Faker\\Provider\\ru_RU\\Text::realText() for generating real Russian text.", + "ext-mbstring": "Required for multibyte Unicode string functionality." + }, + "type": "library", + "autoload": { + "psr-4": { + "Faker\\": "src/Faker/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "François Zaninotto" + } + ], + "description": "Faker is a PHP library that generates fake data for you.", + "keywords": [ + "data", + "faker", + "fixtures" + ], + "support": { + "issues": "https://github.com/FakerPHP/Faker/issues", + "source": "https://github.com/FakerPHP/Faker/tree/v1.24.1" + }, + "time": "2024-11-21T13:46:39+00:00" + }, + { + "name": "filp/whoops", + "version": "2.18.4", + "source": { + "type": "git", + "url": "https://github.com/filp/whoops.git", + "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/filp/whoops/zipball/d2102955e48b9fd9ab24280a7ad12ed552752c4d", + "reference": "d2102955e48b9fd9ab24280a7ad12ed552752c4d", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0", + "psr/log": "^1.0.1 || ^2.0 || ^3.0" + }, + "require-dev": { + "mockery/mockery": "^1.0", + "phpunit/phpunit": "^7.5.20 || ^8.5.8 || ^9.3.3", + "symfony/var-dumper": "^4.0 || ^5.0" + }, + "suggest": { + "symfony/var-dumper": "Pretty print complex values better with var-dumper available", + "whoops/soap": "Formats errors as SOAP responses" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.7-dev" + } + }, + "autoload": { + "psr-4": { + "Whoops\\": "src/Whoops/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Filipe Dobreira", + "homepage": "https://github.com/filp", + "role": "Developer" + } + ], + "description": "php error handling for cool kids", + "homepage": "https://filp.github.io/whoops/", + "keywords": [ + "error", + "exception", + "handling", + "library", + "throwable", + "whoops" + ], + "support": { + "issues": "https://github.com/filp/whoops/issues", + "source": "https://github.com/filp/whoops/tree/2.18.4" + }, + "funding": [ + { + "url": "https://github.com/denis-sokolov", + "type": "github" + } + ], + "time": "2025-08-08T12:00:00+00:00" + }, + { + "name": "hamcrest/hamcrest-php", + "version": "v2.1.1", + "source": { + "type": "git", + "url": "https://github.com/hamcrest/hamcrest-php.git", + "reference": "f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/hamcrest/hamcrest-php/zipball/f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487", + "reference": "f8b1c0173b22fa6ec77a81fe63e5b01eba7e6487", + "shasum": "" + }, + "require": { + "php": "^7.4|^8.0" + }, + "replace": { + "cordoval/hamcrest-php": "*", + "davedevelopment/hamcrest-php": "*", + "kodova/hamcrest-php": "*" + }, + "require-dev": { + "phpunit/php-file-iterator": "^1.4 || ^2.0 || ^3.0", + "phpunit/phpunit": "^4.8.36 || ^5.7 || ^6.5 || ^7.0 || ^8.0 || ^9.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.1-dev" + } + }, + "autoload": { + "classmap": [ + "hamcrest" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "description": "This is the PHP port of Hamcrest Matchers", + "keywords": [ + "test" + ], + "support": { + "issues": "https://github.com/hamcrest/hamcrest-php/issues", + "source": "https://github.com/hamcrest/hamcrest-php/tree/v2.1.1" + }, + "time": "2025-04-30T06:54:44+00:00" + }, + { + "name": "laravel/agent-detector", + "version": "v2.0.2", + "source": { + "type": "git", + "url": "https://github.com/laravel/agent-detector.git", + "reference": "90694b9256099591cf9e55d08c18ba7a00bf099f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/agent-detector/zipball/90694b9256099591cf9e55d08c18ba7a00bf099f", + "reference": "90694b9256099591cf9e55d08c18ba7a00bf099f", + "shasum": "" + }, + "require": { + "php": "^8.2.0" + }, + "require-dev": { + "laravel/pint": "^1.24.0", + "pestphp/pest": "^3.8.5|^4.1.0", + "pestphp/pest-plugin-type-coverage": "^3.0|^4.0.2", + "phpstan/phpstan": "^2.1.26", + "rector/rector": "^2.1.7", + "symfony/var-dumper": "^7.3.3" + }, + "type": "library", + "autoload": { + "files": [ + "src/functions.php" + ], + "psr-4": { + "Laravel\\AgentDetector\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Detect if code is running in an AI agent or automated development environment", + "homepage": "https://github.com/laravel/agent-detector", + "keywords": [ + "Agent", + "ai", + "automation", + "claude", + "cursor", + "detection", + "devin", + "php" + ], + "support": { + "issues": "https://github.com/laravel/agent-detector/issues", + "source": "https://github.com/laravel/agent-detector" + }, + "time": "2026-04-29T18:32:34+00:00" + }, + { + "name": "laravel/pail", + "version": "v1.2.6", + "source": { + "type": "git", + "url": "https://github.com/laravel/pail.git", + "reference": "aa71a01c309e7f66bc2ec4fb1a59291b82eb4abf" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pail/zipball/aa71a01c309e7f66bc2ec4fb1a59291b82eb4abf", + "reference": "aa71a01c309e7f66bc2ec4fb1a59291b82eb4abf", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "illuminate/console": "^10.24|^11.0|^12.0|^13.0", + "illuminate/contracts": "^10.24|^11.0|^12.0|^13.0", + "illuminate/log": "^10.24|^11.0|^12.0|^13.0", + "illuminate/process": "^10.24|^11.0|^12.0|^13.0", + "illuminate/support": "^10.24|^11.0|^12.0|^13.0", + "nunomaduro/termwind": "^1.15|^2.0", + "php": "^8.2", + "symfony/console": "^6.0|^7.0|^8.0" + }, + "require-dev": { + "laravel/framework": "^10.24|^11.0|^12.0|^13.0", + "laravel/pint": "^1.13", + "orchestra/testbench-core": "^8.13|^9.17|^10.8|^11.0", + "pestphp/pest": "^2.20|^3.0|^4.0", + "pestphp/pest-plugin-type-coverage": "^2.3|^3.0|^4.0", + "phpstan/phpstan": "^1.12.27", + "symfony/var-dumper": "^6.3|^7.0|^8.0", + "symfony/yaml": "^6.3|^7.0|^8.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "Laravel\\Pail\\PailServiceProvider" + ] + }, + "branch-alias": { + "dev-main": "1.x-dev" + } + }, + "autoload": { + "psr-4": { + "Laravel\\Pail\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + }, + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Easily delve into your Laravel application's log files directly from the command line.", + "homepage": "https://github.com/laravel/pail", + "keywords": [ + "dev", + "laravel", + "logs", + "php", + "tail" + ], + "support": { + "issues": "https://github.com/laravel/pail/issues", + "source": "https://github.com/laravel/pail" + }, + "time": "2026-02-09T13:44:54+00:00" + }, + { + "name": "laravel/pao", + "version": "v1.0.6", + "source": { + "type": "git", + "url": "https://github.com/laravel/pao.git", + "reference": "02f62a64c2b60af44a418ee490fee193590d8269" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pao/zipball/02f62a64c2b60af44a418ee490fee193590d8269", + "reference": "02f62a64c2b60af44a418ee490fee193590d8269", + "shasum": "" + }, + "require": { + "laravel/agent-detector": "^2.0.0", + "php": "^8.3" + }, + "conflict": { + "laravel/framework": "<12.0.0", + "nunomaduro/collision": "<8.9.3", + "pestphp/pest": "<4.6.3 || >=6.0.0", + "phpunit/phpunit": "<12.5.23 || >=13.0.0 <13.1.7 || >=14.0.0" + }, + "require-dev": { + "brianium/paratest": "^7.20.0", + "laravel/pint": "^1.29.1", + "orchestra/testbench": "^10.11.0 || ^11.1.0", + "pestphp/pest": "^4.6.3 || ^5.0.0", + "pestphp/pest-plugin-type-coverage": "^4.0.4 || ^5.0.0", + "phpstan/phpstan": "^2.1.51", + "rector/rector": "^2.4.2", + "symfony/process": "^7.4.8 || ^8.1.0", + "symfony/var-dumper": "^7.4.8 || ^8.0.8" + }, + "type": "library", + "extra": { + "pest": { + "plugins": [ + "Laravel\\Pao\\Drivers\\Pest\\Plugin" + ] + }, + "laravel": { + "providers": [ + "Laravel\\Pao\\Laravel\\ServiceProvider" + ] + } + }, + "autoload": { + "files": [ + "src/Autoload.php" + ], + "psr-4": { + "Laravel\\Pao\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Taylor Otwell", + "email": "taylor@laravel.com" + } + ], + "description": "Agent-optimized output for PHP testing tools", + "keywords": [ + "Agent", + "PHPStan", + "ai", + "dev", + "paratest", + "pest", + "php", + "phpunit", + "testing" + ], + "support": { + "issues": "https://github.com/laravel/pao/issues", + "source": "https://github.com/laravel/pao" + }, + "time": "2026-04-27T22:37:26+00:00" + }, + { + "name": "laravel/pint", + "version": "v1.29.1", + "source": { + "type": "git", + "url": "https://github.com/laravel/pint.git", + "reference": "0770e9b7fafd50d4586881d456d6eb41c9247a80" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/laravel/pint/zipball/0770e9b7fafd50d4586881d456d6eb41c9247a80", + "reference": "0770e9b7fafd50d4586881d456d6eb41c9247a80", + "shasum": "" + }, + "require": { + "ext-json": "*", + "ext-mbstring": "*", + "ext-tokenizer": "*", + "ext-xml": "*", + "php": "^8.2.0" + }, + "require-dev": { + "friendsofphp/php-cs-fixer": "^3.95.1", + "illuminate/view": "^12.56.0", + "larastan/larastan": "^3.9.6", + "laravel-zero/framework": "^12.1.0", + "mockery/mockery": "^1.6.12", + "nunomaduro/termwind": "^2.4.0", + "pestphp/pest": "^3.8.6", + "shipfastlabs/agent-detector": "^1.1.3" + }, + "bin": [ + "builds/pint" + ], + "type": "project", + "autoload": { + "psr-4": { + "App\\": "app/", + "Database\\Seeders\\": "database/seeders/", + "Database\\Factories\\": "database/factories/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "An opinionated code formatter for PHP.", + "homepage": "https://laravel.com", + "keywords": [ + "dev", + "format", + "formatter", + "lint", + "linter", + "php" + ], + "support": { + "issues": "https://github.com/laravel/pint/issues", + "source": "https://github.com/laravel/pint" + }, + "time": "2026-04-20T15:26:14+00:00" + }, + { + "name": "mockery/mockery", + "version": "1.6.12", + "source": { + "type": "git", + "url": "https://github.com/mockery/mockery.git", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/mockery/mockery/zipball/1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "reference": "1f4efdd7d3beafe9807b08156dfcb176d18f1699", + "shasum": "" + }, + "require": { + "hamcrest/hamcrest-php": "^2.0.1", + "lib-pcre": ">=7.0", + "php": ">=7.3" + }, + "conflict": { + "phpunit/phpunit": "<8.0" + }, + "require-dev": { + "phpunit/phpunit": "^8.5 || ^9.6.17", + "symplify/easy-coding-standard": "^12.1.14" + }, + "type": "library", + "autoload": { + "files": [ + "library/helpers.php", + "library/Mockery.php" + ], + "psr-4": { + "Mockery\\": "library/Mockery" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Pádraic Brady", + "email": "padraic.brady@gmail.com", + "homepage": "https://github.com/padraic", + "role": "Author" + }, + { + "name": "Dave Marshall", + "email": "dave.marshall@atstsolutions.co.uk", + "homepage": "https://davedevelopment.co.uk", + "role": "Developer" + }, + { + "name": "Nathanael Esayeas", + "email": "nathanael.esayeas@protonmail.com", + "homepage": "https://github.com/ghostwriter", + "role": "Lead Developer" + } + ], + "description": "Mockery is a simple yet flexible PHP mock object framework", + "homepage": "https://github.com/mockery/mockery", + "keywords": [ + "BDD", + "TDD", + "library", + "mock", + "mock objects", + "mockery", + "stub", + "test", + "test double", + "testing" + ], + "support": { + "docs": "https://docs.mockery.io/", + "issues": "https://github.com/mockery/mockery/issues", + "rss": "https://github.com/mockery/mockery/releases.atom", + "security": "https://github.com/mockery/mockery/security/advisories", + "source": "https://github.com/mockery/mockery" + }, + "time": "2024-05-16T03:13:13+00:00" + }, + { + "name": "myclabs/deep-copy", + "version": "1.13.4", + "source": { + "type": "git", + "url": "https://github.com/myclabs/DeepCopy.git", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/myclabs/DeepCopy/zipball/07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "reference": "07d290f0c47959fd5eed98c95ee5602db07e0b6a", + "shasum": "" + }, + "require": { + "php": "^7.1 || ^8.0" + }, + "conflict": { + "doctrine/collections": "<1.6.8", + "doctrine/common": "<2.13.3 || >=3 <3.2.2" + }, + "require-dev": { + "doctrine/collections": "^1.6.8", + "doctrine/common": "^2.13.3 || ^3.2.2", + "phpspec/prophecy": "^1.10", + "phpunit/phpunit": "^7.5.20 || ^8.5.23 || ^9.5.13" + }, + "type": "library", + "autoload": { + "files": [ + "src/DeepCopy/deep_copy.php" + ], + "psr-4": { + "DeepCopy\\": "src/DeepCopy/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "Create deep copies (clones) of your objects", + "keywords": [ + "clone", + "copy", + "duplicate", + "object", + "object graph" + ], + "support": { + "issues": "https://github.com/myclabs/DeepCopy/issues", + "source": "https://github.com/myclabs/DeepCopy/tree/1.13.4" + }, + "funding": [ + { + "url": "https://tidelift.com/funding/github/packagist/myclabs/deep-copy", + "type": "tidelift" + } + ], + "time": "2025-08-01T08:46:24+00:00" + }, + { + "name": "nunomaduro/collision", + "version": "v8.9.4", + "source": { + "type": "git", + "url": "https://github.com/nunomaduro/collision.git", + "reference": "716af8f95a470e9094cfca09ed897b023be191a5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/nunomaduro/collision/zipball/716af8f95a470e9094cfca09ed897b023be191a5", + "reference": "716af8f95a470e9094cfca09ed897b023be191a5", + "shasum": "" + }, + "require": { + "filp/whoops": "^2.18.4", + "nunomaduro/termwind": "^2.4.0", + "php": "^8.2.0", + "symfony/console": "^7.4.8 || ^8.0.8" + }, + "conflict": { + "laravel/framework": "<11.48.0 || >=14.0.0", + "phpunit/phpunit": "<11.5.50 || >=14.0.0" + }, + "require-dev": { + "brianium/paratest": "^7.8.5", + "larastan/larastan": "^3.9.6", + "laravel/framework": "^11.48.0 || ^12.56.0 || ^13.5.0", + "laravel/pint": "^1.29.1", + "orchestra/testbench-core": "^9.12.0 || ^10.12.1 || ^11.2.1", + "pestphp/pest": "^3.8.5 || ^4.4.3 || ^5.0.0", + "sebastian/environment": "^7.2.1 || ^8.0.4 || ^9.3.0" + }, + "type": "library", + "extra": { + "laravel": { + "providers": [ + "NunoMaduro\\Collision\\Adapters\\Laravel\\CollisionServiceProvider" + ] + }, + "branch-alias": { + "dev-8.x": "8.x-dev" + } + }, + "autoload": { + "files": [ + "./src/Adapters/Phpunit/Autoload.php" + ], + "psr-4": { + "NunoMaduro\\Collision\\": "src/" + } + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "authors": [ + { + "name": "Nuno Maduro", + "email": "enunomaduro@gmail.com" + } + ], + "description": "Cli error handling for console/command-line PHP applications.", + "keywords": [ + "artisan", + "cli", + "command-line", + "console", + "dev", + "error", + "handling", + "laravel", + "laravel-zero", + "php", + "symfony" + ], + "support": { + "issues": "https://github.com/nunomaduro/collision/issues", + "source": "https://github.com/nunomaduro/collision" + }, + "funding": [ + { + "url": "https://www.paypal.com/paypalme/enunomaduro", + "type": "custom" + }, + { + "url": "https://github.com/nunomaduro", + "type": "github" + }, + { + "url": "https://www.patreon.com/nunomaduro", + "type": "patreon" + } + ], + "time": "2026-04-21T14:04:20+00:00" + }, + { + "name": "phar-io/manifest", + "version": "2.0.4", + "source": { + "type": "git", + "url": "https://github.com/phar-io/manifest.git", + "reference": "54750ef60c58e43759730615a392c31c80e23176" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/manifest/zipball/54750ef60c58e43759730615a392c31c80e23176", + "reference": "54750ef60c58e43759730615a392c31c80e23176", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-phar": "*", + "ext-xmlwriter": "*", + "phar-io/version": "^3.0.1", + "php": "^7.2 || ^8.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-master": "2.0.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Component for reading phar.io manifest information from a PHP Archive (PHAR)", + "support": { + "issues": "https://github.com/phar-io/manifest/issues", + "source": "https://github.com/phar-io/manifest/tree/2.0.4" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2024-03-03T12:33:53+00:00" + }, + { + "name": "phar-io/version", + "version": "3.2.1", + "source": { + "type": "git", + "url": "https://github.com/phar-io/version.git", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/phar-io/version/zipball/4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "reference": "4f7fd7836c6f332bb2933569e566a0d6c4cbed74", + "shasum": "" + }, + "require": { + "php": "^7.2 || ^8.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + }, + { + "name": "Sebastian Heuer", + "email": "sebastian@phpeople.de", + "role": "Developer" + }, + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "Developer" + } + ], + "description": "Library for handling version information and constraints", + "support": { + "issues": "https://github.com/phar-io/version/issues", + "source": "https://github.com/phar-io/version/tree/3.2.1" + }, + "time": "2022-02-21T01:04:05+00:00" + }, + { + "name": "phpunit/php-code-coverage", + "version": "12.5.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-code-coverage.git", + "reference": "876099a072646c7745f673d7aeab5382c4439691" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-code-coverage/zipball/876099a072646c7745f673d7aeab5382c4439691", + "reference": "876099a072646c7745f673d7aeab5382c4439691", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-libxml": "*", + "ext-xmlwriter": "*", + "nikic/php-parser": "^5.7.0", + "php": ">=8.3", + "phpunit/php-text-template": "^5.0", + "sebastian/complexity": "^5.0", + "sebastian/environment": "^8.0.3", + "sebastian/lines-of-code": "^4.0", + "sebastian/version": "^6.0", + "theseer/tokenizer": "^2.0.1" + }, + "require-dev": { + "phpunit/phpunit": "^12.5.1" + }, + "suggest": { + "ext-pcov": "PHP extension that provides line coverage", + "ext-xdebug": "PHP extension that provides line coverage as well as branch and path coverage" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5.x-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that provides collection, processing, and rendering functionality for PHP code coverage information.", + "homepage": "https://github.com/sebastianbergmann/php-code-coverage", + "keywords": [ + "coverage", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-code-coverage/issues", + "security": "https://github.com/sebastianbergmann/php-code-coverage/security/policy", + "source": "https://github.com/sebastianbergmann/php-code-coverage/tree/12.5.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-code-coverage", + "type": "tidelift" + } + ], + "time": "2026-04-15T08:23:17+00:00" + }, + { + "name": "phpunit/php-file-iterator", + "version": "6.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-file-iterator.git", + "reference": "3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-file-iterator/zipball/3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5", + "reference": "3d1cd096ef6bea4bf2762ba586e35dbd317cbfd5", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "FilterIterator implementation that filters files based on a list of suffixes.", + "homepage": "https://github.com/sebastianbergmann/php-file-iterator/", + "keywords": [ + "filesystem", + "iterator" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-file-iterator/issues", + "security": "https://github.com/sebastianbergmann/php-file-iterator/security/policy", + "source": "https://github.com/sebastianbergmann/php-file-iterator/tree/6.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/phpunit/php-file-iterator", + "type": "tidelift" + } + ], + "time": "2026-02-02T14:04:18+00:00" + }, + { + "name": "phpunit/php-invoker", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-invoker.git", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-invoker/zipball/12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "reference": "12b54e689b07a25a9b41e57736dfab6ec9ae5406", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "ext-pcntl": "*", + "phpunit/phpunit": "^12.0" + }, + "suggest": { + "ext-pcntl": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Invoke callables with a timeout", + "homepage": "https://github.com/sebastianbergmann/php-invoker/", + "keywords": [ + "process" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-invoker/issues", + "security": "https://github.com/sebastianbergmann/php-invoker/security/policy", + "source": "https://github.com/sebastianbergmann/php-invoker/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:58+00:00" + }, + { + "name": "phpunit/php-text-template", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-text-template.git", + "reference": "e1367a453f0eda562eedb4f659e13aa900d66c53" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-text-template/zipball/e1367a453f0eda562eedb4f659e13aa900d66c53", + "reference": "e1367a453f0eda562eedb4f659e13aa900d66c53", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Simple template engine.", + "homepage": "https://github.com/sebastianbergmann/php-text-template/", + "keywords": [ + "template" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-text-template/issues", + "security": "https://github.com/sebastianbergmann/php-text-template/security/policy", + "source": "https://github.com/sebastianbergmann/php-text-template/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:59:16+00:00" + }, + { + "name": "phpunit/php-timer", + "version": "8.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/php-timer.git", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/php-timer/zipball/f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "reference": "f258ce36aa457f3aa3339f9ed4c81fc66dc8c2cc", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Utility class for timing", + "homepage": "https://github.com/sebastianbergmann/php-timer/", + "keywords": [ + "timer" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/php-timer/issues", + "security": "https://github.com/sebastianbergmann/php-timer/security/policy", + "source": "https://github.com/sebastianbergmann/php-timer/tree/8.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:59:38+00:00" + }, + { + "name": "phpunit/phpunit", + "version": "12.5.25", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/phpunit.git", + "reference": "792c2980442dfce319226b88fa845b8b6de3b333" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/phpunit/zipball/792c2980442dfce319226b88fa845b8b6de3b333", + "reference": "792c2980442dfce319226b88fa845b8b6de3b333", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-json": "*", + "ext-libxml": "*", + "ext-mbstring": "*", + "ext-xml": "*", + "ext-xmlwriter": "*", + "myclabs/deep-copy": "^1.13.4", + "phar-io/manifest": "^2.0.4", + "phar-io/version": "^3.2.1", + "php": ">=8.3", + "phpunit/php-code-coverage": "^12.5.6", + "phpunit/php-file-iterator": "^6.0.1", + "phpunit/php-invoker": "^6.0.0", + "phpunit/php-text-template": "^5.0.0", + "phpunit/php-timer": "^8.0.0", + "sebastian/cli-parser": "^4.2.0", + "sebastian/comparator": "^7.1.6", + "sebastian/diff": "^7.0.0", + "sebastian/environment": "^8.1.0", + "sebastian/exporter": "^7.0.2", + "sebastian/global-state": "^8.0.2", + "sebastian/object-enumerator": "^7.0.0", + "sebastian/recursion-context": "^7.0.1", + "sebastian/type": "^6.0.3", + "sebastian/version": "^6.0.0", + "staabm/side-effects-detector": "^1.0.5" + }, + "bin": [ + "phpunit" + ], + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "12.5-dev" + } + }, + "autoload": { + "files": [ + "src/Framework/Assert/Functions.php" + ], + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "The PHP Unit Testing framework.", + "homepage": "https://phpunit.de/", + "keywords": [ + "phpunit", + "testing", + "xunit" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/phpunit/issues", + "security": "https://github.com/sebastianbergmann/phpunit/security/policy", + "source": "https://github.com/sebastianbergmann/phpunit/tree/12.5.25" + }, + "funding": [ + { + "url": "https://phpunit.de/sponsoring.html", + "type": "other" + } + ], + "time": "2026-05-13T03:56:57+00:00" + }, + { + "name": "sebastian/cli-parser", + "version": "4.2.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/cli-parser.git", + "reference": "90f41072d220e5c40df6e8635f5dafba2d9d4d04" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/cli-parser/zipball/90f41072d220e5c40df6e8635f5dafba2d9d4d04", + "reference": "90f41072d220e5c40df6e8635f5dafba2d9d4d04", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.2-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for parsing CLI options", + "homepage": "https://github.com/sebastianbergmann/cli-parser", + "support": { + "issues": "https://github.com/sebastianbergmann/cli-parser/issues", + "security": "https://github.com/sebastianbergmann/cli-parser/security/policy", + "source": "https://github.com/sebastianbergmann/cli-parser/tree/4.2.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/cli-parser", + "type": "tidelift" + } + ], + "time": "2025-09-14T09:36:45+00:00" + }, + { + "name": "sebastian/comparator", + "version": "7.1.6", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/comparator.git", + "reference": "c769009dee98f494e0edc3fd4f4087501688f11e" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/comparator/zipball/c769009dee98f494e0edc3fd4f4087501688f11e", + "reference": "c769009dee98f494e0edc3fd4f4087501688f11e", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/diff": "^7.0", + "sebastian/exporter": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.2" + }, + "suggest": { + "ext-bcmath": "For comparing BcMath\\Number objects" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@2bepublished.at" + } + ], + "description": "Provides the functionality to compare PHP values for equality", + "homepage": "https://github.com/sebastianbergmann/comparator", + "keywords": [ + "comparator", + "compare", + "equality" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/comparator/issues", + "security": "https://github.com/sebastianbergmann/comparator/security/policy", + "source": "https://github.com/sebastianbergmann/comparator/tree/7.1.6" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/comparator", + "type": "tidelift" + } + ], + "time": "2026-04-14T08:23:15+00:00" + }, + { + "name": "sebastian/complexity", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/complexity.git", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/complexity/zipball/bad4316aba5303d0221f43f8cee37eb58d384bbb", + "reference": "bad4316aba5303d0221f43f8cee37eb58d384bbb", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for calculating the complexity of PHP code units", + "homepage": "https://github.com/sebastianbergmann/complexity", + "support": { + "issues": "https://github.com/sebastianbergmann/complexity/issues", + "security": "https://github.com/sebastianbergmann/complexity/security/policy", + "source": "https://github.com/sebastianbergmann/complexity/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:55:25+00:00" + }, + { + "name": "sebastian/diff", + "version": "7.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/diff.git", + "reference": "7ab1ea946c012266ca32390913653d844ecd085f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/diff/zipball/7ab1ea946c012266ca32390913653d844ecd085f", + "reference": "7ab1ea946c012266ca32390913653d844ecd085f", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0", + "symfony/process": "^7.2" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Kore Nordmann", + "email": "mail@kore-nordmann.de" + } + ], + "description": "Diff implementation", + "homepage": "https://github.com/sebastianbergmann/diff", + "keywords": [ + "diff", + "udiff", + "unidiff", + "unified diff" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/diff/issues", + "security": "https://github.com/sebastianbergmann/diff/security/policy", + "source": "https://github.com/sebastianbergmann/diff/tree/7.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:55:46+00:00" + }, + { + "name": "sebastian/environment", + "version": "8.1.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/environment.git", + "reference": "b121608b28a13f721e76ffbbd386d08eff58f3f6" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/environment/zipball/b121608b28a13f721e76ffbbd386d08eff58f3f6", + "reference": "b121608b28a13f721e76ffbbd386d08eff58f3f6", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "suggest": { + "ext-posix": "*" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.1-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Provides functionality to handle HHVM/PHP environments", + "homepage": "https://github.com/sebastianbergmann/environment", + "keywords": [ + "Xdebug", + "environment", + "hhvm" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/environment/issues", + "security": "https://github.com/sebastianbergmann/environment/security/policy", + "source": "https://github.com/sebastianbergmann/environment/tree/8.1.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/environment", + "type": "tidelift" + } + ], + "time": "2026-04-15T12:13:01+00:00" + }, + { + "name": "sebastian/exporter", + "version": "7.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/exporter.git", + "reference": "016951ae10980765e4e7aee491eb288c64e505b7" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/exporter/zipball/016951ae10980765e4e7aee491eb288c64e505b7", + "reference": "016951ae10980765e4e7aee491eb288c64e505b7", + "shasum": "" + }, + "require": { + "ext-mbstring": "*", + "php": ">=8.3", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Volker Dusch", + "email": "github@wallbash.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + }, + { + "name": "Bernhard Schussek", + "email": "bschussek@gmail.com" + } + ], + "description": "Provides the functionality to export PHP variables for visualization", + "homepage": "https://www.github.com/sebastianbergmann/exporter", + "keywords": [ + "export", + "exporter" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/exporter/issues", + "security": "https://github.com/sebastianbergmann/exporter/security/policy", + "source": "https://github.com/sebastianbergmann/exporter/tree/7.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/exporter", + "type": "tidelift" + } + ], + "time": "2025-09-24T06:16:11+00:00" + }, + { + "name": "sebastian/global-state", + "version": "8.0.2", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/global-state.git", + "reference": "ef1377171613d09edd25b7816f05be8313f9115d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/global-state/zipball/ef1377171613d09edd25b7816f05be8313f9115d", + "reference": "ef1377171613d09edd25b7816f05be8313f9115d", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "ext-dom": "*", + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "8.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Snapshotting of global state", + "homepage": "https://www.github.com/sebastianbergmann/global-state", + "keywords": [ + "global state" + ], + "support": { + "issues": "https://github.com/sebastianbergmann/global-state/issues", + "security": "https://github.com/sebastianbergmann/global-state/security/policy", + "source": "https://github.com/sebastianbergmann/global-state/tree/8.0.2" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/global-state", + "type": "tidelift" + } + ], + "time": "2025-08-29T11:29:25+00:00" + }, + { + "name": "sebastian/lines-of-code", + "version": "4.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/lines-of-code.git", + "reference": "97ffee3bcfb5805568d6af7f0f893678fc076d2f" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/lines-of-code/zipball/97ffee3bcfb5805568d6af7f0f893678fc076d2f", + "reference": "97ffee3bcfb5805568d6af7f0f893678fc076d2f", + "shasum": "" + }, + "require": { + "nikic/php-parser": "^5.0", + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "4.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library for counting the lines of code in PHP source code", + "homepage": "https://github.com/sebastianbergmann/lines-of-code", + "support": { + "issues": "https://github.com/sebastianbergmann/lines-of-code/issues", + "security": "https://github.com/sebastianbergmann/lines-of-code/security/policy", + "source": "https://github.com/sebastianbergmann/lines-of-code/tree/4.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:57:28+00:00" + }, + { + "name": "sebastian/object-enumerator", + "version": "7.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-enumerator.git", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-enumerator/zipball/1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "reference": "1effe8e9b8e068e9ae228e542d5d11b5d16db894", + "shasum": "" + }, + "require": { + "php": ">=8.3", + "sebastian/object-reflector": "^5.0", + "sebastian/recursion-context": "^7.0" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Traverses array structures and object graphs to enumerate all referenced objects", + "homepage": "https://github.com/sebastianbergmann/object-enumerator/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-enumerator/issues", + "security": "https://github.com/sebastianbergmann/object-enumerator/security/policy", + "source": "https://github.com/sebastianbergmann/object-enumerator/tree/7.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:57:48+00:00" + }, + { + "name": "sebastian/object-reflector", + "version": "5.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/object-reflector.git", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/object-reflector/zipball/4bfa827c969c98be1e527abd576533293c634f6a", + "reference": "4bfa827c969c98be1e527abd576533293c634f6a", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "5.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + } + ], + "description": "Allows reflection of object attributes, including inherited and non-public ones", + "homepage": "https://github.com/sebastianbergmann/object-reflector/", + "support": { + "issues": "https://github.com/sebastianbergmann/object-reflector/issues", + "security": "https://github.com/sebastianbergmann/object-reflector/security/policy", + "source": "https://github.com/sebastianbergmann/object-reflector/tree/5.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T04:58:17+00:00" + }, + { + "name": "sebastian/recursion-context", + "version": "7.0.1", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/recursion-context.git", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/recursion-context/zipball/0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "reference": "0b01998a7d5b1f122911a66bebcb8d46f0c82d8c", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "7.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de" + }, + { + "name": "Jeff Welch", + "email": "whatthejeff@gmail.com" + }, + { + "name": "Adam Harvey", + "email": "aharvey@php.net" + } + ], + "description": "Provides functionality to recursively process PHP variables", + "homepage": "https://github.com/sebastianbergmann/recursion-context", + "support": { + "issues": "https://github.com/sebastianbergmann/recursion-context/issues", + "security": "https://github.com/sebastianbergmann/recursion-context/security/policy", + "source": "https://github.com/sebastianbergmann/recursion-context/tree/7.0.1" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/recursion-context", + "type": "tidelift" + } + ], + "time": "2025-08-13T04:44:59+00:00" + }, + { + "name": "sebastian/type", + "version": "6.0.3", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/type.git", + "reference": "e549163b9760b8f71f191651d22acf32d56d6d4d" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/type/zipball/e549163b9760b8f71f191651d22acf32d56d6d4d", + "reference": "e549163b9760b8f71f191651d22acf32d56d6d4d", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "require-dev": { + "phpunit/phpunit": "^12.0" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Collection of value objects that represent the types of the PHP type system", + "homepage": "https://github.com/sebastianbergmann/type", + "support": { + "issues": "https://github.com/sebastianbergmann/type/issues", + "security": "https://github.com/sebastianbergmann/type/security/policy", + "source": "https://github.com/sebastianbergmann/type/tree/6.0.3" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + }, + { + "url": "https://liberapay.com/sebastianbergmann", + "type": "liberapay" + }, + { + "url": "https://thanks.dev/u/gh/sebastianbergmann", + "type": "thanks_dev" + }, + { + "url": "https://tidelift.com/funding/github/packagist/sebastian/type", + "type": "tidelift" + } + ], + "time": "2025-08-09T06:57:12+00:00" + }, + { + "name": "sebastian/version", + "version": "6.0.0", + "source": { + "type": "git", + "url": "https://github.com/sebastianbergmann/version.git", + "reference": "3e6ccf7657d4f0a59200564b08cead899313b53c" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/sebastianbergmann/version/zipball/3e6ccf7657d4f0a59200564b08cead899313b53c", + "reference": "3e6ccf7657d4f0a59200564b08cead899313b53c", + "shasum": "" + }, + "require": { + "php": ">=8.3" + }, + "type": "library", + "extra": { + "branch-alias": { + "dev-main": "6.0-dev" + } + }, + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Sebastian Bergmann", + "email": "sebastian@phpunit.de", + "role": "lead" + } + ], + "description": "Library that helps with managing the version number of Git-hosted PHP projects", + "homepage": "https://github.com/sebastianbergmann/version", + "support": { + "issues": "https://github.com/sebastianbergmann/version/issues", + "security": "https://github.com/sebastianbergmann/version/security/policy", + "source": "https://github.com/sebastianbergmann/version/tree/6.0.0" + }, + "funding": [ + { + "url": "https://github.com/sebastianbergmann", + "type": "github" + } + ], + "time": "2025-02-07T05:00:38+00:00" + }, + { + "name": "staabm/side-effects-detector", + "version": "1.0.5", + "source": { + "type": "git", + "url": "https://github.com/staabm/side-effects-detector.git", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/staabm/side-effects-detector/zipball/d8334211a140ce329c13726d4a715adbddd0a163", + "reference": "d8334211a140ce329c13726d4a715adbddd0a163", + "shasum": "" + }, + "require": { + "ext-tokenizer": "*", + "php": "^7.4 || ^8.0" + }, + "require-dev": { + "phpstan/extension-installer": "^1.4.3", + "phpstan/phpstan": "^1.12.6", + "phpunit/phpunit": "^9.6.21", + "symfony/var-dumper": "^5.4.43", + "tomasvotruba/type-coverage": "1.0.0", + "tomasvotruba/unused-public": "1.0.0" + }, + "type": "library", + "autoload": { + "classmap": [ + "lib/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "MIT" + ], + "description": "A static analysis tool to detect side effects in PHP code", + "keywords": [ + "static analysis" + ], + "support": { + "issues": "https://github.com/staabm/side-effects-detector/issues", + "source": "https://github.com/staabm/side-effects-detector/tree/1.0.5" + }, + "funding": [ + { + "url": "https://github.com/staabm", + "type": "github" + } + ], + "time": "2024-10-20T05:08:20+00:00" + }, + { + "name": "theseer/tokenizer", + "version": "2.0.1", + "source": { + "type": "git", + "url": "https://github.com/theseer/tokenizer.git", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4" + }, + "dist": { + "type": "zip", + "url": "https://api.github.com/repos/theseer/tokenizer/zipball/7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "reference": "7989e43bf381af0eac72e4f0ca5bcbfa81658be4", + "shasum": "" + }, + "require": { + "ext-dom": "*", + "ext-tokenizer": "*", + "ext-xmlwriter": "*", + "php": "^8.1" + }, + "type": "library", + "autoload": { + "classmap": [ + "src/" + ] + }, + "notification-url": "https://packagist.org/downloads/", + "license": [ + "BSD-3-Clause" + ], + "authors": [ + { + "name": "Arne Blankerts", + "email": "arne@blankerts.de", + "role": "Developer" + } + ], + "description": "A small library for converting tokenized PHP source code into XML and potentially other formats", + "support": { + "issues": "https://github.com/theseer/tokenizer/issues", + "source": "https://github.com/theseer/tokenizer/tree/2.0.1" + }, + "funding": [ + { + "url": "https://github.com/theseer", + "type": "github" + } + ], + "time": "2025-12-08T11:19:18+00:00" + } + ], + "aliases": [], + "minimum-stability": "stable", + "stability-flags": {}, + "prefer-stable": true, + "prefer-lowest": false, + "platform": { + "php": "^8.3" + }, + "platform-dev": {}, + "plugin-api-version": "2.9.0" +} diff --git a/composer.phar b/composer.phar new file mode 100755 index 0000000..212c0c3 Binary files /dev/null and b/composer.phar differ diff --git a/config/app.php b/config/app.php new file mode 100644 index 0000000..423eed5 --- /dev/null +++ b/config/app.php @@ -0,0 +1,126 @@ + env('APP_NAME', 'Laravel'), + + /* + |-------------------------------------------------------------------------- + | Application Environment + |-------------------------------------------------------------------------- + | + | This value determines the "environment" your application is currently + | running in. This may determine how you prefer to configure various + | services the application utilizes. Set this in your ".env" file. + | + */ + + 'env' => env('APP_ENV', 'production'), + + /* + |-------------------------------------------------------------------------- + | Application Debug Mode + |-------------------------------------------------------------------------- + | + | When your application is in debug mode, detailed error messages with + | stack traces will be shown on every error that occurs within your + | application. If disabled, a simple generic error page is shown. + | + */ + + 'debug' => (bool) env('APP_DEBUG', false), + + /* + |-------------------------------------------------------------------------- + | Application URL + |-------------------------------------------------------------------------- + | + | This URL is used by the console to properly generate URLs when using + | the Artisan command line tool. You should set this to the root of + | the application so that it's available within Artisan commands. + | + */ + + 'url' => env('APP_URL', 'http://localhost'), + + /* + |-------------------------------------------------------------------------- + | Application Timezone + |-------------------------------------------------------------------------- + | + | Here you may specify the default timezone for your application, which + | will be used by the PHP date and date-time functions. The timezone + | is set to "UTC" by default as it is suitable for most use cases. + | + */ + + 'timezone' => 'UTC', + + /* + |-------------------------------------------------------------------------- + | Application Locale Configuration + |-------------------------------------------------------------------------- + | + | The application locale determines the default locale that will be used + | by Laravel's translation / localization methods. This option can be + | set to any locale for which you plan to have translation strings. + | + */ + + 'locale' => env('APP_LOCALE', 'en'), + + 'fallback_locale' => env('APP_FALLBACK_LOCALE', 'en'), + + 'faker_locale' => env('APP_FAKER_LOCALE', 'en_US'), + + /* + |-------------------------------------------------------------------------- + | Encryption Key + |-------------------------------------------------------------------------- + | + | This key is utilized by Laravel's encryption services and should be set + | to a random, 32 character string to ensure that all encrypted values + | are secure. You should do this prior to deploying the application. + | + */ + + 'cipher' => 'AES-256-CBC', + + 'key' => env('APP_KEY'), + + 'previous_keys' => [ + ...array_filter( + explode(',', (string) env('APP_PREVIOUS_KEYS', '')) + ), + ], + + /* + |-------------------------------------------------------------------------- + | Maintenance Mode Driver + |-------------------------------------------------------------------------- + | + | These configuration options determine the driver used to determine and + | manage Laravel's "maintenance mode" status. The "cache" driver will + | allow maintenance mode to be controlled across multiple machines. + | + | Supported drivers: "file", "cache" + | + */ + + 'maintenance' => [ + 'driver' => env('APP_MAINTENANCE_DRIVER', 'file'), + 'store' => env('APP_MAINTENANCE_STORE', 'database'), + ], + +]; diff --git a/config/auth.php b/config/auth.php new file mode 100644 index 0000000..d7568ff --- /dev/null +++ b/config/auth.php @@ -0,0 +1,117 @@ + [ + 'guard' => env('AUTH_GUARD', 'web'), + 'passwords' => env('AUTH_PASSWORD_BROKER', 'users'), + ], + + /* + |-------------------------------------------------------------------------- + | Authentication Guards + |-------------------------------------------------------------------------- + | + | Next, you may define every authentication guard for your application. + | Of course, a great default configuration has been defined for you + | which utilizes session storage plus the Eloquent user provider. + | + | All authentication guards have a user provider, which defines how the + | users are actually retrieved out of your database or other storage + | system used by the application. Typically, Eloquent is utilized. + | + | Supported: "session" + | + */ + + 'guards' => [ + 'web' => [ + 'driver' => 'session', + 'provider' => 'users', + ], + ], + + /* + |-------------------------------------------------------------------------- + | User Providers + |-------------------------------------------------------------------------- + | + | All authentication guards have a user provider, which defines how the + | users are actually retrieved out of your database or other storage + | system used by the application. Typically, Eloquent is utilized. + | + | If you have multiple user tables or models you may configure multiple + | providers to represent the model / table. These providers may then + | be assigned to any extra authentication guards you have defined. + | + | Supported: "database", "eloquent" + | + */ + + 'providers' => [ + 'users' => [ + 'driver' => 'eloquent', + 'model' => env('AUTH_MODEL', User::class), + ], + + // 'users' => [ + // 'driver' => 'database', + // 'table' => 'users', + // ], + ], + + /* + |-------------------------------------------------------------------------- + | Resetting Passwords + |-------------------------------------------------------------------------- + | + | These configuration options specify the behavior of Laravel's password + | reset functionality, including the table utilized for token storage + | and the user provider that is invoked to actually retrieve users. + | + | The expiry time is the number of minutes that each reset token will be + | considered valid. This security feature keeps tokens short-lived so + | they have less time to be guessed. You may change this as needed. + | + | The throttle setting is the number of seconds a user must wait before + | generating more password reset tokens. This prevents the user from + | quickly generating a very large amount of password reset tokens. + | + */ + + 'passwords' => [ + 'users' => [ + 'provider' => 'users', + 'table' => env('AUTH_PASSWORD_RESET_TOKEN_TABLE', 'password_reset_tokens'), + 'expire' => 60, + 'throttle' => 60, + ], + ], + + /* + |-------------------------------------------------------------------------- + | Password Confirmation Timeout + |-------------------------------------------------------------------------- + | + | Here you may define the number of seconds before a password confirmation + | window expires and users are asked to re-enter their password via the + | confirmation screen. By default, the timeout lasts for three hours. + | + */ + + 'password_timeout' => env('AUTH_PASSWORD_TIMEOUT', 10800), + +]; diff --git a/config/cache.php b/config/cache.php new file mode 100644 index 0000000..c68acdf --- /dev/null +++ b/config/cache.php @@ -0,0 +1,130 @@ + env('CACHE_STORE', 'database'), + + /* + |-------------------------------------------------------------------------- + | Cache Stores + |-------------------------------------------------------------------------- + | + | Here you may define all of the cache "stores" for your application as + | well as their drivers. You may even define multiple stores for the + | same cache driver to group types of items stored in your caches. + | + | Supported drivers: "array", "database", "file", "memcached", + | "redis", "dynamodb", "octane", + | "failover", "null" + | + */ + + 'stores' => [ + + 'array' => [ + 'driver' => 'array', + 'serialize' => false, + ], + + 'database' => [ + 'driver' => 'database', + 'connection' => env('DB_CACHE_CONNECTION'), + 'table' => env('DB_CACHE_TABLE', 'cache'), + 'lock_connection' => env('DB_CACHE_LOCK_CONNECTION'), + 'lock_table' => env('DB_CACHE_LOCK_TABLE'), + ], + + 'file' => [ + 'driver' => 'file', + 'path' => storage_path('framework/cache/data'), + 'lock_path' => storage_path('framework/cache/data'), + ], + + 'memcached' => [ + 'driver' => 'memcached', + 'persistent_id' => env('MEMCACHED_PERSISTENT_ID'), + 'sasl' => [ + env('MEMCACHED_USERNAME'), + env('MEMCACHED_PASSWORD'), + ], + 'options' => [ + // Memcached::OPT_CONNECT_TIMEOUT => 2000, + ], + 'servers' => [ + [ + 'host' => env('MEMCACHED_HOST', '127.0.0.1'), + 'port' => env('MEMCACHED_PORT', 11211), + 'weight' => 100, + ], + ], + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => env('REDIS_CACHE_CONNECTION', 'cache'), + 'lock_connection' => env('REDIS_CACHE_LOCK_CONNECTION', 'default'), + ], + + 'dynamodb' => [ + 'driver' => 'dynamodb', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'table' => env('DYNAMODB_CACHE_TABLE', 'cache'), + 'endpoint' => env('DYNAMODB_ENDPOINT'), + ], + + 'octane' => [ + 'driver' => 'octane', + ], + + 'failover' => [ + 'driver' => 'failover', + 'stores' => [ + 'database', + 'array', + ], + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Cache Key Prefix + |-------------------------------------------------------------------------- + | + | When utilizing the APC, database, memcached, Redis, and DynamoDB cache + | stores, there might be other applications using the same cache. For + | that reason, you may prefix every cache key to avoid collisions. + | + */ + + 'prefix' => env('CACHE_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-cache-'), + + /* + |-------------------------------------------------------------------------- + | Serializable Classes + |-------------------------------------------------------------------------- + | + | This value determines the classes that can be unserialized from cache + | storage. By default, no PHP classes will be unserialized from your + | cache to prevent gadget chain attacks if your APP_KEY is leaked. + | + */ + + 'serializable_classes' => false, + +]; diff --git a/config/database.php b/config/database.php new file mode 100644 index 0000000..abbb88e --- /dev/null +++ b/config/database.php @@ -0,0 +1,184 @@ + env('DB_CONNECTION', 'sqlite'), + + /* + |-------------------------------------------------------------------------- + | Database Connections + |-------------------------------------------------------------------------- + | + | Below are all of the database connections defined for your application. + | An example configuration is provided for each database system which + | is supported by Laravel. You're free to add / remove connections. + | + */ + + 'connections' => [ + + 'sqlite' => [ + 'driver' => 'sqlite', + 'url' => env('DB_URL'), + 'database' => env('DB_DATABASE', database_path('database.sqlite')), + 'prefix' => '', + 'foreign_key_constraints' => env('DB_FOREIGN_KEYS', true), + 'busy_timeout' => null, + 'journal_mode' => null, + 'synchronous' => null, + 'transaction_mode' => 'DEFERRED', + ], + + 'mysql' => [ + 'driver' => 'mysql', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => env('DB_CHARSET', 'utf8mb4'), + 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + Mysql::ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + 'mariadb' => [ + 'driver' => 'mariadb', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '3306'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'unix_socket' => env('DB_SOCKET', ''), + 'charset' => env('DB_CHARSET', 'utf8mb4'), + 'collation' => env('DB_COLLATION', 'utf8mb4_unicode_ci'), + 'prefix' => '', + 'prefix_indexes' => true, + 'strict' => true, + 'engine' => null, + 'options' => extension_loaded('pdo_mysql') ? array_filter([ + Mysql::ATTR_SSL_CA => env('MYSQL_ATTR_SSL_CA'), + ]) : [], + ], + + 'pgsql' => [ + 'driver' => 'pgsql', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', '127.0.0.1'), + 'port' => env('DB_PORT', '5432'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => env('DB_CHARSET', 'utf8'), + 'prefix' => '', + 'prefix_indexes' => true, + 'search_path' => 'public', + 'sslmode' => env('DB_SSLMODE', 'prefer'), + ], + + 'sqlsrv' => [ + 'driver' => 'sqlsrv', + 'url' => env('DB_URL'), + 'host' => env('DB_HOST', 'localhost'), + 'port' => env('DB_PORT', '1433'), + 'database' => env('DB_DATABASE', 'laravel'), + 'username' => env('DB_USERNAME', 'root'), + 'password' => env('DB_PASSWORD', ''), + 'charset' => env('DB_CHARSET', 'utf8'), + 'prefix' => '', + 'prefix_indexes' => true, + // 'encrypt' => env('DB_ENCRYPT', 'yes'), + // 'trust_server_certificate' => env('DB_TRUST_SERVER_CERTIFICATE', 'false'), + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Migration Repository Table + |-------------------------------------------------------------------------- + | + | This table keeps track of all the migrations that have already run for + | your application. Using this information, we can determine which of + | the migrations on disk haven't actually been run on the database. + | + */ + + 'migrations' => [ + 'table' => 'migrations', + 'update_date_on_publish' => true, + ], + + /* + |-------------------------------------------------------------------------- + | Redis Databases + |-------------------------------------------------------------------------- + | + | Redis is an open source, fast, and advanced key-value store that also + | provides a richer body of commands than a typical key-value system + | such as Memcached. You may define your connection settings here. + | + */ + + 'redis' => [ + + 'client' => env('REDIS_CLIENT', 'phpredis'), + + 'options' => [ + 'cluster' => env('REDIS_CLUSTER', 'redis'), + 'prefix' => env('REDIS_PREFIX', Str::slug((string) env('APP_NAME', 'laravel')).'-database-'), + 'persistent' => env('REDIS_PERSISTENT', false), + ], + + 'default' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_DB', '0'), + 'max_retries' => env('REDIS_MAX_RETRIES', 3), + 'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'), + 'backoff_base' => env('REDIS_BACKOFF_BASE', 100), + 'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000), + ], + + 'cache' => [ + 'url' => env('REDIS_URL'), + 'host' => env('REDIS_HOST', '127.0.0.1'), + 'username' => env('REDIS_USERNAME'), + 'password' => env('REDIS_PASSWORD'), + 'port' => env('REDIS_PORT', '6379'), + 'database' => env('REDIS_CACHE_DB', '1'), + 'max_retries' => env('REDIS_MAX_RETRIES', 3), + 'backoff_algorithm' => env('REDIS_BACKOFF_ALGORITHM', 'decorrelated_jitter'), + 'backoff_base' => env('REDIS_BACKOFF_BASE', 100), + 'backoff_cap' => env('REDIS_BACKOFF_CAP', 1000), + ], + + ], + +]; diff --git a/config/filesystems.php b/config/filesystems.php new file mode 100644 index 0000000..37d8fca --- /dev/null +++ b/config/filesystems.php @@ -0,0 +1,80 @@ + env('FILESYSTEM_DISK', 'local'), + + /* + |-------------------------------------------------------------------------- + | Filesystem Disks + |-------------------------------------------------------------------------- + | + | Below you may configure as many filesystem disks as necessary, and you + | may even configure multiple disks for the same driver. Examples for + | most supported storage drivers are configured here for reference. + | + | Supported drivers: "local", "ftp", "sftp", "s3" + | + */ + + 'disks' => [ + + 'local' => [ + 'driver' => 'local', + 'root' => storage_path('app/private'), + 'serve' => true, + 'throw' => false, + 'report' => false, + ], + + 'public' => [ + 'driver' => 'local', + 'root' => storage_path('app/public'), + 'url' => rtrim(env('APP_URL', 'http://localhost'), '/').'/storage', + 'visibility' => 'public', + 'throw' => false, + 'report' => false, + ], + + 's3' => [ + 'driver' => 's3', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION'), + 'bucket' => env('AWS_BUCKET'), + 'url' => env('AWS_URL'), + 'endpoint' => env('AWS_ENDPOINT'), + 'use_path_style_endpoint' => env('AWS_USE_PATH_STYLE_ENDPOINT', false), + 'throw' => false, + 'report' => false, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Symbolic Links + |-------------------------------------------------------------------------- + | + | Here you may configure the symbolic links that will be created when the + | `storage:link` Artisan command is executed. The array keys should be + | the locations of the links and the values should be their targets. + | + */ + + 'links' => [ + public_path('storage') => storage_path('app/public'), + ], + +]; diff --git a/config/hosting.php b/config/hosting.php new file mode 100644 index 0000000..1e5da7c --- /dev/null +++ b/config/hosting.php @@ -0,0 +1,115 @@ + [ + 'url' => env('APP_URL', 'https://panel.hexahost.de'), + ], + + 'proxmox' => [ + 'url' => env('PROXMOX_URL', 'https://proxmox.example.com:8006'), + 'token' => env('PROXMOX_TOKEN'), + 'node' => env('PROXMOX_NODE', 'hyperion'), + 'storage' => env('PROXMOX_STORAGE', 'vmdata'), + 'bridge' => env('PROXMOX_BRIDGE', 'vmbr0'), + 'public_bridge' => env('PROXMOX_PUBLIC_BRIDGE', 'vmbr1'), + 'template_vmid' => env('PROXMOX_TEMPLATE_VMID'), + 'timeout' => (int) env('PROXMOX_TIMEOUT', 120), + 'verify_ssl' => env('PROXMOX_VERIFY_SSL', true), + 'iso_storage' => env('PROXMOX_ISO_STORAGE', 'ISO'), + 'iso_device' => env('PROXMOX_ISO_DEVICE', 'ide2'), + 'console_ws_url' => env('PROXMOX_CONSOLE_WS_URL'), + 'backup_storage' => env('PROXMOX_BACKUP_STORAGE', 'inett-PBS'), + ], + + 'vmid' => [ + 'range_start' => (int) env('VMID_RANGE_START', 2000), + 'range_end' => (int) env('VMID_RANGE_END', 2999), + 'release_after_hours' => (int) env('VMID_RELEASE_AFTER_HOURS', 48), + ], + + 'snapshots' => [ + 'retention_hours' => (int) env('SNAPSHOT_RETENTION_HOURS', 48), + 'auto_before_destructive' => env('SNAPSHOT_AUTO_BEFORE_DESTRUCTIVE', true), + ], + + 'backups' => [ + 'max_per_customer' => (int) env('MAX_BACKUPS_PER_CUSTOMER', 4), + 'pbs_storage' => env('PROXMOX_BACKUP_STORAGE', 'inett-PBS'), + 'enabled' => env('BACKUPS_ENABLED', false), + ], + + 'iso_upload' => [ + 'enabled' => env('ISO_UPLOAD_ENABLED', true), + 'max_per_customer' => (int) env('ISO_UPLOAD_MAX_PER_CUSTOMER', 1), + 'max_size_mb' => (int) env('ISO_UPLOAD_MAX_SIZE_MB', 10240), + 'retention_hours' => (int) env('ISO_UPLOAD_RETENTION_HOURS', 48), + ], + + 'vm_power' => [ + 'rate_limit_per_minute' => (int) env('VM_POWER_RATE_LIMIT', 20), + ], + + 'traefik' => [ + 'dynamic_config_path' => env('TRAEFIK_DYNAMIC_CONFIG_PATH', storage_path('traefik/dynamic/customers.yaml')), + 'entrypoint' => env('TRAEFIK_ENTRYPOINT', 'websecure'), + 'cert_resolver' => env('TRAEFIK_CERT_RESOLVER', 'letsencrypt'), + 'backend_port' => (int) env('TRAEFIK_BACKEND_PORT', 80), + 'public_ip' => env('TRAEFIK_PUBLIC_IP'), + 'reload_command' => env('TRAEFIK_RELOAD_COMMAND'), + ], + + 'plesk' => [ + 'url' => env('PLESK_URL', 'https://plesk.example.com:8443'), + 'user' => env('PLESK_USER'), + 'password' => env('PLESK_PASS'), + 'base_domain' => env('PLESK_BASE_DOMAIN', 'hexahost.de'), + 'timeout' => (int) env('PLESK_TIMEOUT', 30), + 'verify_ssl' => env('PLESK_VERIFY_SSL', true), + 'mail_enabled' => env('PLESK_MAIL_ENABLED', true), + ], + + 'network' => [ + 'gateway' => env('HOSTING_GATEWAY', '10.32.0.1'), + 'cidr' => (int) env('HOSTING_NETWORK_CIDR', 24), + 'ip_pool_start' => env('HOSTING_IP_POOL_START', '10.32.0.10'), + 'ip_pool_end' => env('HOSTING_IP_POOL_END', '10.32.0.254'), + ], + + 'public_network' => [ + 'gateway' => env('HOSTING_PUBLIC_GATEWAY', '185.45.149.241'), + 'cidr' => (int) env('HOSTING_PUBLIC_CIDR', 28), + 'ip_pool_start' => env('HOSTING_PUBLIC_POOL_START', '185.45.149.246'), + 'ip_pool_end' => env('HOSTING_PUBLIC_POOL_END', '185.45.149.252'), + ], + + 'whmcs' => [ + 'enabled' => env('WHMCS_ENABLED', true), + 'api_secret' => env('WHMCS_API_SECRET'), + 'allowed_ips' => array_filter(array_map('trim', explode(',', env('WHMCS_ALLOWED_IPS', '')))), + 'replay_window_seconds' => (int) env('WHMCS_REPLAY_WINDOW', 300), + ], + + 'defaults' => [ + 'cpu' => (int) env('HOSTING_DEFAULT_CPU', 2), + 'ram' => (int) env('HOSTING_DEFAULT_RAM', 2048), + 'disk' => (int) env('HOSTING_DEFAULT_DISK', 32), + ], + + 'security' => [ + 'admin_2fa_required' => env('ADMIN_2FA_REQUIRED', true), + 'login_max_attempts' => (int) env('LOGIN_MAX_ATTEMPTS', 5), + ], + + 'console' => [ + 'proxy_enabled' => env('CONSOLE_PROXY_ENABLED', false), + 'proxy_ws_url' => env('CONSOLE_PROXY_WS_URL'), + 'proxy_secret' => env('CONSOLE_PROXY_SECRET'), + 'proxy_validate_url' => env('CONSOLE_PROXY_VALIDATE_URL'), + ], + + 'notifications' => [ + 'webhook_url' => env('HOSTING_WEBHOOK_URL'), + ], + +]; diff --git a/config/logging.php b/config/logging.php new file mode 100644 index 0000000..b09cb25 --- /dev/null +++ b/config/logging.php @@ -0,0 +1,132 @@ + env('LOG_CHANNEL', 'stack'), + + /* + |-------------------------------------------------------------------------- + | Deprecations Log Channel + |-------------------------------------------------------------------------- + | + | This option controls the log channel that should be used to log warnings + | regarding deprecated PHP and library features. This allows you to get + | your application ready for upcoming major versions of dependencies. + | + */ + + 'deprecations' => [ + 'channel' => env('LOG_DEPRECATIONS_CHANNEL', 'null'), + 'trace' => env('LOG_DEPRECATIONS_TRACE', false), + ], + + /* + |-------------------------------------------------------------------------- + | Log Channels + |-------------------------------------------------------------------------- + | + | Here you may configure the log channels for your application. Laravel + | utilizes the Monolog PHP logging library, which includes a variety + | of powerful log handlers and formatters that you're free to use. + | + | Available drivers: "single", "daily", "slack", "syslog", + | "errorlog", "monolog", "custom", "stack" + | + */ + + 'channels' => [ + + 'stack' => [ + 'driver' => 'stack', + 'channels' => explode(',', (string) env('LOG_STACK', 'single')), + 'ignore_exceptions' => false, + ], + + 'single' => [ + 'driver' => 'single', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'replace_placeholders' => true, + ], + + 'daily' => [ + 'driver' => 'daily', + 'path' => storage_path('logs/laravel.log'), + 'level' => env('LOG_LEVEL', 'debug'), + 'days' => env('LOG_DAILY_DAYS', 14), + 'replace_placeholders' => true, + ], + + 'slack' => [ + 'driver' => 'slack', + 'url' => env('LOG_SLACK_WEBHOOK_URL'), + 'username' => env('LOG_SLACK_USERNAME', env('APP_NAME', 'Laravel')), + 'emoji' => env('LOG_SLACK_EMOJI', ':boom:'), + 'level' => env('LOG_LEVEL', 'critical'), + 'replace_placeholders' => true, + ], + + 'papertrail' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => env('LOG_PAPERTRAIL_HANDLER', SyslogUdpHandler::class), + 'handler_with' => [ + 'host' => env('PAPERTRAIL_URL'), + 'port' => env('PAPERTRAIL_PORT'), + 'connectionString' => 'tls://'.env('PAPERTRAIL_URL').':'.env('PAPERTRAIL_PORT'), + ], + 'processors' => [PsrLogMessageProcessor::class], + ], + + 'stderr' => [ + 'driver' => 'monolog', + 'level' => env('LOG_LEVEL', 'debug'), + 'handler' => StreamHandler::class, + 'handler_with' => [ + 'stream' => 'php://stderr', + ], + 'formatter' => env('LOG_STDERR_FORMATTER'), + 'processors' => [PsrLogMessageProcessor::class], + ], + + 'syslog' => [ + 'driver' => 'syslog', + 'level' => env('LOG_LEVEL', 'debug'), + 'facility' => env('LOG_SYSLOG_FACILITY', LOG_USER), + 'replace_placeholders' => true, + ], + + 'errorlog' => [ + 'driver' => 'errorlog', + 'level' => env('LOG_LEVEL', 'debug'), + 'replace_placeholders' => true, + ], + + 'null' => [ + 'driver' => 'monolog', + 'handler' => NullHandler::class, + ], + + 'emergency' => [ + 'path' => storage_path('logs/laravel.log'), + ], + + ], + +]; diff --git a/config/mail.php b/config/mail.php new file mode 100644 index 0000000..e32e88d --- /dev/null +++ b/config/mail.php @@ -0,0 +1,118 @@ + env('MAIL_MAILER', 'log'), + + /* + |-------------------------------------------------------------------------- + | Mailer Configurations + |-------------------------------------------------------------------------- + | + | Here you may configure all of the mailers used by your application plus + | their respective settings. Several examples have been configured for + | you and you are free to add your own as your application requires. + | + | Laravel supports a variety of mail "transport" drivers that can be used + | when delivering an email. You may specify which one you're using for + | your mailers below. You may also add additional mailers if needed. + | + | Supported: "smtp", "sendmail", "mailgun", "ses", "ses-v2", + | "postmark", "resend", "log", "array", + | "failover", "roundrobin" + | + */ + + 'mailers' => [ + + 'smtp' => [ + 'transport' => 'smtp', + 'scheme' => env('MAIL_SCHEME'), + 'url' => env('MAIL_URL'), + 'host' => env('MAIL_HOST', '127.0.0.1'), + 'port' => env('MAIL_PORT', 2525), + 'username' => env('MAIL_USERNAME'), + 'password' => env('MAIL_PASSWORD'), + 'timeout' => null, + 'local_domain' => env('MAIL_EHLO_DOMAIN', parse_url((string) env('APP_URL', 'http://localhost'), PHP_URL_HOST)), + ], + + 'ses' => [ + 'transport' => 'ses', + ], + + 'postmark' => [ + 'transport' => 'postmark', + // 'message_stream_id' => env('POSTMARK_MESSAGE_STREAM_ID'), + // 'client' => [ + // 'timeout' => 5, + // ], + ], + + 'resend' => [ + 'transport' => 'resend', + ], + + 'sendmail' => [ + 'transport' => 'sendmail', + 'path' => env('MAIL_SENDMAIL_PATH', '/usr/sbin/sendmail -bs -i'), + ], + + 'log' => [ + 'transport' => 'log', + 'channel' => env('MAIL_LOG_CHANNEL'), + ], + + 'array' => [ + 'transport' => 'array', + ], + + 'failover' => [ + 'transport' => 'failover', + 'mailers' => [ + 'smtp', + 'log', + ], + 'retry_after' => 60, + ], + + 'roundrobin' => [ + 'transport' => 'roundrobin', + 'mailers' => [ + 'ses', + 'postmark', + ], + 'retry_after' => 60, + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Global "From" Address + |-------------------------------------------------------------------------- + | + | You may wish for all emails sent by your application to be sent from + | the same address. Here you may specify a name and address that is + | used globally for all emails that are sent by your application. + | + */ + + 'from' => [ + 'address' => env('MAIL_FROM_ADDRESS', 'hello@example.com'), + 'name' => env('MAIL_FROM_NAME', env('APP_NAME', 'Laravel')), + ], + +]; diff --git a/config/queue.php b/config/queue.php new file mode 100644 index 0000000..79c2c0a --- /dev/null +++ b/config/queue.php @@ -0,0 +1,129 @@ + env('QUEUE_CONNECTION', 'database'), + + /* + |-------------------------------------------------------------------------- + | Queue Connections + |-------------------------------------------------------------------------- + | + | Here you may configure the connection options for every queue backend + | used by your application. An example configuration is provided for + | each backend supported by Laravel. You're also free to add more. + | + | Drivers: "sync", "database", "beanstalkd", "sqs", "redis", + | "deferred", "background", "failover", "null" + | + */ + + 'connections' => [ + + 'sync' => [ + 'driver' => 'sync', + ], + + 'database' => [ + 'driver' => 'database', + 'connection' => env('DB_QUEUE_CONNECTION'), + 'table' => env('DB_QUEUE_TABLE', 'jobs'), + 'queue' => env('DB_QUEUE', 'default'), + 'retry_after' => (int) env('DB_QUEUE_RETRY_AFTER', 90), + 'after_commit' => false, + ], + + 'beanstalkd' => [ + 'driver' => 'beanstalkd', + 'host' => env('BEANSTALKD_QUEUE_HOST', 'localhost'), + 'queue' => env('BEANSTALKD_QUEUE', 'default'), + 'retry_after' => (int) env('BEANSTALKD_QUEUE_RETRY_AFTER', 90), + 'block_for' => 0, + 'after_commit' => false, + ], + + 'sqs' => [ + 'driver' => 'sqs', + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'prefix' => env('SQS_PREFIX', 'https://sqs.us-east-1.amazonaws.com/your-account-id'), + 'queue' => env('SQS_QUEUE', 'default'), + 'suffix' => env('SQS_SUFFIX'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + 'after_commit' => false, + ], + + 'redis' => [ + 'driver' => 'redis', + 'connection' => env('REDIS_QUEUE_CONNECTION', 'default'), + 'queue' => env('REDIS_QUEUE', 'default'), + 'retry_after' => (int) env('REDIS_QUEUE_RETRY_AFTER', 90), + 'block_for' => null, + 'after_commit' => false, + ], + + 'deferred' => [ + 'driver' => 'deferred', + ], + + 'background' => [ + 'driver' => 'background', + ], + + 'failover' => [ + 'driver' => 'failover', + 'connections' => [ + 'database', + 'deferred', + ], + ], + + ], + + /* + |-------------------------------------------------------------------------- + | Job Batching + |-------------------------------------------------------------------------- + | + | The following options configure the database and table that store job + | batching information. These options can be updated to any database + | connection and table which has been defined by your application. + | + */ + + 'batching' => [ + 'database' => env('DB_CONNECTION', 'sqlite'), + 'table' => 'job_batches', + ], + + /* + |-------------------------------------------------------------------------- + | Failed Queue Jobs + |-------------------------------------------------------------------------- + | + | These options configure the behavior of failed queue job logging so you + | can control how and where failed jobs are stored. Laravel ships with + | support for storing failed jobs in a simple file or in a database. + | + | Supported drivers: "database-uuids", "dynamodb", "file", "null" + | + */ + + 'failed' => [ + 'driver' => env('QUEUE_FAILED_DRIVER', 'database-uuids'), + 'database' => env('DB_CONNECTION', 'sqlite'), + 'table' => 'failed_jobs', + ], + +]; diff --git a/config/services.php b/config/services.php new file mode 100644 index 0000000..6a90eb8 --- /dev/null +++ b/config/services.php @@ -0,0 +1,38 @@ + [ + 'key' => env('POSTMARK_API_KEY'), + ], + + 'resend' => [ + 'key' => env('RESEND_API_KEY'), + ], + + 'ses' => [ + 'key' => env('AWS_ACCESS_KEY_ID'), + 'secret' => env('AWS_SECRET_ACCESS_KEY'), + 'region' => env('AWS_DEFAULT_REGION', 'us-east-1'), + ], + + 'slack' => [ + 'notifications' => [ + 'bot_user_oauth_token' => env('SLACK_BOT_USER_OAUTH_TOKEN'), + 'channel' => env('SLACK_BOT_USER_DEFAULT_CHANNEL'), + ], + ], + +]; diff --git a/config/session.php b/config/session.php new file mode 100644 index 0000000..f574482 --- /dev/null +++ b/config/session.php @@ -0,0 +1,233 @@ + env('SESSION_DRIVER', 'database'), + + /* + |-------------------------------------------------------------------------- + | Session Lifetime + |-------------------------------------------------------------------------- + | + | Here you may specify the number of minutes that you wish the session + | to be allowed to remain idle before it expires. If you want them + | to expire immediately when the browser is closed then you may + | indicate that via the expire_on_close configuration option. + | + */ + + 'lifetime' => (int) env('SESSION_LIFETIME', 120), + + 'expire_on_close' => env('SESSION_EXPIRE_ON_CLOSE', false), + + /* + |-------------------------------------------------------------------------- + | Session Encryption + |-------------------------------------------------------------------------- + | + | This option allows you to easily specify that all of your session data + | should be encrypted before it's stored. All encryption is performed + | automatically by Laravel and you may use the session like normal. + | + */ + + 'encrypt' => env('SESSION_ENCRYPT', false), + + /* + |-------------------------------------------------------------------------- + | Session File Location + |-------------------------------------------------------------------------- + | + | When utilizing the "file" session driver, the session files are placed + | on disk. The default storage location is defined here; however, you + | are free to provide another location where they should be stored. + | + */ + + 'files' => storage_path('framework/sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Database Connection + |-------------------------------------------------------------------------- + | + | When using the "database" or "redis" session drivers, you may specify a + | connection that should be used to manage these sessions. This should + | correspond to a connection in your database configuration options. + | + */ + + 'connection' => env('SESSION_CONNECTION'), + + /* + |-------------------------------------------------------------------------- + | Session Database Table + |-------------------------------------------------------------------------- + | + | When using the "database" session driver, you may specify the table to + | be used to store sessions. Of course, a sensible default is defined + | for you; however, you're welcome to change this to another table. + | + */ + + 'table' => env('SESSION_TABLE', 'sessions'), + + /* + |-------------------------------------------------------------------------- + | Session Cache Store + |-------------------------------------------------------------------------- + | + | When using one of the framework's cache driven session backends, you may + | define the cache store which should be used to store the session data + | between requests. This must match one of your defined cache stores. + | + | Affects: "dynamodb", "memcached", "redis" + | + */ + + 'store' => env('SESSION_STORE'), + + /* + |-------------------------------------------------------------------------- + | Session Sweeping Lottery + |-------------------------------------------------------------------------- + | + | Some session drivers must manually sweep their storage location to get + | rid of old sessions from storage. Here are the chances that it will + | happen on a given request. By default, the odds are 2 out of 100. + | + */ + + 'lottery' => [2, 100], + + /* + |-------------------------------------------------------------------------- + | Session Cookie Name + |-------------------------------------------------------------------------- + | + | Here you may change the name of the session cookie that is created by + | the framework. Typically, you should not need to change this value + | since doing so does not grant a meaningful security improvement. + | + */ + + 'cookie' => env( + 'SESSION_COOKIE', + Str::slug((string) env('APP_NAME', 'laravel')).'-session' + ), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Path + |-------------------------------------------------------------------------- + | + | The session cookie path determines the path for which the cookie will + | be regarded as available. Typically, this will be the root path of + | your application, but you're free to change this when necessary. + | + */ + + 'path' => env('SESSION_PATH', '/'), + + /* + |-------------------------------------------------------------------------- + | Session Cookie Domain + |-------------------------------------------------------------------------- + | + | This value determines the domain and subdomains the session cookie is + | available to. By default, the cookie will be available to the root + | domain without subdomains. Typically, this shouldn't be changed. + | + */ + + 'domain' => env('SESSION_DOMAIN'), + + /* + |-------------------------------------------------------------------------- + | HTTPS Only Cookies + |-------------------------------------------------------------------------- + | + | By setting this option to true, session cookies will only be sent back + | to the server if the browser has a HTTPS connection. This will keep + | the cookie from being sent to you when it can't be done securely. + | + */ + + 'secure' => env('SESSION_SECURE_COOKIE'), + + /* + |-------------------------------------------------------------------------- + | HTTP Access Only + |-------------------------------------------------------------------------- + | + | Setting this value to true will prevent JavaScript from accessing the + | value of the cookie and the cookie will only be accessible through + | the HTTP protocol. It's unlikely you should disable this option. + | + */ + + 'http_only' => env('SESSION_HTTP_ONLY', true), + + /* + |-------------------------------------------------------------------------- + | Same-Site Cookies + |-------------------------------------------------------------------------- + | + | This option determines how your cookies behave when cross-site requests + | take place, and can be used to mitigate CSRF attacks. By default, we + | will set this value to "lax" to permit secure cross-site requests. + | + | See: https://developer.mozilla.org/en-US/docs/Web/HTTP/Headers/Set-Cookie#samesitesamesite-value + | + | Supported: "lax", "strict", "none", null + | + */ + + 'same_site' => env('SESSION_SAME_SITE', 'lax'), + + /* + |-------------------------------------------------------------------------- + | Partitioned Cookies + |-------------------------------------------------------------------------- + | + | Setting this value to true will tie the cookie to the top-level site for + | a cross-site context. Partitioned cookies are accepted by the browser + | when flagged "secure" and the Same-Site attribute is set to "none". + | + */ + + 'partitioned' => env('SESSION_PARTITIONED_COOKIE', false), + + /* + |-------------------------------------------------------------------------- + | Session Serialization + |-------------------------------------------------------------------------- + | + | This value controls the serialization strategy for session data, which + | is JSON by default. Setting this to "php" allows the storage of PHP + | objects in the session but can make an application vulnerable to + | "gadget chain" serialization attacks if the APP_KEY is leaked. + | + | Supported: "json", "php" + | + */ + + 'serialization' => 'json', + +]; diff --git a/database/.gitignore b/database/.gitignore new file mode 100644 index 0000000..9b19b93 --- /dev/null +++ b/database/.gitignore @@ -0,0 +1 @@ +*.sqlite* diff --git a/database/factories/UserFactory.php b/database/factories/UserFactory.php new file mode 100644 index 0000000..0c36372 --- /dev/null +++ b/database/factories/UserFactory.php @@ -0,0 +1,48 @@ + + */ +class UserFactory extends Factory +{ + /** + * The current password being used by the factory. + */ + protected static ?string $password; + + /** + * Define the model's default state. + * + * @return array + */ + public function definition(): array + { + return [ + 'name' => fake()->name(), + 'email' => fake()->unique()->safeEmail(), + 'email_verified_at' => now(), + 'password' => static::$password ??= Hash::make('password'), + 'remember_token' => Str::random(10), + 'role' => UserRole::Customer, + 'is_active' => true, + ]; + } + + /** + * Indicate that the model's email address should be unverified. + */ + public function unverified(): static + { + return $this->state(fn (array $attributes) => [ + 'email_verified_at' => null, + ]); + } +} diff --git a/database/migrations/0001_01_01_000000_create_users_table.php b/database/migrations/0001_01_01_000000_create_users_table.php new file mode 100644 index 0000000..05fb5d9 --- /dev/null +++ b/database/migrations/0001_01_01_000000_create_users_table.php @@ -0,0 +1,49 @@ +id(); + $table->string('name'); + $table->string('email')->unique(); + $table->timestamp('email_verified_at')->nullable(); + $table->string('password'); + $table->rememberToken(); + $table->timestamps(); + }); + + Schema::create('password_reset_tokens', function (Blueprint $table) { + $table->string('email')->primary(); + $table->string('token'); + $table->timestamp('created_at')->nullable(); + }); + + Schema::create('sessions', function (Blueprint $table) { + $table->string('id')->primary(); + $table->foreignId('user_id')->nullable()->index(); + $table->string('ip_address', 45)->nullable(); + $table->text('user_agent')->nullable(); + $table->longText('payload'); + $table->integer('last_activity')->index(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('users'); + Schema::dropIfExists('password_reset_tokens'); + Schema::dropIfExists('sessions'); + } +}; diff --git a/database/migrations/0001_01_01_000001_create_cache_table.php b/database/migrations/0001_01_01_000001_create_cache_table.php new file mode 100644 index 0000000..06dc7a5 --- /dev/null +++ b/database/migrations/0001_01_01_000001_create_cache_table.php @@ -0,0 +1,35 @@ +string('key')->primary(); + $table->mediumText('value'); + $table->bigInteger('expiration')->index(); + }); + + Schema::create('cache_locks', function (Blueprint $table) { + $table->string('key')->primary(); + $table->string('owner'); + $table->bigInteger('expiration')->index(); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('cache'); + Schema::dropIfExists('cache_locks'); + } +}; diff --git a/database/migrations/0001_01_01_000002_create_jobs_table.php b/database/migrations/0001_01_01_000002_create_jobs_table.php new file mode 100644 index 0000000..edac6fe --- /dev/null +++ b/database/migrations/0001_01_01_000002_create_jobs_table.php @@ -0,0 +1,59 @@ +id(); + $table->string('queue')->index(); + $table->longText('payload'); + $table->unsignedSmallInteger('attempts'); + $table->unsignedInteger('reserved_at')->nullable(); + $table->unsignedInteger('available_at'); + $table->unsignedInteger('created_at'); + }); + + Schema::create('job_batches', function (Blueprint $table) { + $table->string('id')->primary(); + $table->string('name'); + $table->integer('total_jobs'); + $table->integer('pending_jobs'); + $table->integer('failed_jobs'); + $table->longText('failed_job_ids'); + $table->mediumText('options')->nullable(); + $table->integer('cancelled_at')->nullable(); + $table->integer('created_at'); + $table->integer('finished_at')->nullable(); + }); + + Schema::create('failed_jobs', function (Blueprint $table) { + $table->id(); + $table->string('uuid')->unique(); + $table->string('connection'); + $table->string('queue'); + $table->longText('payload'); + $table->longText('exception'); + $table->timestamp('failed_at')->useCurrent(); + + $table->index(['connection', 'queue', 'failed_at']); + }); + } + + /** + * Reverse the migrations. + */ + public function down(): void + { + Schema::dropIfExists('jobs'); + Schema::dropIfExists('job_batches'); + Schema::dropIfExists('failed_jobs'); + } +}; diff --git a/database/migrations/2026_05_15_000001_create_customers_table.php b/database/migrations/2026_05_15_000001_create_customers_table.php new file mode 100644 index 0000000..e89ae06 --- /dev/null +++ b/database/migrations/2026_05_15_000001_create_customers_table.php @@ -0,0 +1,34 @@ +id(); + $table->string('name'); + $table->string('domain')->unique(); + $table->unsignedInteger('vmid')->nullable()->unique(); + $table->string('ip_address', 45)->nullable(); + $table->unsignedTinyInteger('cpu')->default(2); + $table->unsignedInteger('ram')->default(2048); + $table->unsignedInteger('disk')->default(32); + $table->enum('status', ['pending', 'active', 'failed'])->default('pending'); + $table->string('provisioning_step')->nullable(); + $table->text('error_message')->nullable(); + $table->timestamps(); + + $table->index('status'); + $table->index('ip_address'); + }); + } + + public function down(): void + { + Schema::dropIfExists('customers'); + } +}; diff --git a/database/migrations/2026_05_15_100000_add_hosting_ui_tables.php b/database/migrations/2026_05_15_100000_add_hosting_ui_tables.php new file mode 100644 index 0000000..827af9e --- /dev/null +++ b/database/migrations/2026_05_15_100000_add_hosting_ui_tables.php @@ -0,0 +1,67 @@ +string('role', 20)->default('customer')->after('email'); + $table->boolean('is_active')->default(true)->after('role'); + }); + + Schema::create('ip_pools', function (Blueprint $table) { + $table->id(); + $table->string('name'); + $table->enum('type', ['private', 'public'])->default('private'); + $table->string('start_ip', 45); + $table->string('end_ip', 45); + $table->string('gateway', 45)->nullable(); + $table->unsignedTinyInteger('cidr')->default(24); + $table->text('description')->nullable(); + $table->boolean('is_active')->default(true); + $table->timestamps(); + + $table->index(['type', 'is_active']); + }); + + Schema::table('customers', function (Blueprint $table) { + $table->foreignId('user_id')->nullable()->after('id')->constrained()->nullOnDelete(); + $table->foreignId('ip_pool_id')->nullable()->after('user_id')->constrained('ip_pools')->nullOnDelete(); + $table->string('public_ip', 45)->nullable()->after('ip_address'); + $table->boolean('behind_traefik')->default(true)->after('public_ip'); + }); + + Schema::create('vm_devices', function (Blueprint $table) { + $table->id(); + $table->foreignId('customer_id')->constrained()->cascadeOnDelete(); + $table->string('type', 32); + $table->string('slot')->nullable(); + $table->json('config'); + $table->unsignedSmallInteger('sort_order')->default(0); + $table->timestamps(); + + $table->index(['customer_id', 'type']); + }); + } + + public function down(): void + { + Schema::dropIfExists('vm_devices'); + + Schema::table('customers', function (Blueprint $table) { + $table->dropForeign(['user_id']); + $table->dropForeign(['ip_pool_id']); + $table->dropColumn(['user_id', 'ip_pool_id', 'public_ip', 'behind_traefik']); + }); + + Schema::dropIfExists('ip_pools'); + + Schema::table('users', function (Blueprint $table) { + $table->dropColumn(['role', 'is_active']); + }); + } +}; diff --git a/database/migrations/2026_05_16_000001_add_vm_management_fields.php b/database/migrations/2026_05_16_000001_add_vm_management_fields.php new file mode 100644 index 0000000..844873f --- /dev/null +++ b/database/migrations/2026_05_16_000001_add_vm_management_fields.php @@ -0,0 +1,40 @@ +string('attached_iso')->nullable()->after('disk'); + $table->string('proxmox_status', 32)->nullable()->after('attached_iso'); + $table->unsignedBigInteger('proxmox_uptime')->nullable()->after('proxmox_status'); + $table->timestamp('proxmox_status_at')->nullable()->after('proxmox_uptime'); + }); + + Schema::create('vm_activity_logs', function (Blueprint $table) { + $table->id(); + $table->foreignId('customer_id')->constrained()->cascadeOnDelete(); + $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); + $table->string('action', 64); + $table->string('status', 20)->default('success'); + $table->text('message')->nullable(); + $table->json('meta')->nullable(); + $table->timestamps(); + + $table->index(['customer_id', 'created_at']); + }); + } + + public function down(): void + { + Schema::dropIfExists('vm_activity_logs'); + + Schema::table('customers', function (Blueprint $table) { + $table->dropColumn(['attached_iso', 'proxmox_status', 'proxmox_uptime', 'proxmox_status_at']); + }); + } +}; diff --git a/database/migrations/2026_05_17_000001_add_whmcs_vmid_lifecycle_tables.php b/database/migrations/2026_05_17_000001_add_whmcs_vmid_lifecycle_tables.php new file mode 100644 index 0000000..a103e81 --- /dev/null +++ b/database/migrations/2026_05_17_000001_add_whmcs_vmid_lifecycle_tables.php @@ -0,0 +1,92 @@ +id(); + $table->string('slug')->unique(); + $table->string('name'); + $table->unsignedTinyInteger('cpu'); + $table->unsignedInteger('ram'); + $table->unsignedInteger('disk'); + $table->unsignedTinyInteger('max_backups')->default(4); + $table->boolean('allow_public_ip')->default(false); + $table->boolean('allow_iso_upload')->default(true); + $table->boolean('is_active')->default(true); + $table->unsignedInteger('whmcs_product_id')->nullable()->index(); + $table->timestamps(); + }); + + Schema::create('vmid_reservations', function (Blueprint $table) { + $table->id(); + $table->unsignedInteger('vmid')->unique(); + $table->foreignId('customer_id')->nullable()->constrained()->nullOnDelete(); + $table->enum('status', ['reserved', 'active', 'pending_release', 'released'])->default('reserved'); + $table->timestamp('release_at')->nullable(); + $table->timestamp('released_at')->nullable(); + $table->timestamps(); + + $table->index(['status', 'release_at']); + }); + + Schema::create('whmcs_services', function (Blueprint $table) { + $table->id(); + $table->unsignedInteger('whmcs_service_id')->unique(); + $table->unsignedInteger('whmcs_client_id')->index(); + $table->unsignedInteger('whmcs_order_id')->nullable(); + $table->foreignId('customer_id')->nullable()->constrained()->nullOnDelete(); + $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); + $table->foreignId('hosting_plan_id')->nullable()->constrained()->nullOnDelete(); + $table->string('status', 32)->default('pending'); + $table->json('config')->nullable(); + $table->timestamps(); + }); + + Schema::create('customer_iso_uploads', function (Blueprint $table) { + $table->id(); + $table->foreignId('user_id')->constrained()->cascadeOnDelete(); + $table->string('filename'); + $table->string('volid'); + $table->unsignedBigInteger('size_bytes'); + $table->timestamp('expires_at'); + $table->timestamps(); + + $table->index(['user_id', 'expires_at']); + }); + + Schema::table('users', function (Blueprint $table) { + $table->unsignedInteger('whmcs_client_id')->nullable()->unique()->after('id'); + $table->boolean('two_factor_required')->default(false)->after('is_active'); + }); + + Schema::table('customers', function (Blueprint $table) { + $table->foreignId('hosting_plan_id')->nullable()->after('user_id')->constrained()->nullOnDelete(); + $table->foreignId('whmcs_service_id')->nullable()->after('hosting_plan_id')->constrained('whmcs_services')->nullOnDelete(); + $table->string('provision_mode', 20)->default('template')->after('behind_traefik'); + }); + } + + public function down(): void + { + Schema::table('customers', function (Blueprint $table) { + $table->dropForeign(['hosting_plan_id']); + $table->dropForeign(['whmcs_service_id']); + $table->dropColumn(['hosting_plan_id', 'whmcs_service_id', 'provision_mode']); + }); + + Schema::table('users', function (Blueprint $table) { + $table->dropColumn(['whmcs_client_id', 'two_factor_required']); + }); + + Schema::dropIfExists('customer_iso_uploads'); + Schema::dropIfExists('whmcs_services'); + Schema::dropIfExists('vmid_reservations'); + Schema::dropIfExists('hosting_plans'); + } +}; diff --git a/database/migrations/2026_05_18_000001_add_platform_features_tables.php b/database/migrations/2026_05_18_000001_add_platform_features_tables.php new file mode 100644 index 0000000..1331a3f --- /dev/null +++ b/database/migrations/2026_05_18_000001_add_platform_features_tables.php @@ -0,0 +1,95 @@ +text('two_factor_secret')->nullable()->after('password'); + $table->text('two_factor_recovery_codes')->nullable()->after('two_factor_secret'); + $table->timestamp('two_factor_confirmed_at')->nullable()->after('two_factor_recovery_codes'); + }); + + Schema::create('vm_templates', function (Blueprint $table) { + $table->id(); + $table->string('slug')->unique(); + $table->string('name'); + $table->unsignedInteger('proxmox_template_vmid'); + $table->string('os_family', 32)->nullable(); + $table->boolean('is_active')->default(true); + $table->timestamps(); + }); + + Schema::create('vm_snapshots', function (Blueprint $table) { + $table->id(); + $table->foreignId('customer_id')->constrained()->cascadeOnDelete(); + $table->string('name'); + $table->string('proxmox_snapshot_id'); + $table->boolean('auto_created')->default(false); + $table->timestamp('expires_at')->nullable(); + $table->timestamps(); + $table->index(['customer_id', 'expires_at']); + }); + + Schema::create('vm_backups', function (Blueprint $table) { + $table->id(); + $table->foreignId('customer_id')->constrained()->cascadeOnDelete(); + $table->foreignId('user_id')->nullable()->constrained()->nullOnDelete(); + $table->string('storage', 64); + $table->string('volume_id')->nullable(); + $table->string('status', 32)->default('running'); + $table->unsignedBigInteger('size_bytes')->nullable(); + $table->timestamp('completed_at')->nullable(); + $table->timestamps(); + $table->index(['customer_id', 'status']); + }); + + Schema::create('vm_firewall_rules', function (Blueprint $table) { + $table->id(); + $table->foreignId('customer_id')->constrained()->cascadeOnDelete(); + $table->string('direction', 8)->default('in'); + $table->string('action', 8)->default('ACCEPT'); + $table->string('protocol', 8)->default('tcp'); + $table->string('port')->nullable(); + $table->string('source')->nullable(); + $table->boolean('is_active')->default(true); + $table->unsignedSmallInteger('sort_order')->default(0); + $table->timestamps(); + }); + + Schema::create('vm_metrics', function (Blueprint $table) { + $table->id(); + $table->foreignId('customer_id')->constrained()->cascadeOnDelete(); + $table->float('cpu')->default(0); + $table->unsignedBigInteger('mem')->default(0); + $table->unsignedBigInteger('maxmem')->default(0); + $table->unsignedBigInteger('disk')->default(0); + $table->unsignedBigInteger('maxdisk')->default(0); + $table->timestamp('recorded_at'); + $table->index(['customer_id', 'recorded_at']); + }); + + Schema::create('system_settings', function (Blueprint $table) { + $table->string('key')->primary(); + $table->text('value')->nullable(); + $table->timestamps(); + }); + } + + public function down(): void + { + Schema::dropIfExists('system_settings'); + Schema::dropIfExists('vm_metrics'); + Schema::dropIfExists('vm_firewall_rules'); + Schema::dropIfExists('vm_backups'); + Schema::dropIfExists('vm_snapshots'); + Schema::dropIfExists('vm_templates'); + Schema::table('users', function (Blueprint $table) { + $table->dropColumn(['two_factor_secret', 'two_factor_recovery_codes', 'two_factor_confirmed_at']); + }); + } +}; diff --git a/database/seeders/DatabaseSeeder.php b/database/seeders/DatabaseSeeder.php new file mode 100644 index 0000000..806e695 --- /dev/null +++ b/database/seeders/DatabaseSeeder.php @@ -0,0 +1,16 @@ +call(HostingSeeder::class); + } +} diff --git a/database/seeders/HostingSeeder.php b/database/seeders/HostingSeeder.php new file mode 100644 index 0000000..3a0878d --- /dev/null +++ b/database/seeders/HostingSeeder.php @@ -0,0 +1,70 @@ +updateOrCreate( + ['email' => 'admin@hexahost.local'], + [ + 'name' => 'Administrator', + 'password' => Hash::make('admin1234'), + 'role' => UserRole::Admin, + 'is_active' => true, + ], + ); + + $plans = [ + ['slug' => 'small', 'name' => 'Small', 'cpu' => 2, 'ram' => 4096, 'disk' => 40], + ['slug' => 'medium', 'name' => 'Medium', 'cpu' => 4, 'ram' => 8192, 'disk' => 80], + ['slug' => 'large', 'name' => 'Large', 'cpu' => 8, 'ram' => 16384, 'disk' => 160], + ]; + + foreach ($plans as $plan) { + HostingPlan::query()->updateOrCreate( + ['slug' => $plan['slug']], + [ + ...$plan, + 'max_backups' => (int) config('hosting.backups.max_per_customer', 4), + 'allow_public_ip' => true, + 'allow_iso_upload' => true, + 'is_active' => true, + ], + ); + } + + IpPool::query()->updateOrCreate( + ['name' => 'Privat 10.32.0.0/24', 'type' => IpPoolType::Private], + [ + 'start_ip' => config('hosting.network.ip_pool_start', '10.32.0.10'), + 'end_ip' => config('hosting.network.ip_pool_end', '10.32.0.254'), + 'gateway' => config('hosting.network.gateway', '10.32.0.1'), + 'cidr' => (int) config('hosting.network.cidr', 24), + 'description' => 'Internes VM-Netz (Hyperion)', + 'is_active' => true, + ], + ); + + IpPool::query()->updateOrCreate( + ['name' => 'Öffentlich 185.45.149.x', 'type' => IpPoolType::Public], + [ + 'start_ip' => config('hosting.public_network.ip_pool_start', '185.45.149.246'), + 'end_ip' => config('hosting.public_network.ip_pool_end', '185.45.149.252'), + 'gateway' => config('hosting.public_network.gateway', '185.45.149.241'), + 'cidr' => (int) config('hosting.public_network.cidr', 28), + 'description' => 'Öffentliche IPs /28', + 'is_active' => true, + ], + ); + } +} diff --git a/package-lock.json b/package-lock.json new file mode 100644 index 0000000..4d478a4 --- /dev/null +++ b/package-lock.json @@ -0,0 +1,1614 @@ +{ + "name": "Traefik-Tool", + "lockfileVersion": 3, + "requires": true, + "packages": { + "": { + "devDependencies": { + "@tailwindcss/vite": "^4.0.0", + "concurrently": "^9.0.1", + "laravel-vite-plugin": "^3.1", + "tailwindcss": "^4.0.0", + "vite": "^8.0.0" + } + }, + "node_modules/@emnapi/core": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/core/-/core-1.10.0.tgz", + "integrity": "sha512-yq6OkJ4p82CAfPl0u9mQebQHKPJkY7WrIuk205cTYnYe+k2Z8YBh11FrbRG/H6ihirqcacOgl2BIO8oyMQLeXw==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/wasi-threads": "1.2.1", + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/runtime": { + "version": "1.10.0", + "resolved": "https://registry.npmjs.org/@emnapi/runtime/-/runtime-1.10.0.tgz", + "integrity": "sha512-ewvYlk86xUoGI0zQRNq/mC+16R1QeDlKQy21Ki3oSYXNgLb45GV1P6A0M+/s6nyCuNDqe5VpaY84BzXGwVbwFA==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@emnapi/wasi-threads": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/@emnapi/wasi-threads/-/wasi-threads-1.2.1.tgz", + "integrity": "sha512-uTII7OYF+/Mes/MrcIOYp5yOtSMLBWSIoLPpcgwipoiKbli6k322tcoFsxoIIxPDqW01SQGAgko4EzZi2BNv2w==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/@jridgewell/gen-mapping": { + "version": "0.3.13", + "resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.13.tgz", + "integrity": "sha512-2kkt/7niJ6MgEPxF0bYdQ6etZaA+fQvDcLKckhy1yIQOzaoKjBBjSj63/aLVjYE3qhRt5dvM+uUyfCg6UKCBbA==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.0", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/remapping": { + "version": "2.3.5", + "resolved": "https://registry.npmjs.org/@jridgewell/remapping/-/remapping-2.3.5.tgz", + "integrity": "sha512-LI9u/+laYG4Ds1TDKSJW2YPrIlcVYOwi2fUC6xB43lueCjgxV4lffOCZCtYFiH6TNOX+tQKXx97T4IKHbhyHEQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/gen-mapping": "^0.3.5", + "@jridgewell/trace-mapping": "^0.3.24" + } + }, + "node_modules/@jridgewell/resolve-uri": { + "version": "3.1.2", + "resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.2.tgz", + "integrity": "sha512-bRISgCIjP20/tbWSPWMEi54QVPRZExkuD9lJL+UIxUKtwVJA8wW1Trb1jMs1RFXo1CBTNZ/5hpC9QvmKWdopKw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6.0.0" + } + }, + "node_modules/@jridgewell/sourcemap-codec": { + "version": "1.5.5", + "resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.5.5.tgz", + "integrity": "sha512-cYQ9310grqxueWbl+WuIUIaiUaDcj7WOq5fVhEljNVgRfOUhY9fy2zTvfoqWsnebh8Sl70VScFbICvJnLKB0Og==", + "dev": true, + "license": "MIT" + }, + "node_modules/@jridgewell/trace-mapping": { + "version": "0.3.31", + "resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.31.tgz", + "integrity": "sha512-zzNR+SdQSDJzc8joaeP8QQoCQr8NuYx2dIIytl1QeBEZHJ9uW6hebsrYgbz8hJwUQao3TWCMtmfV8Nu1twOLAw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/resolve-uri": "^3.1.0", + "@jridgewell/sourcemap-codec": "^1.4.14" + } + }, + "node_modules/@napi-rs/wasm-runtime": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/@napi-rs/wasm-runtime/-/wasm-runtime-1.1.4.tgz", + "integrity": "sha512-3NQNNgA1YSlJb/kMH1ildASP9HW7/7kYnRI2szWJaofaS1hWmbGI4H+d3+22aGzXXN9IJ+n+GiFVcGipJP18ow==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@tybys/wasm-util": "^0.10.1" + }, + "funding": { + "type": "github", + "url": "https://github.com/sponsors/Brooooooklyn" + }, + "peerDependencies": { + "@emnapi/core": "^1.7.1", + "@emnapi/runtime": "^1.7.1" + } + }, + "node_modules/@oxc-project/types": { + "version": "0.130.0", + "resolved": "https://registry.npmjs.org/@oxc-project/types/-/types-0.130.0.tgz", + "integrity": "sha512-ibD2usx9JRu7f5pu2tMKMI4cpA4NgXJQoYRP4pQ7Pxmn1l6k/53qWtQWZayhYy3X4QZkt90Ot+mJEaeXouio6Q==", + "dev": true, + "license": "MIT", + "funding": { + "url": "https://github.com/sponsors/Boshen" + } + }, + "node_modules/@rolldown/binding-android-arm64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-android-arm64/-/binding-android-arm64-1.0.1.tgz", + "integrity": "sha512-fJI3I0r3C3Oj/zdBCpaCmBRZYf07xpaq4yCfDDoSFm+beWNzbIl26puW8RraUdugoJw/95zerNOn6jasAhzSmg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-arm64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-arm64/-/binding-darwin-arm64-1.0.1.tgz", + "integrity": "sha512-cKnAhWEsV7TPcA/5EAteDp6KcJZBQ2G+BqE7zayMMi7kMvwRsbv7WT9aOnn0WNl4SKEIf43vjS31iUPu80nzXg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-darwin-x64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-darwin-x64/-/binding-darwin-x64-1.0.1.tgz", + "integrity": "sha512-YKrVwQjIRBPo+5G/u03wGjbdy4q7pyzCe93DK9VJ7zkVmeg8LJ7GbgsiHWdR4xSoe4CAXRD7Bcjgbtr64bkXNg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-freebsd-x64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-freebsd-x64/-/binding-freebsd-x64-1.0.1.tgz", + "integrity": "sha512-z/oBsREo46SsFqBwYtFe0kpJeBijAT48O/WXLI4suiCLBkr03RTtTJMCzSdDd2znlh8VJizL09XVkQgk8IZonw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm-gnueabihf": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm-gnueabihf/-/binding-linux-arm-gnueabihf-1.0.1.tgz", + "integrity": "sha512-ik8q7GM11zxvYxFc2PeDcT6TBvhCQMaUxfph/M5l9sKuTs/Sjg3L+Byw0F7w0ZVLBZmx30P+gG0ECzzN+MFcmQ==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-gnu/-/binding-linux-arm64-gnu-1.0.1.tgz", + "integrity": "sha512-QoSx2EkyrrdZ6kcyE8stqZ62t0Yra8Fs5ia9lOxJrh6TMQJK7gQKmscdTHf7pOXKREKrVwOtJcQG3qVSfc866A==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-arm64-musl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-arm64-musl/-/binding-linux-arm64-musl-1.0.1.tgz", + "integrity": "sha512-uwNwFpwKeNiZawfAWBgg0VIztPTV3ihhh1vV334h9ivnNLorxnQMU6Fz8wG1Zb4Qh9LC1/MkcyT3YlDXG3Rsgg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-ppc64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-ppc64-gnu/-/binding-linux-ppc64-gnu-1.0.1.tgz", + "integrity": "sha512-zY1bul7OWr7DFBiJ++wofXvnr8B45ce3QsQUhKrIhXsygAh7bTkwyeM1bi1a2g5C/yC/N8TZyGDEoMfm/l9mpg==", + "cpu": [ + "ppc64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-s390x-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-s390x-gnu/-/binding-linux-s390x-gnu-1.0.1.tgz", + "integrity": "sha512-0frlsT/f4Ft6I7SMESTKnF3cZsdicQn1dCMkF/jT9wDLE+gGoiQfv1nmT9e+s7s/fekvvy6tZM2jHvI2tkbJDQ==", + "cpu": [ + "s390x" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-gnu": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-gnu/-/binding-linux-x64-gnu-1.0.1.tgz", + "integrity": "sha512-XABVmGp9Tg0WspTVvwduTc4fpqy6JnAUrSQe6OuyqD/03nI7r0O9OWUkMIwFrjKAIqolvqoA4ZrJppgwE0Gxmw==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-linux-x64-musl": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-linux-x64-musl/-/binding-linux-x64-musl-1.0.1.tgz", + "integrity": "sha512-bV4fzswuzVcKD90o/VM6QqKxnxlDq0g2BISDLNVmxrnhpv1DDbyPhCIjYfvzYLV+MvkKKnQt2Q6AO86SEBULUQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-openharmony-arm64": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-openharmony-arm64/-/binding-openharmony-arm64-1.0.1.tgz", + "integrity": "sha512-/Mh0Zhq3OP7fVs0kcQHZP6lZEthMGTaSf8UBQYSFEZDWGXXlEC+nJ6EqenaK2t4LBXMe3A+K/G2BVXXdtOr4PQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "openharmony" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-wasm32-wasi": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-wasm32-wasi/-/binding-wasm32-wasi-1.0.1.tgz", + "integrity": "sha512-+1xc9X45l8ufsBAm6Gjvx2qDRIY9lTVt0cgWNcJ+1gdhXvkbxePA60yRTwSTuXL09CMhyJmjpV7E3NoyxbqFQQ==", + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "1.10.0", + "@emnapi/runtime": "1.10.0", + "@napi-rs/wasm-runtime": "^1.1.4" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-arm64-msvc": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-arm64-msvc/-/binding-win32-arm64-msvc-1.0.1.tgz", + "integrity": "sha512-1D+UqZdfnuR+Jy1GgMJwi85bD40H21uNmOPRWQhw4oRSuolZ/B5rixZ45DK2KXOTCvmVCecauWgEhbw8bI7tOw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/binding-win32-x64-msvc": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/binding-win32-x64-msvc/-/binding-win32-x64-msvc-1.0.1.tgz", + "integrity": "sha512-INAycaWuhlOK3wk4mRHGsdgwYWmd9cChdPdE9bwWmy6rn9VqVNYNFGhOdXrofXUxwHIncSiPNb8tNm8knDVIeQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": "^20.19.0 || >=22.12.0" + } + }, + "node_modules/@rolldown/pluginutils": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/@rolldown/pluginutils/-/pluginutils-1.0.1.tgz", + "integrity": "sha512-2j9bGt5Jh8hj+vPtgzPtl72j0yRxHAyumoo6TNfAjsLB04UtpSvPbPcDcBMxz7n+9CYB0c1GxQFxYRg2jimqGw==", + "dev": true, + "license": "MIT" + }, + "node_modules/@tailwindcss/node": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/node/-/node-4.3.0.tgz", + "integrity": "sha512-aFb4gUhFOgdh9AXo4IzBEOzBkkAxm9VigwDJnMIYv3lcfXCJVesNfbEaBl4BNgVRyid92AmdviqwBUBRKSeY3g==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/remapping": "^2.3.5", + "enhanced-resolve": "^5.21.0", + "jiti": "^2.6.1", + "lightningcss": "1.32.0", + "magic-string": "^0.30.21", + "source-map-js": "^1.2.1", + "tailwindcss": "4.3.0" + } + }, + "node_modules/@tailwindcss/oxide": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide/-/oxide-4.3.0.tgz", + "integrity": "sha512-F7HZGBeN9I0/AuuJS5PwcD8xayx5ri5GhjYUDBEVYUkexyA/giwbDNjRVrxSezE3T250OU2K/wp/ltWx3UOefg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 20" + }, + "optionalDependencies": { + "@tailwindcss/oxide-android-arm64": "4.3.0", + "@tailwindcss/oxide-darwin-arm64": "4.3.0", + "@tailwindcss/oxide-darwin-x64": "4.3.0", + "@tailwindcss/oxide-freebsd-x64": "4.3.0", + "@tailwindcss/oxide-linux-arm-gnueabihf": "4.3.0", + "@tailwindcss/oxide-linux-arm64-gnu": "4.3.0", + "@tailwindcss/oxide-linux-arm64-musl": "4.3.0", + "@tailwindcss/oxide-linux-x64-gnu": "4.3.0", + "@tailwindcss/oxide-linux-x64-musl": "4.3.0", + "@tailwindcss/oxide-wasm32-wasi": "4.3.0", + "@tailwindcss/oxide-win32-arm64-msvc": "4.3.0", + "@tailwindcss/oxide-win32-x64-msvc": "4.3.0" + } + }, + "node_modules/@tailwindcss/oxide-android-arm64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-android-arm64/-/oxide-android-arm64-4.3.0.tgz", + "integrity": "sha512-TJPiq67tKlLuObP6RkwvVGDoxCMBVtDgKkLfa/uyj7/FyxvQwHS+UOnVrXXgbEsfUaMgiVvC4KbJnRr26ho4Ng==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-arm64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-arm64/-/oxide-darwin-arm64-4.3.0.tgz", + "integrity": "sha512-oMN/WZRb+SO37BmUElEgeEWuU8E/HXRkiODxJxLe1UTHVXLrdVSgfaJV7pSlhRGMSOiXLuxTIjfsF3wYvz8cgQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-darwin-x64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-darwin-x64/-/oxide-darwin-x64-4.3.0.tgz", + "integrity": "sha512-N6CUmu4a6bKVADfw77p+iw6Yd9Q3OBhe0veaDX+QazfuVYlQsHfDgxBrsjQ/IW+zywL8mTrNd0SdJT/zgtvMdA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-freebsd-x64": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-freebsd-x64/-/oxide-freebsd-x64-4.3.0.tgz", + "integrity": "sha512-zDL5hBkQdH5C6MpqbK3gQAgP80tsMwSI26vjOzjJtNCMUo0lFgOItzHKBIupOZNQxt3ouPH7RPhvNhiTfCe5CQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm-gnueabihf": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm-gnueabihf/-/oxide-linux-arm-gnueabihf-4.3.0.tgz", + "integrity": "sha512-R06HdNi7A7OEoMsf6d4tjZ71RCWnZQPHj2mnotSFURjNLdBC+cIgXQ7l81CqeoiQftjf6OOblxXMInMgN2VzMA==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-gnu": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-gnu/-/oxide-linux-arm64-gnu-4.3.0.tgz", + "integrity": "sha512-qTJHELX8jetjhRQHCLilkVLmybpzNQAtaI/gaoVoidn/ufbNDbAo8KlK2J+yPoc8wQxvDxCmh/5lr8nC1+lTbg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-arm64-musl": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-arm64-musl/-/oxide-linux-arm64-musl-4.3.0.tgz", + "integrity": "sha512-Z6sukiQsngnWO+l39X4pPbiWT81IC+PLKF+PHxIlyZbGNb9MODfYlXEVlFvej5BOZInWX01kVyzeLvHsXhfczQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-gnu": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-gnu/-/oxide-linux-x64-gnu-4.3.0.tgz", + "integrity": "sha512-DRNdQRpSGzRGfARVuVkxvM8Q12nh19l4BF/G7zGA1oe+9wcC6saFBHTISrpIcKzhiXtSrlSrluCfvMuledoCTQ==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-linux-x64-musl": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-linux-x64-musl/-/oxide-linux-x64-musl-4.3.0.tgz", + "integrity": "sha512-Z0IADbDo8bh6I7h2IQMx601AdXBLfFpEdUotft86evd/8ZPflZe9COPO8Q1vw+pfLWIUo9zN/JGZvwuAJqduqg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-wasm32-wasi": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-wasm32-wasi/-/oxide-wasm32-wasi-4.3.0.tgz", + "integrity": "sha512-HNZGOUxEmElksYR7S6sC5jTeNGpobAsy9u7Gu0AskJ8/20FR9GqebUyB+HBcU/ax6BHuiuJi+Oda4B+YX6H1yA==", + "bundleDependencies": [ + "@napi-rs/wasm-runtime", + "@emnapi/core", + "@emnapi/runtime", + "@tybys/wasm-util", + "@emnapi/wasi-threads", + "tslib" + ], + "cpu": [ + "wasm32" + ], + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "@emnapi/core": "^1.10.0", + "@emnapi/runtime": "^1.10.0", + "@emnapi/wasi-threads": "^1.2.1", + "@napi-rs/wasm-runtime": "^1.1.4", + "@tybys/wasm-util": "^0.10.1", + "tslib": "^2.8.1" + }, + "engines": { + "node": ">=14.0.0" + } + }, + "node_modules/@tailwindcss/oxide-win32-arm64-msvc": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-arm64-msvc/-/oxide-win32-arm64-msvc-4.3.0.tgz", + "integrity": "sha512-Pe+RPVTi1T+qymuuRpcdvwSVZjnll/f7n8gBxMMh3xLTctMDKqpdfGimbMyioqtLhUYZxdJ9wGNhV7MKHvgZsQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/oxide-win32-x64-msvc": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/oxide-win32-x64-msvc/-/oxide-win32-x64-msvc-4.3.0.tgz", + "integrity": "sha512-Mvrf2kXW/yeW/OTezZlCGOirXRcUuLIBx/5Y12BaPM7wJoryG6dfS/NJL8aBPqtTEx/Vm4T4vKzFUcKDT+TKUA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MIT", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 20" + } + }, + "node_modules/@tailwindcss/vite": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/@tailwindcss/vite/-/vite-4.3.0.tgz", + "integrity": "sha512-t6J3OrB5Fc0ExuhohouH0fWUGMYL6PTLhW+E7zIk/pdbnJARZDCwjBznFnkh5ynRnIRSI4YjtTH0t6USjJISrw==", + "dev": true, + "license": "MIT", + "dependencies": { + "@tailwindcss/node": "4.3.0", + "@tailwindcss/oxide": "4.3.0", + "tailwindcss": "4.3.0" + }, + "peerDependencies": { + "vite": "^5.2.0 || ^6 || ^7 || ^8" + } + }, + "node_modules/@tybys/wasm-util": { + "version": "0.10.2", + "resolved": "https://registry.npmjs.org/@tybys/wasm-util/-/wasm-util-0.10.2.tgz", + "integrity": "sha512-RoBvJ2X0wuKlWFIjrwffGw1IqZHKQqzIchKaadZZfnNpsAYp2mM0h36JtPCjNDAHGgYez/15uMBpfGwchhiMgg==", + "dev": true, + "license": "MIT", + "optional": true, + "dependencies": { + "tslib": "^2.4.0" + } + }, + "node_modules/ansi-regex": { + "version": "5.0.1", + "resolved": "https://registry.npmjs.org/ansi-regex/-/ansi-regex-5.0.1.tgz", + "integrity": "sha512-quJQXlTSUGL2LH9SUXo8VwsY4soanhgo6LNSm84E1LBcE8s3O0wpdiRzyR9z/ZZJMlMWv37qOOb9pdJlMUEKFQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/ansi-styles": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/ansi-styles/-/ansi-styles-4.3.0.tgz", + "integrity": "sha512-zbB9rCJAT1rbjiVDb2hqKFHNYLxgtk8NURxZ3IZwD3F6NtxbXZQCnnSi1Lkx+IDohdPlFp222wVALIheZJQSEg==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-convert": "^2.0.1" + }, + "engines": { + "node": ">=8" + }, + "funding": { + "url": "https://github.com/chalk/ansi-styles?sponsor=1" + } + }, + "node_modules/chalk": { + "version": "4.1.2", + "resolved": "https://registry.npmjs.org/chalk/-/chalk-4.1.2.tgz", + "integrity": "sha512-oKnbhFyRIXpUuez8iBMmyEa4nbj4IOQyuhc/wy9kY7/WVPcwIO9VA668Pu8RkO7+0G76SLROeyw9CpQ061i4mA==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.1.0", + "supports-color": "^7.1.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/chalk?sponsor=1" + } + }, + "node_modules/chalk/node_modules/supports-color": { + "version": "7.2.0", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-7.2.0.tgz", + "integrity": "sha512-qpCAvRl9stuOHveKsn7HncJRvv501qIacKzQlO/+Lwxc9+0q2wLyv4Dfvt80/DPn2pqOBsJdDiogXGR9+OvwRw==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/cliui": { + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/cliui/-/cliui-8.0.1.tgz", + "integrity": "sha512-BSeNnyus75C4//NQ9gQt1/csTXyo/8Sb+afLAkzAptFuMsod9HFokGNudZpi/oQV73hnVK+sR+5PVRMd+Dr7YQ==", + "dev": true, + "license": "ISC", + "dependencies": { + "string-width": "^4.2.0", + "strip-ansi": "^6.0.1", + "wrap-ansi": "^7.0.0" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/color-convert": { + "version": "2.0.1", + "resolved": "https://registry.npmjs.org/color-convert/-/color-convert-2.0.1.tgz", + "integrity": "sha512-RRECPsj7iu/xb5oKYcsFHSppFNnsj/52OVTRKb4zP5onXwVF3zVmmToNcOfGC+CRDpfK/U584fMg38ZHCaElKQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "color-name": "~1.1.4" + }, + "engines": { + "node": ">=7.0.0" + } + }, + "node_modules/color-name": { + "version": "1.1.4", + "resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.4.tgz", + "integrity": "sha512-dOy+3AuW3a2wNbZHIuMZpTcgjGuLU/uBL/ubcZF9OXbDo8ff4O8yVp5Bf0efS8uEoYo5q4Fx7dY9OgQGXgAsQA==", + "dev": true, + "license": "MIT" + }, + "node_modules/concurrently": { + "version": "9.2.1", + "resolved": "https://registry.npmjs.org/concurrently/-/concurrently-9.2.1.tgz", + "integrity": "sha512-fsfrO0MxV64Znoy8/l1vVIjjHa29SZyyqPgQBwhiDcaW8wJc2W3XWVOGx4M3oJBnv/zdUZIIp1gDeS98GzP8Ng==", + "dev": true, + "license": "MIT", + "dependencies": { + "chalk": "4.1.2", + "rxjs": "7.8.2", + "shell-quote": "1.8.3", + "supports-color": "8.1.1", + "tree-kill": "1.2.2", + "yargs": "17.7.2" + }, + "bin": { + "conc": "dist/bin/concurrently.js", + "concurrently": "dist/bin/concurrently.js" + }, + "engines": { + "node": ">=18" + }, + "funding": { + "url": "https://github.com/open-cli-tools/concurrently?sponsor=1" + } + }, + "node_modules/detect-libc": { + "version": "2.1.2", + "resolved": "https://registry.npmjs.org/detect-libc/-/detect-libc-2.1.2.tgz", + "integrity": "sha512-Btj2BOOO83o3WyH59e8MgXsxEQVcarkUOpEYrubB0urwnN10yQ364rsiByU11nZlqWYZm05i/of7io4mzihBtQ==", + "dev": true, + "license": "Apache-2.0", + "engines": { + "node": ">=8" + } + }, + "node_modules/emoji-regex": { + "version": "8.0.0", + "resolved": "https://registry.npmjs.org/emoji-regex/-/emoji-regex-8.0.0.tgz", + "integrity": "sha512-MSjYzcWNOA0ewAHpz0MxpYFvwg6yjy1NG3xteoqz644VCo/RPgnr1/GGt+ic3iJTzQ8Eu3TdM14SawnVUmGE6A==", + "dev": true, + "license": "MIT" + }, + "node_modules/enhanced-resolve": { + "version": "5.21.3", + "resolved": "https://registry.npmjs.org/enhanced-resolve/-/enhanced-resolve-5.21.3.tgz", + "integrity": "sha512-QyL119InA+XXEkNLNTPCXPugSvOfhwv0JOlGNzvxs0hZaiHLNvXSpudUWsOlsXGWJh8G6ckCScEkVHfX3kw/2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "graceful-fs": "^4.2.4", + "tapable": "^2.3.3" + }, + "engines": { + "node": ">=10.13.0" + } + }, + "node_modules/escalade": { + "version": "3.2.0", + "resolved": "https://registry.npmjs.org/escalade/-/escalade-3.2.0.tgz", + "integrity": "sha512-WUj2qlxaQtO4g6Pq5c29GTcWGDyd8itL8zTlipgECz3JesAiiOKotd8JU6otB3PACgG6xkJUyVhboMS+bje/jA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + } + }, + "node_modules/fdir": { + "version": "6.5.0", + "resolved": "https://registry.npmjs.org/fdir/-/fdir-6.5.0.tgz", + "integrity": "sha512-tIbYtZbucOs0BRGqPJkshJUYdL+SDH7dVM8gjy+ERp3WAUjLEFJE+02kanyHtwjWOnwrKYBiwAmM0p4kLJAnXg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12.0.0" + }, + "peerDependencies": { + "picomatch": "^3 || ^4" + }, + "peerDependenciesMeta": { + "picomatch": { + "optional": true + } + } + }, + "node_modules/fsevents": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/fsevents/-/fsevents-2.3.3.tgz", + "integrity": "sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==", + "dev": true, + "hasInstallScript": true, + "license": "MIT", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": "^8.16.0 || ^10.6.0 || >=11.0.0" + } + }, + "node_modules/get-caller-file": { + "version": "2.0.5", + "resolved": "https://registry.npmjs.org/get-caller-file/-/get-caller-file-2.0.5.tgz", + "integrity": "sha512-DyFP3BM/3YHTQOCUL/w0OZHR0lpKeGrxotcHWcqNEdnltqFwXVfhEBQ94eIo34AfQpo0rGki4cyIiftY06h2Fg==", + "dev": true, + "license": "ISC", + "engines": { + "node": "6.* || 8.* || >= 10.*" + } + }, + "node_modules/graceful-fs": { + "version": "4.2.11", + "resolved": "https://registry.npmjs.org/graceful-fs/-/graceful-fs-4.2.11.tgz", + "integrity": "sha512-RbJ5/jmFcNNCcDV5o9eTnBLJ/HszWV0P73bc+Ff4nS/rJj+YaS6IGyiOL0VoBYX+l1Wrl3k63h/KrH+nhJ0XvQ==", + "dev": true, + "license": "ISC" + }, + "node_modules/has-flag": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/has-flag/-/has-flag-4.0.0.tgz", + "integrity": "sha512-EykJT/Q1KjTWctppgIAgfSO0tKVuZUjhgMr17kqTumMl6Afv3EISleU7qZUzoXDFTAHTDC4NOoG/ZxU3EvlMPQ==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/is-fullwidth-code-point": { + "version": "3.0.0", + "resolved": "https://registry.npmjs.org/is-fullwidth-code-point/-/is-fullwidth-code-point-3.0.0.tgz", + "integrity": "sha512-zymm5+u+sCsSWyD9qNaejV3DFvhCKclKdizYaJUuHA83RLjb7nSuGnddCHGv0hk+KY7BMAlsWeK4Ueg6EV6XQg==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8" + } + }, + "node_modules/jiti": { + "version": "2.7.0", + "resolved": "https://registry.npmjs.org/jiti/-/jiti-2.7.0.tgz", + "integrity": "sha512-AC/7JofJvZGrrneWNaEnJeOLUx+JlGt7tNa0wZiRPT4MY1wmfKjt2+6O2p2uz2+skll8OZZmJMNqeke7kKbNgQ==", + "dev": true, + "license": "MIT", + "bin": { + "jiti": "lib/jiti-cli.mjs" + } + }, + "node_modules/laravel-vite-plugin": { + "version": "3.1.0", + "resolved": "https://registry.npmjs.org/laravel-vite-plugin/-/laravel-vite-plugin-3.1.0.tgz", + "integrity": "sha512-Fzocl+X4eQ9jOi0RwdphYRGkUbPJ3ky1pTAST5Ot18cS2gw6d2vldK2eCrlKDVjtibCjCx5qptYDlA0373n7qg==", + "dev": true, + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.0", + "tinyglobby": "^0.2.12", + "vite-plugin-full-reload": "^1.1.0" + }, + "bin": { + "clean-orphaned-assets": "bin/clean.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "peerDependencies": { + "fontaine": "^0.5.0", + "vite": "^8.0.0" + }, + "peerDependenciesMeta": { + "fontaine": { + "optional": true + } + } + }, + "node_modules/lightningcss": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss/-/lightningcss-1.32.0.tgz", + "integrity": "sha512-NXYBzinNrblfraPGyrbPoD19C1h9lfI/1mzgWYvXUTe414Gz/X1FD2XBZSZM7rRTrMA8JL3OtAaGifrIKhQ5yQ==", + "dev": true, + "license": "MPL-2.0", + "dependencies": { + "detect-libc": "^2.0.3" + }, + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + }, + "optionalDependencies": { + "lightningcss-android-arm64": "1.32.0", + "lightningcss-darwin-arm64": "1.32.0", + "lightningcss-darwin-x64": "1.32.0", + "lightningcss-freebsd-x64": "1.32.0", + "lightningcss-linux-arm-gnueabihf": "1.32.0", + "lightningcss-linux-arm64-gnu": "1.32.0", + "lightningcss-linux-arm64-musl": "1.32.0", + "lightningcss-linux-x64-gnu": "1.32.0", + "lightningcss-linux-x64-musl": "1.32.0", + "lightningcss-win32-arm64-msvc": "1.32.0", + "lightningcss-win32-x64-msvc": "1.32.0" + } + }, + "node_modules/lightningcss-android-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-android-arm64/-/lightningcss-android-arm64-1.32.0.tgz", + "integrity": "sha512-YK7/ClTt4kAK0vo6w3X+Pnm0D2cf2vPHbhOXdoNti1Ga0al1P4TBZhwjATvjNwLEBCnKvjJc2jQgHXH0NEwlAg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "android" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-arm64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-arm64/-/lightningcss-darwin-arm64-1.32.0.tgz", + "integrity": "sha512-RzeG9Ju5bag2Bv1/lwlVJvBE3q6TtXskdZLLCyfg5pt+HLz9BqlICO7LZM7VHNTTn/5PRhHFBSjk5lc4cmscPQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-darwin-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-darwin-x64/-/lightningcss-darwin-x64-1.32.0.tgz", + "integrity": "sha512-U+QsBp2m/s2wqpUYT/6wnlagdZbtZdndSmut/NJqlCcMLTWp5muCrID+K5UJ6jqD2BFshejCYXniPDbNh73V8w==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "darwin" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-freebsd-x64": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-freebsd-x64/-/lightningcss-freebsd-x64-1.32.0.tgz", + "integrity": "sha512-JCTigedEksZk3tHTTthnMdVfGf61Fky8Ji2E4YjUTEQX14xiy/lTzXnu1vwiZe3bYe0q+SpsSH/CTeDXK6WHig==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "freebsd" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm-gnueabihf": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm-gnueabihf/-/lightningcss-linux-arm-gnueabihf-1.32.0.tgz", + "integrity": "sha512-x6rnnpRa2GL0zQOkt6rts3YDPzduLpWvwAF6EMhXFVZXD4tPrBkEFqzGowzCsIWsPjqSK+tyNEODUBXeeVHSkw==", + "cpu": [ + "arm" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-gnu/-/lightningcss-linux-arm64-gnu-1.32.0.tgz", + "integrity": "sha512-0nnMyoyOLRJXfbMOilaSRcLH3Jw5z9HDNGfT/gwCPgaDjnx0i8w7vBzFLFR1f6CMLKF8gVbebmkUN3fa/kQJpQ==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-arm64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-arm64-musl/-/lightningcss-linux-arm64-musl-1.32.0.tgz", + "integrity": "sha512-UpQkoenr4UJEzgVIYpI80lDFvRmPVg6oqboNHfoH4CQIfNA+HOrZ7Mo7KZP02dC6LjghPQJeBsvXhJod/wnIBg==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-gnu": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-gnu/-/lightningcss-linux-x64-gnu-1.32.0.tgz", + "integrity": "sha512-V7Qr52IhZmdKPVr+Vtw8o+WLsQJYCTd8loIfpDaMRWGUZfBOYEJeyJIkqGIDMZPwPx24pUMfwSxxI8phr/MbOA==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-linux-x64-musl": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-linux-x64-musl/-/lightningcss-linux-x64-musl-1.32.0.tgz", + "integrity": "sha512-bYcLp+Vb0awsiXg/80uCRezCYHNg1/l3mt0gzHnWV9XP1W5sKa5/TCdGWaR/zBM2PeF/HbsQv/j2URNOiVuxWg==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "linux" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-arm64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-arm64-msvc/-/lightningcss-win32-arm64-msvc-1.32.0.tgz", + "integrity": "sha512-8SbC8BR40pS6baCM8sbtYDSwEVQd4JlFTOlaD3gWGHfThTcABnNDBda6eTZeqbofalIJhFx0qKzgHJmcPTnGdw==", + "cpu": [ + "arm64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/lightningcss-win32-x64-msvc": { + "version": "1.32.0", + "resolved": "https://registry.npmjs.org/lightningcss-win32-x64-msvc/-/lightningcss-win32-x64-msvc-1.32.0.tgz", + "integrity": "sha512-Amq9B/SoZYdDi1kFrojnoqPLxYhQ4Wo5XiL8EVJrVsB8ARoC1PWW6VGtT0WKCemjy8aC+louJnjS7U18x3b06Q==", + "cpu": [ + "x64" + ], + "dev": true, + "license": "MPL-2.0", + "optional": true, + "os": [ + "win32" + ], + "engines": { + "node": ">= 12.0.0" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/parcel" + } + }, + "node_modules/magic-string": { + "version": "0.30.21", + "resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.21.tgz", + "integrity": "sha512-vd2F4YUyEXKGcLHoq+TEyCjxueSeHnFxyyjNp80yg0XV4vUhnDer/lvvlqM/arB5bXQN5K2/3oinyCRyx8T2CQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@jridgewell/sourcemap-codec": "^1.5.5" + } + }, + "node_modules/nanoid": { + "version": "3.3.12", + "resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.12.tgz", + "integrity": "sha512-ZB9RH/39qpq5Vu6Y+NmUaFhQR6pp+M2Xt76XBnEwDaGcVAqhlvxrl3B2bKS5D3NH3QR76v3aSrKaF/Kiy7lEtQ==", + "dev": true, + "funding": [ + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "bin": { + "nanoid": "bin/nanoid.cjs" + }, + "engines": { + "node": "^10 || ^12 || ^13.7 || ^14 || >=15.0.1" + } + }, + "node_modules/picocolors": { + "version": "1.1.1", + "resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.1.1.tgz", + "integrity": "sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==", + "dev": true, + "license": "ISC" + }, + "node_modules/picomatch": { + "version": "4.0.4", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-4.0.4.tgz", + "integrity": "sha512-QP88BAKvMam/3NxH6vj2o21R6MjxZUAd6nlwAS/pnGvN9IVLocLHxGYIzFhg6fUQ+5th6P4dv4eW9jX3DSIj7A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=12" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/postcss": { + "version": "8.5.14", + "resolved": "https://registry.npmjs.org/postcss/-/postcss-8.5.14.tgz", + "integrity": "sha512-SoSL4+OSEtR99LHFZQiJLkT59C5B1amGO1NzTwj7TT1qCUgUO6hxOvzkOYxD+vMrXBM3XJIKzokoERdqQq/Zmg==", + "dev": true, + "funding": [ + { + "type": "opencollective", + "url": "https://opencollective.com/postcss/" + }, + { + "type": "tidelift", + "url": "https://tidelift.com/funding/github/npm/postcss" + }, + { + "type": "github", + "url": "https://github.com/sponsors/ai" + } + ], + "license": "MIT", + "dependencies": { + "nanoid": "^3.3.11", + "picocolors": "^1.1.1", + "source-map-js": "^1.2.1" + }, + "engines": { + "node": "^10 || ^12 || >=14" + } + }, + "node_modules/require-directory": { + "version": "2.1.1", + "resolved": "https://registry.npmjs.org/require-directory/-/require-directory-2.1.1.tgz", + "integrity": "sha512-fGxEI7+wsG9xrvdjsrlmL22OMTTiHRwAMroiEeMgq8gzoLC/PQr7RsRDSTLUg/bZAZtF+TVIkHc6/4RIKrui+Q==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/rolldown": { + "version": "1.0.1", + "resolved": "https://registry.npmjs.org/rolldown/-/rolldown-1.0.1.tgz", + "integrity": "sha512-X0KQHljNnEkWNqqiz9zJrGunh1B0HgOxLXvnFpCOcadzcy5qohZ3tqMEUg00vncoRovXuK3ZqCT9KnnKzoInFQ==", + "dev": true, + "license": "MIT", + "dependencies": { + "@oxc-project/types": "=0.130.0", + "@rolldown/pluginutils": "^1.0.0" + }, + "bin": { + "rolldown": "bin/cli.mjs" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "optionalDependencies": { + "@rolldown/binding-android-arm64": "1.0.1", + "@rolldown/binding-darwin-arm64": "1.0.1", + "@rolldown/binding-darwin-x64": "1.0.1", + "@rolldown/binding-freebsd-x64": "1.0.1", + "@rolldown/binding-linux-arm-gnueabihf": "1.0.1", + "@rolldown/binding-linux-arm64-gnu": "1.0.1", + "@rolldown/binding-linux-arm64-musl": "1.0.1", + "@rolldown/binding-linux-ppc64-gnu": "1.0.1", + "@rolldown/binding-linux-s390x-gnu": "1.0.1", + "@rolldown/binding-linux-x64-gnu": "1.0.1", + "@rolldown/binding-linux-x64-musl": "1.0.1", + "@rolldown/binding-openharmony-arm64": "1.0.1", + "@rolldown/binding-wasm32-wasi": "1.0.1", + "@rolldown/binding-win32-arm64-msvc": "1.0.1", + "@rolldown/binding-win32-x64-msvc": "1.0.1" + } + }, + "node_modules/rxjs": { + "version": "7.8.2", + "resolved": "https://registry.npmjs.org/rxjs/-/rxjs-7.8.2.tgz", + "integrity": "sha512-dhKf903U/PQZY6boNNtAGdWbG85WAbjT/1xYoZIC7FAY0yWapOBQVsVrDl58W86//e1VpMNBtRV4MaXfdMySFA==", + "dev": true, + "license": "Apache-2.0", + "dependencies": { + "tslib": "^2.1.0" + } + }, + "node_modules/shell-quote": { + "version": "1.8.3", + "resolved": "https://registry.npmjs.org/shell-quote/-/shell-quote-1.8.3.tgz", + "integrity": "sha512-ObmnIF4hXNg1BqhnHmgbDETF8dLPCggZWBjkQfhZpbszZnYur5DUljTcCHii5LC3J5E0yeO/1LIMyH+UvHQgyw==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">= 0.4" + }, + "funding": { + "url": "https://github.com/sponsors/ljharb" + } + }, + "node_modules/source-map-js": { + "version": "1.2.1", + "resolved": "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz", + "integrity": "sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==", + "dev": true, + "license": "BSD-3-Clause", + "engines": { + "node": ">=0.10.0" + } + }, + "node_modules/string-width": { + "version": "4.2.3", + "resolved": "https://registry.npmjs.org/string-width/-/string-width-4.2.3.tgz", + "integrity": "sha512-wKyQRQpjJ0sIp62ErSZdGsjMJWsap5oRNihHhu6G7JVO/9jIB6UyevL+tXuOqrng8j/cxKTWyWUwvSTriiZz/g==", + "dev": true, + "license": "MIT", + "dependencies": { + "emoji-regex": "^8.0.0", + "is-fullwidth-code-point": "^3.0.0", + "strip-ansi": "^6.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/strip-ansi": { + "version": "6.0.1", + "resolved": "https://registry.npmjs.org/strip-ansi/-/strip-ansi-6.0.1.tgz", + "integrity": "sha512-Y38VPSHcqkFrCpFnQ9vuSXmquuv5oXOKpGeT6aGrr3o3Gc9AlVa6JBfUSOCnbxGGZF+/0ooI7KrPuUSztUdU5A==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-regex": "^5.0.1" + }, + "engines": { + "node": ">=8" + } + }, + "node_modules/supports-color": { + "version": "8.1.1", + "resolved": "https://registry.npmjs.org/supports-color/-/supports-color-8.1.1.tgz", + "integrity": "sha512-MpUEN2OodtUzxvKQl72cUF7RQ5EiHsGvSsVG0ia9c5RbWGL2CI4C7EpPS8UTBIplnlzZiNuV56w+FuNxy3ty2Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "has-flag": "^4.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/supports-color?sponsor=1" + } + }, + "node_modules/tailwindcss": { + "version": "4.3.0", + "resolved": "https://registry.npmjs.org/tailwindcss/-/tailwindcss-4.3.0.tgz", + "integrity": "sha512-y6nxMGB1nMW9R6k96e5gdIFzcfL/gTJRNaqGes1YvkLnPVXzWgbqFF2yLC0T8G774n24cx3Pe8XrKoniCOAH+Q==", + "dev": true, + "license": "MIT" + }, + "node_modules/tapable": { + "version": "2.3.3", + "resolved": "https://registry.npmjs.org/tapable/-/tapable-2.3.3.tgz", + "integrity": "sha512-uxc/zpqFg6x7C8vOE7lh6Lbda8eEL9zmVm/PLeTPBRhh1xCgdWaQ+J1CUieGpIfm2HdtsUpRv+HshiasBMcc6A==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=6" + }, + "funding": { + "type": "opencollective", + "url": "https://opencollective.com/webpack" + } + }, + "node_modules/tinyglobby": { + "version": "0.2.16", + "resolved": "https://registry.npmjs.org/tinyglobby/-/tinyglobby-0.2.16.tgz", + "integrity": "sha512-pn99VhoACYR8nFHhxqix+uvsbXineAasWm5ojXoN8xEwK5Kd3/TrhNn1wByuD52UxWRLy8pu+kRMniEi6Eq9Zg==", + "dev": true, + "license": "MIT", + "dependencies": { + "fdir": "^6.5.0", + "picomatch": "^4.0.4" + }, + "engines": { + "node": ">=12.0.0" + }, + "funding": { + "url": "https://github.com/sponsors/SuperchupuDev" + } + }, + "node_modules/tree-kill": { + "version": "1.2.2", + "resolved": "https://registry.npmjs.org/tree-kill/-/tree-kill-1.2.2.tgz", + "integrity": "sha512-L0Orpi8qGpRG//Nd+H90vFB+3iHnue1zSSGmNOOCh1GLJ7rUKVwV2HvijphGQS2UmhUZewS9VgvxYIdgr+fG1A==", + "dev": true, + "license": "MIT", + "bin": { + "tree-kill": "cli.js" + } + }, + "node_modules/tslib": { + "version": "2.8.1", + "resolved": "https://registry.npmjs.org/tslib/-/tslib-2.8.1.tgz", + "integrity": "sha512-oJFu94HQb+KVduSUQL7wnpmqnfmLsOA/nAh6b6EH0wCEoK0/mPeXU6c3wKDV83MkOuHPRHtSXKKU99IBazS/2w==", + "dev": true, + "license": "0BSD" + }, + "node_modules/vite": { + "version": "8.0.13", + "resolved": "https://registry.npmjs.org/vite/-/vite-8.0.13.tgz", + "integrity": "sha512-MFtjBYgzmSxmgA4RAfjIyXWpGe1oALnjgUTzzV7QLx/TKxCzjtMH6Fd9/eVK+5Fg1qNoz5VAwsmMs/NofrmJvw==", + "dev": true, + "license": "MIT", + "dependencies": { + "lightningcss": "^1.32.0", + "picomatch": "^4.0.4", + "postcss": "^8.5.14", + "rolldown": "1.0.1", + "tinyglobby": "^0.2.16" + }, + "bin": { + "vite": "bin/vite.js" + }, + "engines": { + "node": "^20.19.0 || >=22.12.0" + }, + "funding": { + "url": "https://github.com/vitejs/vite?sponsor=1" + }, + "optionalDependencies": { + "fsevents": "~2.3.3" + }, + "peerDependencies": { + "@types/node": "^20.19.0 || >=22.12.0", + "@vitejs/devtools": "^0.1.18", + "esbuild": "^0.27.0 || ^0.28.0", + "jiti": ">=1.21.0", + "less": "^4.0.0", + "sass": "^1.70.0", + "sass-embedded": "^1.70.0", + "stylus": ">=0.54.8", + "sugarss": "^5.0.0", + "terser": "^5.16.0", + "tsx": "^4.8.1", + "yaml": "^2.4.2" + }, + "peerDependenciesMeta": { + "@types/node": { + "optional": true + }, + "@vitejs/devtools": { + "optional": true + }, + "esbuild": { + "optional": true + }, + "jiti": { + "optional": true + }, + "less": { + "optional": true + }, + "sass": { + "optional": true + }, + "sass-embedded": { + "optional": true + }, + "stylus": { + "optional": true + }, + "sugarss": { + "optional": true + }, + "terser": { + "optional": true + }, + "tsx": { + "optional": true + }, + "yaml": { + "optional": true + } + } + }, + "node_modules/vite-plugin-full-reload": { + "version": "1.2.0", + "resolved": "https://registry.npmjs.org/vite-plugin-full-reload/-/vite-plugin-full-reload-1.2.0.tgz", + "integrity": "sha512-kz18NW79x0IHbxRSHm0jttP4zoO9P9gXh+n6UTwlNKnviTTEpOlum6oS9SmecrTtSr+muHEn5TUuC75UovQzcA==", + "dev": true, + "license": "MIT", + "dependencies": { + "picocolors": "^1.0.0", + "picomatch": "^2.3.1" + } + }, + "node_modules/vite-plugin-full-reload/node_modules/picomatch": { + "version": "2.3.2", + "resolved": "https://registry.npmjs.org/picomatch/-/picomatch-2.3.2.tgz", + "integrity": "sha512-V7+vQEJ06Z+c5tSye8S+nHUfI51xoXIXjHQ99cQtKUkQqqO1kO/KCJUfZXuB47h/YBlDhah2H3hdUGXn8ie0oA==", + "dev": true, + "license": "MIT", + "engines": { + "node": ">=8.6" + }, + "funding": { + "url": "https://github.com/sponsors/jonschlinkert" + } + }, + "node_modules/wrap-ansi": { + "version": "7.0.0", + "resolved": "https://registry.npmjs.org/wrap-ansi/-/wrap-ansi-7.0.0.tgz", + "integrity": "sha512-YVGIj2kamLSTxw6NsZjoBxfSwsn0ycdesmc4p+Q21c5zPuZ1pl+NfxVdxPtdHvmNVOQ6XSYG4AUtyt/Fi7D16Q==", + "dev": true, + "license": "MIT", + "dependencies": { + "ansi-styles": "^4.0.0", + "string-width": "^4.1.0", + "strip-ansi": "^6.0.0" + }, + "engines": { + "node": ">=10" + }, + "funding": { + "url": "https://github.com/chalk/wrap-ansi?sponsor=1" + } + }, + "node_modules/y18n": { + "version": "5.0.8", + "resolved": "https://registry.npmjs.org/y18n/-/y18n-5.0.8.tgz", + "integrity": "sha512-0pfFzegeDWJHJIAmTLRP2DwHjdF5s7jo9tuztdQxAhINCdvS+3nGINqPd00AphqJR/0LhANUS6/+7SCb98YOfA==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=10" + } + }, + "node_modules/yargs": { + "version": "17.7.2", + "resolved": "https://registry.npmjs.org/yargs/-/yargs-17.7.2.tgz", + "integrity": "sha512-7dSzzRQ++CKnNI/krKnYRV7JKKPUXMEh61soaHKg9mrWEhzFWhFnxPxGl+69cD1Ou63C13NUPCnmIcrvqCuM6w==", + "dev": true, + "license": "MIT", + "dependencies": { + "cliui": "^8.0.1", + "escalade": "^3.1.1", + "get-caller-file": "^2.0.5", + "require-directory": "^2.1.1", + "string-width": "^4.2.3", + "y18n": "^5.0.5", + "yargs-parser": "^21.1.1" + }, + "engines": { + "node": ">=12" + } + }, + "node_modules/yargs-parser": { + "version": "21.1.1", + "resolved": "https://registry.npmjs.org/yargs-parser/-/yargs-parser-21.1.1.tgz", + "integrity": "sha512-tVpsJW7DdjecAiFpbIB1e3qxIQsE6NoPc5/eTdrbbIC4h0LVsWhnoa3g+m2HclBIujHzsxZ4VJVA+GUuc2/LBw==", + "dev": true, + "license": "ISC", + "engines": { + "node": ">=12" + } + } + } +} diff --git a/package.json b/package.json new file mode 100644 index 0000000..49c869e --- /dev/null +++ b/package.json @@ -0,0 +1,16 @@ +{ + "$schema": "https://www.schemastore.org/package.json", + "private": true, + "type": "module", + "scripts": { + "build": "vite build", + "dev": "vite" + }, + "devDependencies": { + "@tailwindcss/vite": "^4.0.0", + "concurrently": "^9.0.1", + "laravel-vite-plugin": "^3.1", + "tailwindcss": "^4.0.0", + "vite": "^8.0.0" + } +} diff --git a/phpunit.xml b/phpunit.xml new file mode 100644 index 0000000..e7f0a48 --- /dev/null +++ b/phpunit.xml @@ -0,0 +1,36 @@ + + + + + tests/Unit + + + tests/Feature + + + + + app + + + + + + + + + + + + + + + + + + + diff --git a/public/.htaccess b/public/.htaccess new file mode 100644 index 0000000..b574a59 --- /dev/null +++ b/public/.htaccess @@ -0,0 +1,25 @@ + + + Options -MultiViews -Indexes + + + RewriteEngine On + + # Handle Authorization Header + RewriteCond %{HTTP:Authorization} . + RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}] + + # Handle X-XSRF-Token Header + RewriteCond %{HTTP:x-xsrf-token} . + RewriteRule .* - [E=HTTP_X_XSRF_TOKEN:%{HTTP:X-XSRF-Token}] + + # Redirect Trailing Slashes If Not A Folder... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_URI} (.+)/$ + RewriteRule ^ %1 [L,R=301] + + # Send Requests To Front Controller... + RewriteCond %{REQUEST_FILENAME} !-d + RewriteCond %{REQUEST_FILENAME} !-f + RewriteRule ^ index.php [L] + diff --git a/public/favicon.ico b/public/favicon.ico new file mode 100644 index 0000000..e69de29 diff --git a/public/index.php b/public/index.php new file mode 100644 index 0000000..ee8f07e --- /dev/null +++ b/public/index.php @@ -0,0 +1,20 @@ +handleRequest(Request::capture()); diff --git a/public/robots.txt b/public/robots.txt new file mode 100644 index 0000000..eb05362 --- /dev/null +++ b/public/robots.txt @@ -0,0 +1,2 @@ +User-agent: * +Disallow: diff --git a/resources/css/app.css b/resources/css/app.css new file mode 100644 index 0000000..6230387 --- /dev/null +++ b/resources/css/app.css @@ -0,0 +1,12 @@ +@import 'tailwindcss'; +@import './hexahost.css'; + +@source '../../vendor/laravel/framework/src/Illuminate/Pagination/resources/views/*.blade.php'; +@source '../../storage/framework/views/*.php'; +@source '../**/*.blade.php'; +@source '../**/*.js'; + +@theme { + --font-sans: 'Instrument Sans', ui-sans-serif, system-ui, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', + 'Segoe UI Symbol', 'Noto Color Emoji'; +} diff --git a/resources/css/hexahost.css b/resources/css/hexahost.css new file mode 100644 index 0000000..70417f2 --- /dev/null +++ b/resources/css/hexahost.css @@ -0,0 +1,115 @@ +@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700&family=Russo+One&display=swap'); + +:root { + --hx-bg: #0d0821; + --hx-bg-end: #1a1230; + --hx-primary: #ff51f9; + --hx-accent-1: #a348ff; + --hx-accent-2: #3978ff; + --hx-text: #ffffff; + --hx-text-muted: #cfc9dd; + --hx-glass: rgba(255, 255, 255, 0.05); + --hx-glass-border: rgba(255, 255, 255, 0.12); + --hx-radius: 0.75rem; + --hx-radius-lg: 1rem; +} + +body.hexahost-panel { + font-family: 'Inter', ui-sans-serif, system-ui, sans-serif; + color: var(--hx-text); + background: linear-gradient(135deg, var(--hx-bg) 0%, var(--hx-bg-end) 100%); + min-height: 100vh; +} + +.hexahost-brand { + font-family: 'Russo One', sans-serif; + letter-spacing: 0.04em; + background: linear-gradient(135deg, var(--hx-primary), var(--hx-accent-1)); + -webkit-background-clip: text; + -webkit-text-fill-color: transparent; + background-clip: text; +} + +.hexahost-sidebar { + background: rgba(13, 8, 33, 0.85); + border-right: 1px solid var(--hx-glass-border); + backdrop-filter: blur(16px); +} + +.hexahost-nav-link { + color: var(--hx-text-muted); + border-radius: var(--hx-radius); + transition: all 0.2s; +} + +.hexahost-nav-link:hover, +.hexahost-nav-link.active { + color: var(--hx-text); + background: var(--hx-glass); + border: 1px solid var(--hx-glass-border); +} + +.hexahost-card { + background: var(--hx-glass); + border: 1px solid var(--hx-glass-border); + border-radius: var(--hx-radius-lg); + backdrop-filter: blur(10px); + box-shadow: 0 8px 32px rgba(255, 81, 249, 0.08); +} + +.hexahost-btn-primary { + background: linear-gradient(135deg, var(--hx-primary), var(--hx-accent-1)); + color: var(--hx-text); + border: none; + border-radius: var(--hx-radius); + font-weight: 600; +} + +.hexahost-btn-primary:hover { + opacity: 0.9; + box-shadow: 0 4px 20px rgba(255, 81, 249, 0.35); +} + +.hexahost-btn-secondary { + background: var(--hx-glass); + border: 1px solid var(--hx-glass-border); + color: var(--hx-text); + border-radius: var(--hx-radius); +} + +.hexahost-input { + background: rgba(13, 8, 33, 0.6); + border: 1px solid var(--hx-glass-border); + color: var(--hx-text); + border-radius: var(--hx-radius); +} + +.hexahost-input:focus { + outline: none; + border-color: var(--hx-primary); + box-shadow: 0 0 0 2px rgba(255, 81, 249, 0.25); +} + +.hexahost-badge-success { + background: rgba(52, 211, 153, 0.15); + color: #34d399; + border: 1px solid rgba(52, 211, 153, 0.35); +} + +.hexahost-badge-warning { + background: rgba(251, 191, 36, 0.15); + color: #fbbf24; + border: 1px solid rgba(251, 191, 36, 0.35); +} + +.hexahost-badge-danger { + background: rgba(248, 113, 113, 0.15); + color: #f87171; + border: 1px solid rgba(248, 113, 113, 0.35); +} + +.hexahost-header { + background: rgba(13, 8, 33, 0.6); + border-bottom: 1px solid var(--hx-glass-border); + backdrop-filter: blur(16px); +} diff --git a/resources/js/app.js b/resources/js/app.js new file mode 100644 index 0000000..8337712 --- /dev/null +++ b/resources/js/app.js @@ -0,0 +1 @@ +// diff --git a/resources/views/admin/health.blade.php b/resources/views/admin/health.blade.php new file mode 100644 index 0000000..668f14b --- /dev/null +++ b/resources/views/admin/health.blade.php @@ -0,0 +1,15 @@ +@extends('layouts.app') +@section('title', 'System-Health') +@section('heading', 'System-Health') + +@section('content') +
+ @foreach($checks as $name => $check) +
+

{{ str_replace('_', ' ', $name) }}

+ {{ strtoupper($check['status']) }} +

{{ $check['message'] }}

+
+ @endforeach +
+@endsection diff --git a/resources/views/admin/templates/create.blade.php b/resources/views/admin/templates/create.blade.php new file mode 100644 index 0000000..6802f44 --- /dev/null +++ b/resources/views/admin/templates/create.blade.php @@ -0,0 +1,15 @@ +@extends('layouts.app') +@section('title', 'Template anlegen') +@section('heading', 'VM-Template anlegen') + +@section('content') +
+ @csrf + + + + + + +
+@endsection diff --git a/resources/views/admin/templates/edit.blade.php b/resources/views/admin/templates/edit.blade.php new file mode 100644 index 0000000..f732c6e --- /dev/null +++ b/resources/views/admin/templates/edit.blade.php @@ -0,0 +1,15 @@ +@extends('layouts.app') +@section('title', 'Template bearbeiten') +@section('heading', 'Template bearbeiten') + +@section('content') +
+ @csrf @method('PUT') + + + + + + +
+@endsection diff --git a/resources/views/admin/templates/index.blade.php b/resources/views/admin/templates/index.blade.php new file mode 100644 index 0000000..75bfffd --- /dev/null +++ b/resources/views/admin/templates/index.blade.php @@ -0,0 +1,25 @@ +@extends('layouts.app') +@section('title', 'VM-Templates') +@section('heading', 'VM-Templates') + +@section('content') +Neues Template +
+ + + + @foreach($templates as $t) + + + + + + + @endforeach + +
NameSlugVMID
{{ $t->name }}{{ $t->slug }}{{ $t->proxmox_template_vmid }} + Bearbeiten +
@csrf @method('DELETE')
+
+
+@endsection diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php new file mode 100644 index 0000000..2d37041 --- /dev/null +++ b/resources/views/auth/login.blade.php @@ -0,0 +1,40 @@ + + + + + + Anmelden – HexaHost Panel + @vite(['resources/css/app.css']) + + +
+
+

HexaHost Panel

+

Hosting Control Panel

+
+
+ @csrf + @if($errors->any()) +
{{ $errors->first() }}
+ @endif + + + + +
+
+ + diff --git a/resources/views/auth/two-factor-challenge.blade.php b/resources/views/auth/two-factor-challenge.blade.php new file mode 100644 index 0000000..45c14eb --- /dev/null +++ b/resources/views/auth/two-factor-challenge.blade.php @@ -0,0 +1,14 @@ +@extends('layouts.app') +@section('title', '2FA') +@section('heading', 'Authentifizierung') + +@section('content') +
+
+ @csrf + + + +
+
+@endsection diff --git a/resources/views/auth/two-factor-setup.blade.php b/resources/views/auth/two-factor-setup.blade.php new file mode 100644 index 0000000..86f53b4 --- /dev/null +++ b/resources/views/auth/two-factor-setup.blade.php @@ -0,0 +1,16 @@ +@extends('layouts.app') +@section('title', '2FA einrichten') +@section('heading', 'Zwei-Faktor-Authentifizierung') + +@section('content') +
+

Admins müssen 2FA aktivieren. Scannen Sie den QR-Code mit Ihrer Authenticator-App.

+
{!! $qrSvg !!}
+

{{ $secret }}

+
+ @csrf + + +
+
+@endsection diff --git a/resources/views/dashboard.blade.php b/resources/views/dashboard.blade.php new file mode 100644 index 0000000..dc6907d --- /dev/null +++ b/resources/views/dashboard.blade.php @@ -0,0 +1,69 @@ +@extends('layouts.app') + +@section('title', 'Dashboard') +@section('heading', 'Dashboard') + +@section('content') +
+ @foreach([ + ['label' => 'VMs gesamt', 'value' => $stats['vms_total'], 'color' => 'text-white'], + ['label' => 'Aktiv', 'value' => $stats['vms_active'], 'color' => 'text-emerald-400'], + ['label' => 'In Bereitstellung', 'value' => $stats['vms_pending'], 'color' => 'text-amber-400'], + ['label' => 'Fehlgeschlagen', 'value' => $stats['vms_failed'], 'color' => 'text-red-400'], + ] as $card) +
+

{{ $card['label'] }}

+

{{ $card['value'] }}

+
+ @endforeach +
+ +@if($usersCount !== null) +
+ Registrierte Benutzer: {{ $usersCount }} +
+@endif + +
+
+

IP-Pools

+
+ @forelse($pools as $pool) +
+
+ {{ $pool->name }} ({{ $pool->type->label() }}) + {{ $pool->usedIpsCount() }}/{{ $pool->totalIps() }} +
+
+ @php $pct = $pool->totalIps() > 0 ? ($pool->usedIpsCount() / $pool->totalIps()) * 100 : 0; @endphp +
+
+
+ @empty +

Keine IP-Pools konfiguriert.

+ @endforelse +
+ Alle Pools anzeigen → +
+ +
+
+

Letzte VMs

+ + Neue VM +
+ +
+
+@endsection diff --git a/resources/views/ip-pools/create.blade.php b/resources/views/ip-pools/create.blade.php new file mode 100644 index 0000000..c451ee3 --- /dev/null +++ b/resources/views/ip-pools/create.blade.php @@ -0,0 +1,31 @@ +@extends('layouts.app') +@section('title', 'IP-Pool') +@section('heading', 'Neuer IP-Pool') + +@section('content') +
+ @csrf + + +
+ + +
+ + + + + +
+@endsection diff --git a/resources/views/ip-pools/edit.blade.php b/resources/views/ip-pools/edit.blade.php new file mode 100644 index 0000000..ca52fac --- /dev/null +++ b/resources/views/ip-pools/edit.blade.php @@ -0,0 +1,35 @@ +@extends('layouts.app') +@section('title', 'IP-Pool') +@section('heading', 'Pool bearbeiten') + +@section('content') +
+ @csrf @method('PUT') + + +
+ + +
+ + + + +
+
+ @csrf @method('DELETE') + +
+@endsection diff --git a/resources/views/ip-pools/index.blade.php b/resources/views/ip-pools/index.blade.php new file mode 100644 index 0000000..8de8208 --- /dev/null +++ b/resources/views/ip-pools/index.blade.php @@ -0,0 +1,64 @@ +@extends('layouts.app') +@section('title', 'IP-Pools') +@section('heading', 'IP-Pools & Zuweisungen') + +@section('content') +@if(auth()->user()->isAdmin()) ++ Pool anlegen +@endif + +
+ @foreach($pools as $pool) +
+
+
+

{{ $pool->name }}

+ {{ $pool->type->label() }} +
+ @if(auth()->user()->isAdmin()) + Bearbeiten + @endif +
+

{{ $pool->start_ip }} – {{ $pool->end_ip }}

+

Gateway: {{ $pool->gateway ?? '—' }} /{{ $pool->cidr }}

+
+
+ {{ $pool->usedIpsCount() }} belegt + {{ $pool->freeIpsCount() }} frei +
+
+
+
+
+
+ @endforeach +
+ +

IP-Zuweisungen (aktive VMs)

+
+ + + + + @if(auth()->user()->isAdmin())@endif + + + + + + + @forelse($assignments as $vm) + + + @if(auth()->user()->isAdmin())@endif + + + + + @empty + + @endforelse + +
VMKundePrivate IPPublic IPPool
{{ $vm->name }}{{ $vm->owner?->name }}{{ $vm->ip_address ?? '—' }}{{ $vm->public_ip ?? '—' }}{{ $vm->ipPool?->name ?? '—' }}
Keine Zuweisungen.
+
+@endsection diff --git a/resources/views/iso-uploads/index.blade.php b/resources/views/iso-uploads/index.blade.php new file mode 100644 index 0000000..c622dfc --- /dev/null +++ b/resources/views/iso-uploads/index.blade.php @@ -0,0 +1,24 @@ +@extends('layouts.app') +@section('title', 'ISO-Upload') +@section('heading', 'Eigene ISO hochladen') + +@section('content') +
+

Max. {{ config('hosting.iso_upload.max_per_customer') }} ISO, {{ config('hosting.iso_upload.max_size_mb') }} MB, {{ config('hosting.iso_upload.retention_hours') }}h Aufbewahrung.

+
+ @csrf + + +
+
+
+

Aktive Uploads

+
    + @forelse($uploads as $u) +
  • {{ $u->filename }} – läuft ab {{ $u->expires_at->format('d.m.Y H:i') }}
  • + @empty +
  • Keine Uploads.
  • + @endforelse +
+
+@endsection diff --git a/resources/views/layouts/app.blade.php b/resources/views/layouts/app.blade.php new file mode 100644 index 0000000..ce8c879 --- /dev/null +++ b/resources/views/layouts/app.blade.php @@ -0,0 +1,64 @@ + + + + + + @yield('title', 'Dashboard') – {{ config('app.name', 'HexaHost Panel') }} + @vite(['resources/css/app.css', 'resources/js/app.js']) + + +
+ + +
+
+

@yield('heading', 'Dashboard')

+
+ + {{ auth()->user()->role->label() }} +
+ @csrf + +
+
+
+ +
+ @if(session('success')) +
{{ session('success') }}
+ @endif + @if(session('warning')) +
{{ session('warning') }}
+ @endif + @if($errors->any()) +
+
    + @foreach($errors->all() as $error) +
  • {{ $error }}
  • + @endforeach +
+
+ @endif + + @yield('content') +
+
+
+@stack('scripts') + + diff --git a/resources/views/partials/status-badge.blade.php b/resources/views/partials/status-badge.blade.php new file mode 100644 index 0000000..bb25277 --- /dev/null +++ b/resources/views/partials/status-badge.blade.php @@ -0,0 +1,12 @@ +@php +$classes = match($status) { + 'active' => 'bg-emerald-950 text-emerald-400 border-emerald-800', + 'pending' => 'bg-amber-950 text-amber-400 border-amber-800', + 'failed' => 'bg-red-950 text-red-400 border-red-800', + default => 'bg-slate-800 text-slate-400 border-slate-700', +}; +$labels = ['active' => 'Aktiv', 'pending' => 'Ausstehend', 'failed' => 'Fehler']; +@endphp + + {{ $labels[$status] ?? $status }} + diff --git a/resources/views/partials/vm-device-fields.blade.php b/resources/views/partials/vm-device-fields.blade.php new file mode 100644 index 0000000..8032454 --- /dev/null +++ b/resources/views/partials/vm-device-fields.blade.php @@ -0,0 +1,28 @@ +
+ @php $devices = old('devices', $devices ?? []); @endphp + @forelse($devices as $i => $device) + @include('partials.vm-device-row', ['index' => $i, 'device' => $device, 'deviceTypes' => $deviceTypes]) + @empty + @endforelse +
+ + + + +@push('scripts') + +@endpush diff --git a/resources/views/partials/vm-device-row.blade.php b/resources/views/partials/vm-device-row.blade.php new file mode 100644 index 0000000..71fe2f8 --- /dev/null +++ b/resources/views/partials/vm-device-row.blade.php @@ -0,0 +1,25 @@ +
+
+ Zusatzgerät + +
+
+ + + +
+
diff --git a/resources/views/users/create.blade.php b/resources/views/users/create.blade.php new file mode 100644 index 0000000..c850dcf --- /dev/null +++ b/resources/views/users/create.blade.php @@ -0,0 +1,25 @@ +@extends('layouts.app') +@section('title', 'Benutzer') +@section('heading', 'Neuer Benutzer') + +@section('content') +
+ @csrf + + + + + + + +
+@endsection diff --git a/resources/views/users/edit.blade.php b/resources/views/users/edit.blade.php new file mode 100644 index 0000000..570096f --- /dev/null +++ b/resources/views/users/edit.blade.php @@ -0,0 +1,33 @@ +@extends('layouts.app') +@section('title', 'Benutzer') +@section('heading', 'Benutzer bearbeiten') + +@section('content') +
+ @csrf @method('PUT') + + + + + + + +
+@if(auth()->id() !== $user->id) +
+ @csrf @method('DELETE') + +
+@endif +@endsection diff --git a/resources/views/users/index.blade.php b/resources/views/users/index.blade.php new file mode 100644 index 0000000..f510576 --- /dev/null +++ b/resources/views/users/index.blade.php @@ -0,0 +1,37 @@ +@extends('layouts.app') +@section('title', 'Benutzer') +@section('heading', 'Benutzerverwaltung') + +@section('content') ++ Benutzer + +
+ + + + + + + + + + + + + @foreach($users as $user) + + + + + + + + + @endforeach + +
NameE-MailRolleVMsStatus
{{ $user->name }}{{ $user->email }}{{ $user->role->label() }}{{ $user->vms_count }}{{ $user->is_active ? 'Aktiv' : 'Deaktiviert' }} + Bearbeiten +
+
+{{ $users->links() }} +@endsection diff --git a/resources/views/vms/console-error.blade.php b/resources/views/vms/console-error.blade.php new file mode 100644 index 0000000..a32b961 --- /dev/null +++ b/resources/views/vms/console-error.blade.php @@ -0,0 +1,15 @@ + + + + + Konsole – Fehler + @vite(['resources/css/app.css']) + + +
+

Konsole nicht verfügbar

+

{{ $error }}

+ ← Zurück +
+ + diff --git a/resources/views/vms/console.blade.php b/resources/views/vms/console.blade.php new file mode 100644 index 0000000..44d7aa0 --- /dev/null +++ b/resources/views/vms/console.blade.php @@ -0,0 +1,55 @@ + + + + + + Konsole – {{ $vm->name }} + @vite(['resources/css/app.css']) + + + +
+ {{ $vm->displayName() }} – noVNC + Verbinde… + ← Zurück zur VM +
+
+ + +

+ Hinweis: Der Browser muss Proxmox unter {{ parse_url(config('hosting.proxmox.console_ws_url') ?: config('hosting.proxmox.url'), PHP_URL_HOST) }} erreichen können. +

+ + diff --git a/resources/views/vms/create.blade.php b/resources/views/vms/create.blade.php new file mode 100644 index 0000000..e0c3c21 --- /dev/null +++ b/resources/views/vms/create.blade.php @@ -0,0 +1,98 @@ +@extends('layouts.app') +@section('title', 'VM erstellen') +@section('heading', 'Neue VM erstellen') + +@section('content') +
+ @csrf + +
+

Allgemein

+ + + @if($customers->isNotEmpty()) + + @endif + + + +
+ +
+ + +

Ohne Traefik wird zusätzlich eine öffentliche IP aus dem Public-Pool vergeben.

+
+ +
+

Ressourcen

+
+ + + +
+
+ +
+

Installations-ISO (optional)

+

ISO wird beim Provisioning als CD-ROM eingebunden (Boot-Reihenfolge: CD zuerst).

+ + @if(empty($isos)) +

Keine ISOs von Proxmox geladen – Storage {{ config('hosting.proxmox.iso_storage') }} prüfen.

+ @endif +
+ +
+

Zusätzliche Geräte

+ @include('partials.vm-device-fields', ['deviceTypes' => $deviceTypes]) +
+ + +
+ +@push('scripts') + +@endpush +@endsection diff --git a/resources/views/vms/edit.blade.php b/resources/views/vms/edit.blade.php new file mode 100644 index 0000000..674936d --- /dev/null +++ b/resources/views/vms/edit.blade.php @@ -0,0 +1,33 @@ +@extends('layouts.app') +@section('title', 'VM bearbeiten') +@section('heading', 'VM konfigurieren: '.$vm->name) + +@section('content') +
+ @csrf @method('PUT') + +
+ +
+ + + +
+

Änderungen werden bei aktiver VM an Proxmox übertragen.

+
+ +
+

Zusätzliche Geräte

+ @php $devices = old('devices', $vm->devices->map(fn($d) => ['type'=>$d->type,'slot'=>$d->slot,'config'=>$d->config])->all()); @endphp + @include('partials.vm-device-fields', ['deviceTypes' => $deviceTypes, 'devices' => $devices]) +
+ + +
+@endsection diff --git a/resources/views/vms/index.blade.php b/resources/views/vms/index.blade.php new file mode 100644 index 0000000..80bde4b --- /dev/null +++ b/resources/views/vms/index.blade.php @@ -0,0 +1,61 @@ +@extends('layouts.app') +@section('title', 'VMs') +@section('heading', 'Virtuelle Maschinen') + +@section('content') +
+
+ +
+ + VM erstellen +
+ +
+ + + + + @if(auth()->user()->isAdmin())@endif + + + + + + + + + @forelse($vms as $vm) + + + @if(auth()->user()->isAdmin()) + + @endif + + + + + + + @empty + + @endforelse + +
NameKundeVMIDIP / PublicRessourcenStatus
{{ $vm->name }}{{ $vm->owner?->name ?? '—' }}{{ $vm->vmid ?? '—' }} + {{ $vm->ip_address ?? '—' }} + @if($vm->public_ip)
{{ $vm->public_ip }}@endif +
{{ $vm->cpu }} vCPU · {{ $vm->ram }} MB · {{ $vm->disk }} GB + @include('partials.status-badge', ['status' => $vm->status]) + @if($vm->proxmox_status) + ({{ $vm->proxmox_status }}) + @endif + + Details +
Keine VMs gefunden.
+
+
{{ $vms->links() }} +@endsection diff --git a/resources/views/vms/show.blade.php b/resources/views/vms/show.blade.php new file mode 100644 index 0000000..b559a53 --- /dev/null +++ b/resources/views/vms/show.blade.php @@ -0,0 +1,250 @@ +@extends('layouts.app') +@section('title', $vm->name) +@section('heading', $vm->displayName()) + +@section('content') +@php + $canManage = auth()->user()->can('manage', $vm); + $isRunning = ($liveStatus['status'] ?? $vm->proxmox_status) === 'running'; +@endphp + +
+ @can('update', $vm) + Konfiguration + @endcan + @if($canManage) + Konsole öffnen + @endif + @can('delete', $vm) +
+ @csrf @method('DELETE') + +
+ @endcan +
+ +@if($errors->has('power')) +
{{ $errors->first('power') }}
+@endif +@if($errors->has('iso')) +
{{ $errors->first('iso') }}
+@endif + +@if($canManage) +
+
+

VM-Steuerung

+
+ + + {{ $liveStatus['status'] ?? $vm->proxmox_status ?? 'unbekannt' }} + + + @if(($liveStatus['uptime'] ?? $vm->proxmox_uptime ?? 0) > 0) + Uptime: {{ gmdate('H:i:s', $liveStatus['uptime'] ?? $vm->proxmox_uptime) }} + @endif + +
+
+ +
+ @csrf + @foreach(\App\Enums\VmPowerAction::cases() as $action) + + @endforeach +
+ +
+
+

Installations-ISO

+ @if($vm->attached_iso) +

{{ $vm->attached_iso }}

+
+ @csrf @method('DELETE') + +
+ @else +

Keine ISO eingebunden.

+ @endif +
+ @csrf + + +
+

Nach dem Einbinden: VM neu starten und von CD booten.

+
+
+

Live-Ressourcen

+
+ @if($liveStatus) +
CPU
{{ number_format(($liveStatus['cpu'] ?? 0) * 100, 1) }}%
+
RAM
{{ number_format(($liveStatus['mem'] ?? 0) / 1024 / 1024 / 1024, 2) }} / {{ number_format(($liveStatus['maxmem'] ?? 0) / 1024 / 1024 / 1024, 2) }} GB
+ @else +

Status nicht abrufbar (Proxmox-Verbindung prüfen).

+ @endif +
+
+
+
+@endif + +
+
+

Status

+
+
Provisioning
@include('partials.status-badge', ['status' => $vm->status])
+
Schritt
{{ $vm->provisioning_step ?? '—' }}
+ @if($vm->error_message) +
{{ $vm->error_message }}
+ @endif +
VMID
{{ $vm->vmid ?? '—' }}
+ @if(auth()->user()->isAdmin()) +
Besitzer
{{ $vm->owner?->name ?? '—' }}
+ @endif +
+
+ +
+

Netzwerk

+
+
Private IP
{{ $vm->ip_address ?? '—' }}
+
Öffentliche IP
{{ $vm->public_ip ?? '—' }}
+
Traefik
{{ $vm->behind_traefik ? 'Ja' : 'Nein' }}
+
Domain
{{ str_ends_with($vm->domain ?? '', '.internal') ? '—' : $vm->domain }}
+
+
+ +
+

Ressourcen (Konfiguration)

+
+
vCPUs
{{ $vm->cpu }}
+
RAM
{{ $vm->ram }} MB
+
Disk
{{ $vm->disk }} GB
+
+
+ +
+

Aktivitätsprotokoll

+
+ @forelse($vm->activityLogs as $log) +
+ {{ $log->action }} + {{ $log->created_at->diffForHumans() }} +
+ @empty +

Noch keine Aktionen.

+ @endforelse +
+
+
+ +@if($canManage && $vm->vmid) +
+

Snapshots (48h)

+
+ @csrf + + +
+
    + @forelse($vm->snapshots as $snap) +
  • + {{ $snap->name }} @if($snap->auto_created)(auto)@endif + bis {{ $snap->expires_at?->format('d.m. H:i') }} + +
    @csrf
    +
    @csrf @method('DELETE')
    +
    +
  • + @empty +
  • Keine Snapshots.
  • + @endforelse +
+
+ +
+

Backups @if(!config('hosting.backups.enabled'))(PBS deaktiviert)@endif

+ @if(config('hosting.backups.enabled')) +
@csrf
+ @endif +
    + @forelse($vm->backups as $backup) +
  • {{ $backup->status }} – {{ $backup->created_at->format('d.m.Y H:i') }}
  • + @empty +
  • Keine Backups.
  • + @endforelse +
+
+ +
+

Firewall

+
+ @csrf + + + + + +
+
    + @forelse($vm->firewallRules as $rule) +
  • {{ $rule->direction }} {{ $rule->protocol }} {{ $rule->port }} → {{ $rule->action }} +
    @csrf @method('DELETE')
  • + @empty +
  • Keine Regeln.
  • + @endforelse +
+
+ +
+

Neuinstallation

+
+ @csrf + + +
+
+@endif + +@if($canManage && $vm->vmid) +@push('scripts') + +@endpush +@endif +@endsection diff --git a/resources/views/welcome.blade.php b/resources/views/welcome.blade.php new file mode 100644 index 0000000..26e294a --- /dev/null +++ b/resources/views/welcome.blade.php @@ -0,0 +1,223 @@ + + + + + + + {{ config('app.name', 'Laravel') }} + + @fonts + + + @if (file_exists(public_path('build/manifest.json')) || file_exists(public_path('hot'))) + @vite(['resources/css/app.css', 'resources/js/app.js']) + @else + + @endif + + +
+ @if (Route::has('login')) + + @endif +
+
+
+
+

Let's get started

+

With so many options available to you,
we suggest you start with the following:

+ + + +

+ v{{ app()->version() }} + + View changelog + + + + +

+
+
+ {{-- Laravel Logo --}} + + + + + + + + + + + {{-- 13 --}} + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
+
+
+
+ + @if (Route::has('login')) + + @endif + + diff --git a/routes/api.php b/routes/api.php new file mode 100644 index 0000000..e3f8013 --- /dev/null +++ b/routes/api.php @@ -0,0 +1,22 @@ +middleware(['api', 'whmcs']) + ->group(function () { + Route::post('/services', [WhmcsServiceController::class, 'provision']); + Route::get('/services/{whmcsServiceId}', [WhmcsServiceController::class, 'status']); + Route::post('/services/{whmcsServiceId}/suspend', [WhmcsServiceController::class, 'suspend']); + Route::post('/services/{whmcsServiceId}/unsuspend', [WhmcsServiceController::class, 'unsuspend']); + Route::delete('/services/{whmcsServiceId}', [WhmcsServiceController::class, 'terminate']); + }); diff --git a/routes/console.php b/routes/console.php new file mode 100644 index 0000000..c5d58d8 --- /dev/null +++ b/routes/console.php @@ -0,0 +1,14 @@ +comment(Inspiring::quote()); +})->purpose('Display an inspiring quote'); + +Schedule::command('hosting:release-vmids')->everyFifteenMinutes(); +Schedule::command('hosting:purge-iso-uploads')->hourly(); +Schedule::command('hosting:prune-snapshots')->hourly(); +Schedule::command('hosting:collect-metrics')->everyFiveMinutes(); diff --git a/routes/web.php b/routes/web.php new file mode 100644 index 0000000..b627192 --- /dev/null +++ b/routes/web.php @@ -0,0 +1,80 @@ + Customer::query()->findOrFail($value)); + +Route::middleware('guest')->group(function () { + Route::get('login', [LoginController::class, 'create'])->name('login'); + Route::post('login', [LoginController::class, 'store'])->middleware('throttle:login'); +}); + +Route::middleware('auth')->group(function () { + Route::post('logout', [LoginController::class, 'destroy'])->name('logout'); + + Route::get('two-factor/setup', [TwoFactorController::class, 'setup'])->name('two-factor.setup'); + Route::post('two-factor/enable', [TwoFactorController::class, 'enable'])->name('two-factor.enable'); + Route::get('two-factor/challenge', [TwoFactorController::class, 'challenge'])->name('two-factor.challenge'); + Route::post('two-factor/challenge', [TwoFactorController::class, 'verifyChallenge'])->name('two-factor.challenge.store'); + + Route::get('/', DashboardController::class)->name('dashboard'); + + Route::resource('vms', VmController::class)->except(['destroy']); + Route::delete('vms/{vm}', [VmController::class, 'destroy'])->name('vms.destroy'); + + Route::middleware('throttle:vm-power')->group(function () { + Route::post('vms/{vm}/power', VmPowerController::class)->name('vms.power'); + }); + Route::get('vms/{vm}/status', VmStatusController::class)->name('vms.status'); + Route::get('vms/{vm}/console', [VmConsoleController::class, 'create'])->name('vms.console'); + Route::get('console/{token}', [VmConsoleController::class, 'show'])->name('vms.console.session'); + Route::post('vms/{vm}/iso', [VmIsoController::class, 'store'])->name('vms.iso.mount'); + Route::delete('vms/{vm}/iso', [VmIsoController::class, 'destroy'])->name('vms.iso.unmount'); + Route::get('api/isos', [VmIsoController::class, 'index'])->name('api.isos'); + + Route::post('vms/{vm}/snapshots', [VmSnapshotController::class, 'store'])->name('vms.snapshots.store'); + Route::post('vms/{vm}/snapshots/{snapshot}/rollback', [VmSnapshotController::class, 'rollback'])->name('vms.snapshots.rollback'); + Route::delete('vms/{vm}/snapshots/{snapshot}', [VmSnapshotController::class, 'destroy'])->name('vms.snapshots.destroy'); + + Route::post('vms/{vm}/backups', [VmBackupController::class, 'store'])->name('vms.backups.store'); + Route::post('vms/{vm}/reinstall', VmReinstallController::class)->name('vms.reinstall'); + + Route::post('vms/{vm}/firewall', [VmFirewallController::class, 'store'])->name('vms.firewall.store'); + Route::delete('vms/{vm}/firewall/{rule}', [VmFirewallController::class, 'destroy'])->name('vms.firewall.destroy'); + + Route::get('iso-uploads', [IsoUploadController::class, 'index'])->name('iso-uploads.index'); + Route::post('iso-uploads', [IsoUploadController::class, 'store'])->name('iso-uploads.store'); + + Route::get('ip-pools', [IpPoolController::class, 'index'])->name('ip-pools.index'); + + Route::middleware('admin')->group(function () { + Route::get('ip-pools/create', [IpPoolController::class, 'create'])->name('ip-pools.create'); + Route::post('ip-pools', [IpPoolController::class, 'store'])->name('ip-pools.store'); + Route::get('ip-pools/{ipPool}/edit', [IpPoolController::class, 'edit'])->name('ip-pools.edit'); + Route::put('ip-pools/{ipPool}', [IpPoolController::class, 'update'])->name('ip-pools.update'); + Route::delete('ip-pools/{ipPool}', [IpPoolController::class, 'destroy'])->name('ip-pools.destroy'); + + Route::resource('users', UserController::class)->except(['show']); + + Route::get('admin/system-health', SystemHealthController::class)->name('admin.health'); + Route::resource('admin/templates', VmTemplateController::class)->names('admin.templates'); + }); +}); diff --git a/scripts/console-ws-proxy.mjs b/scripts/console-ws-proxy.mjs new file mode 100644 index 0000000..023afad --- /dev/null +++ b/scripts/console-ws-proxy.mjs @@ -0,0 +1,49 @@ +#!/usr/bin/env node +/** + * WebSocket-Proxy: Browser → Panel → Proxmox VNC + * Start: CONSOLE_PROXY_SECRET=... CONSOLE_VALIDATE_URL=https://panel/api/console/validate node scripts/console-ws-proxy.mjs + */ +import http from 'http'; +import { WebSocketServer, WebSocket } from 'ws'; + +const PORT = parseInt(process.env.CONSOLE_PROXY_PORT || '6090', 10); +const SECRET = process.env.CONSOLE_PROXY_SECRET || ''; +const VALIDATE = process.env.CONSOLE_PROXY_VALIDATE_URL || 'http://127.0.0.1:8000/api/console/validate'; + +const server = http.createServer(); +const wss = new WebSocketServer({ server, path: '/ws/vm' }); + +wss.on('connection', async (clientWs, req) => { + const token = req.url?.split('/').pop()?.split('?')[0]; + if (!token) { + clientWs.close(4001, 'missing token'); + return; + } + + try { + const res = await fetch(`${VALIDATE}/${token}`, { + headers: { 'X-Console-Proxy-Secret': SECRET }, + }); + if (!res.ok) { + clientWs.close(4003, 'invalid session'); + return; + } + const data = await res.json(); + const proxmoxWs = new WebSocket(data.proxmox_ws_url, ['binary']); + + proxmoxWs.on('open', () => { + clientWs.on('message', (msg) => proxmoxWs.readyState === WebSocket.OPEN && proxmoxWs.send(msg)); + proxmoxWs.on('message', (msg) => clientWs.readyState === WebSocket.OPEN && clientWs.send(msg)); + }); + + proxmoxWs.on('error', () => clientWs.close(1011, 'upstream error')); + clientWs.on('close', () => proxmoxWs.close()); + proxmoxWs.on('close', () => clientWs.close()); + } catch { + clientWs.close(1011, 'proxy error'); + } +}); + +server.listen(PORT, '127.0.0.1', () => { + console.log(`Console WS proxy on 127.0.0.1:${PORT}/ws/vm/{token}`); +}); diff --git a/storage/app/.gitignore b/storage/app/.gitignore new file mode 100644 index 0000000..fedb287 --- /dev/null +++ b/storage/app/.gitignore @@ -0,0 +1,4 @@ +* +!private/ +!public/ +!.gitignore diff --git a/storage/app/private/.gitignore b/storage/app/private/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/app/private/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/app/public/.gitignore b/storage/app/public/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/app/public/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/.gitignore b/storage/framework/.gitignore new file mode 100644 index 0000000..05c4471 --- /dev/null +++ b/storage/framework/.gitignore @@ -0,0 +1,9 @@ +compiled.php +config.php +down +events.scanned.php +maintenance.php +routes.php +routes.scanned.php +schedule-* +services.json diff --git a/storage/framework/cache/.gitignore b/storage/framework/cache/.gitignore new file mode 100644 index 0000000..01e4a6c --- /dev/null +++ b/storage/framework/cache/.gitignore @@ -0,0 +1,3 @@ +* +!data/ +!.gitignore diff --git a/storage/framework/cache/data/.gitignore b/storage/framework/cache/data/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/cache/data/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/sessions/.gitignore b/storage/framework/sessions/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/sessions/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/testing/.gitignore b/storage/framework/testing/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/testing/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/framework/views/.gitignore b/storage/framework/views/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/framework/views/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/logs/.gitignore b/storage/logs/.gitignore new file mode 100644 index 0000000..d6b7ef3 --- /dev/null +++ b/storage/logs/.gitignore @@ -0,0 +1,2 @@ +* +!.gitignore diff --git a/storage/traefik/dynamic/.gitkeep b/storage/traefik/dynamic/.gitkeep new file mode 100644 index 0000000..8b13789 --- /dev/null +++ b/storage/traefik/dynamic/.gitkeep @@ -0,0 +1 @@ + diff --git a/tests/Feature/Api/WhmcsApiTest.php b/tests/Feature/Api/WhmcsApiTest.php new file mode 100644 index 0000000..05ba69e --- /dev/null +++ b/tests/Feature/Api/WhmcsApiTest.php @@ -0,0 +1,86 @@ + true, + 'hosting.whmcs.api_secret' => 'test-secret', + 'hosting.whmcs.allowed_ips' => [], + ]); + + HostingPlan::query()->create([ + 'slug' => 'small', + 'name' => 'Small', + 'cpu' => 2, + 'ram' => 4096, + 'disk' => 40, + 'max_backups' => 4, + 'is_active' => true, + ]); + } + + public function test_provision_requires_valid_signature(): void + { + $this->postJson('/api/whmcs/services', []) + ->assertStatus(401); + } + + public function test_provision_with_valid_signature(): void + { + Queue::fake(); + Http::fake(['*' => Http::response(['data' => null], 200)]); + + $body = [ + 'whmcs_service_id' => 1001, + 'whmcs_client_id' => 42, + 'client_email' => 'kunde@example.com', + 'client_name' => 'Max Kunde', + 'plan_slug' => 'small', + 'hostname' => 'vm-test', + 'subdomain' => 'vmtest', + 'behind_traefik' => true, + 'provision_mode' => 'template', + 'template_slug' => 'debian-12', + ]; + + $json = json_encode($body); + $timestamp = time(); + $signature = hash_hmac('sha256', $timestamp.'.'.$json, 'test-secret'); + + $this->postJson('/api/whmcs/services', $body, [ + 'X-Whmcs-Timestamp' => $timestamp, + 'X-Whmcs-Signature' => $signature, + ]) + ->assertStatus(202) + ->assertJsonPath('vmid', 2000); + + $this->assertDatabaseHas('whmcs_services', ['whmcs_service_id' => 1001]); + $this->assertDatabaseHas('vmid_reservations', ['vmid' => 2000, 'status' => 'reserved']); + } + + private function signedRequest(string $method, string $uri, array $body = []): \Illuminate\Testing\TestResponse + { + $json = json_encode($body); + $timestamp = time(); + $signature = hash_hmac('sha256', $timestamp.'.'.$json, 'test-secret'); + + return $this->json($method, $uri, $body, [ + 'X-Whmcs-Timestamp' => $timestamp, + 'X-Whmcs-Signature' => $signature, + ]); + } +} diff --git a/tests/Feature/ExampleTest.php b/tests/Feature/ExampleTest.php new file mode 100644 index 0000000..6533db0 --- /dev/null +++ b/tests/Feature/ExampleTest.php @@ -0,0 +1,13 @@ +get('/')->assertRedirect(route('login')); + } +} diff --git a/tests/Feature/Web/VmAuthorizationTest.php b/tests/Feature/Web/VmAuthorizationTest.php new file mode 100644 index 0000000..6748eb5 --- /dev/null +++ b/tests/Feature/Web/VmAuthorizationTest.php @@ -0,0 +1,66 @@ +create(['role' => UserRole::Customer]); + $otherUser = User::factory()->create(['role' => UserRole::Customer]); + + $ownVm = Customer::query()->create([ + 'user_id' => $customerUser->id, + 'name' => 'own-vm', + 'domain' => 'own.hexahost.de', + 'status' => 'active', + ]); + + Customer::query()->create([ + 'user_id' => $otherUser->id, + 'name' => 'other-vm', + 'domain' => 'other.hexahost.de', + 'status' => 'active', + ]); + + $this->actingAs($customerUser) + ->get(route('vms.index')) + ->assertOk() + ->assertSee('own-vm') + ->assertDontSee('other-vm'); + + $this->actingAs($customerUser) + ->get(route('vms.show', $ownVm)) + ->assertOk(); + + $otherVm = Customer::query()->where('name', 'other-vm')->first(); + $this->actingAs($customerUser) + ->get(route('vms.show', $otherVm)) + ->assertForbidden(); + } + + public function test_admin_sees_all_vms(): void + { + $admin = User::factory()->create(['role' => UserRole::Admin]); + + Customer::query()->create([ + 'user_id' => User::factory()->create()->id, + 'name' => 'vm-a', + 'domain' => 'a.hexahost.de', + 'status' => 'active', + ]); + + $this->actingAs($admin) + ->get(route('vms.index')) + ->assertOk() + ->assertSee('vm-a'); + } +} diff --git a/tests/Feature/Web/VmManagementTest.php b/tests/Feature/Web/VmManagementTest.php new file mode 100644 index 0000000..30ba358 --- /dev/null +++ b/tests/Feature/Web/VmManagementTest.php @@ -0,0 +1,107 @@ +create([ + 'user_id' => $owner->id, + 'name' => 'test-vm', + 'domain' => 'test.hexahost.de', + 'vmid' => 200, + 'ip_address' => '10.12.10.50', + 'cpu' => 2, + 'ram' => 2048, + 'disk' => 32, + 'status' => 'active', + 'provisioning_step' => 'completed', + ]); + } + + public function test_customer_can_trigger_power_action(): void + { + Http::fake([ + '*' => Http::sequence() + ->push(['data' => ['status' => 'running', 'uptime' => 100, 'cpu' => 0.1, 'mem' => 1, 'maxmem' => 2, 'disk' => 0, 'maxdisk' => 0]], 200) + ->push(['data' => null], 200) + ->push(['data' => ['status' => 'running', 'uptime' => 100, 'cpu' => 0.1, 'mem' => 1, 'maxmem' => 2, 'disk' => 0, 'maxdisk' => 0]], 200), + ]); + + $user = User::factory()->create(['role' => UserRole::Customer]); + $vm = $this->activeVm($user); + + $this->actingAs($user) + ->post(route('vms.power', $vm), ['action' => VmPowerAction::Shutdown->value]) + ->assertRedirect() + ->assertSessionHas('success'); + + $this->assertDatabaseHas('vm_activity_logs', [ + 'customer_id' => $vm->id, + 'action' => 'power.shutdown', + 'status' => 'success', + ]); + } + + public function test_other_customer_cannot_manage_vm(): void + { + $owner = User::factory()->create(['role' => UserRole::Customer]); + $other = User::factory()->create(['role' => UserRole::Customer]); + $vm = $this->activeVm($owner); + + $this->actingAs($other) + ->post(route('vms.power', $vm), ['action' => VmPowerAction::Start->value]) + ->assertForbidden(); + } + + public function test_live_status_json(): void + { + Http::fake([ + '*' => Http::response([ + 'data' => ['status' => 'running', 'uptime' => 3600, 'cpu' => 0.05, 'mem' => 512000000, 'maxmem' => 2147483648, 'disk' => 0, 'maxdisk' => 0], + ], 200), + ]); + + $user = User::factory()->create(['role' => UserRole::Customer]); + $vm = $this->activeVm($user); + + $this->actingAs($user) + ->getJson(route('vms.status', $vm)) + ->assertOk() + ->assertJsonPath('proxmox.status', 'running'); + } + + public function test_mount_iso(): void + { + Http::fake([ + '*/storage/*/content*' => Http::response([ + 'data' => [['volid' => 'local:iso/debian.iso', 'content' => 'iso', 'size' => 500000000]], + ], 200), + '*' => Http::response(['data' => null], 200), + ]); + + $user = User::factory()->create(['role' => UserRole::Customer]); + $vm = $this->activeVm($user); + + $this->actingAs($user) + ->post(route('vms.iso.mount', $vm), ['iso_volid' => 'local:iso/debian.iso']) + ->assertRedirect() + ->assertSessionHas('success'); + + $this->assertDatabaseHas('customers', [ + 'id' => $vm->id, + 'attached_iso' => 'local:iso/debian.iso', + ]); + } +} diff --git a/tests/TestCase.php b/tests/TestCase.php new file mode 100644 index 0000000..b39f821 --- /dev/null +++ b/tests/TestCase.php @@ -0,0 +1,19 @@ + 'test@pam!test=secret', + 'hosting.proxmox.url' => 'https://proxmox.test:8006', + 'hosting.security.admin_2fa_required' => false, + ]); + } +} diff --git a/tests/Unit/ExampleTest.php b/tests/Unit/ExampleTest.php new file mode 100644 index 0000000..5773b0c --- /dev/null +++ b/tests/Unit/ExampleTest.php @@ -0,0 +1,16 @@ +assertTrue(true); + } +} diff --git a/tests/Unit/TraefikGeneratorTest.php b/tests/Unit/TraefikGeneratorTest.php new file mode 100644 index 0000000..c01baee --- /dev/null +++ b/tests/Unit/TraefikGeneratorTest.php @@ -0,0 +1,78 @@ +configPath = storage_path('framework/testing/traefik-customers.yaml'); + config(['hosting.traefik.dynamic_config_path' => $this->configPath]); + + if (File::exists($this->configPath)) { + File::delete($this->configPath); + } + } + + protected function tearDown(): void + { + if (File::exists($this->configPath)) { + File::delete($this->configPath); + } + + parent::tearDown(); + } + + public function test_adds_customer_route_with_tls(): void + { + $generator = app(TraefikGenerator::class); + $generator->addCustomerRoute('kunde1.hexahost.de', '10.12.10.11'); + + $yaml = File::get($this->configPath); + + $this->assertStringContainsString('kunde1.hexahost.de', $yaml); + $this->assertStringContainsString('10.12.10.11', $yaml); + $this->assertStringContainsString('letsencrypt', $yaml); + $this->assertStringContainsString('websecure', $yaml); + } + + public function test_preserves_existing_non_managed_routes(): void + { + File::ensureDirectoryExists(dirname($this->configPath)); + File::put($this->configPath, <<<'YAML' +http: + routers: + admin-panel: + rule: "Host(`admin.example.com`)" + service: admin-panel + services: + admin-panel: + loadBalancer: + servers: + - url: "http://127.0.0.1:8080" +YAML); + + $generator = app(TraefikGenerator::class); + $generator->addCustomerRoute('kunde1.hexahost.de', '10.12.10.12'); + + $yaml = File::get($this->configPath); + + $this->assertStringContainsString('admin-panel', $yaml); + $this->assertStringContainsString('kunde1.hexahost.de', $yaml); + } + + public function test_rejects_invalid_domain(): void + { + $this->expectException(\App\Exceptions\Hosting\TraefikException::class); + + app(TraefikGenerator::class)->addCustomerRoute('not a domain!', '10.12.10.11'); + } +} diff --git a/vite.config.js b/vite.config.js new file mode 100644 index 0000000..1fd66d5 --- /dev/null +++ b/vite.config.js @@ -0,0 +1,24 @@ +import { defineConfig } from 'vite'; +import laravel from 'laravel-vite-plugin'; +import { bunny } from 'laravel-vite-plugin/fonts'; +import tailwindcss from '@tailwindcss/vite'; + +export default defineConfig({ + plugins: [ + laravel({ + input: ['resources/css/app.css', 'resources/js/app.js'], + refresh: true, + fonts: [ + bunny('Instrument Sans', { + weights: [400, 500, 600], + }), + ], + }), + tailwindcss(), + ], + server: { + watch: { + ignored: ['**/storage/framework/views/**'], + }, + }, +}); diff --git a/whmcs-module/hexahost/hexahost.php b/whmcs-module/hexahost/hexahost.php new file mode 100644 index 0000000..7ce0015 --- /dev/null +++ b/whmcs-module/hexahost/hexahost.php @@ -0,0 +1,148 @@ + 'HexaHost Proxmox Panel', + 'APIVersion' => '1.1', + 'RequiresServer' => true, + 'DefaultNonSSLPort' => '443', + 'DefaultSSLPort' => '443', + ]; +} + +function hexahost_ConfigOptions(): array +{ + return [ + 'plan_slug' => [ + 'FriendlyName' => 'Hosting Plan (Slug)', + 'Type' => 'text', + 'Size' => '32', + 'Description' => 'z.B. small, medium, large', + ], + 'behind_traefik' => [ + 'FriendlyName' => 'Hinter Traefik', + 'Type' => 'yesno', + 'Description' => 'Subdomain + DNS via Traefik', + ], + 'provision_mode' => [ + 'FriendlyName' => 'Provisionierungsmodus', + 'Type' => 'dropdown', + 'Options' => 'template,iso,empty', + 'Description' => 'template | iso | empty', + ], + ]; +} + +function hexahost_CreateAccount(array $params): string +{ + $payload = [ + 'whmcs_service_id' => (int) $params['serviceid'], + 'whmcs_client_id' => (int) $params['clientsdetails']['userid'], + 'whmcs_order_id' => (int) ($params['model']['orderid'] ?? 0), + 'client_email' => $params['clientsdetails']['email'], + 'client_name' => trim($params['clientsdetails']['firstname'].' '.$params['clientsdetails']['lastname']), + 'plan_slug' => $params['configoption1'] ?: 'small', + 'hostname' => $params['domain'] ?: 'vm-'.$params['serviceid'], + 'subdomain' => $params['customfields']['subdomain'] ?? explode('.', $params['domain'])[0] ?? 'vm'.$params['serviceid'], + 'behind_traefik' => ($params['configoption2'] ?? '') === 'on', + 'provision_mode' => $params['configoption3'] ?: 'template', + 'template_slug' => $params['customfields']['template_slug'] ?? null, + 'iso_volid' => $params['customfields']['iso_volid'] ?? null, + ]; + + $response = hexahost_apiRequest($params, 'POST', '/api/whmcs/services', $payload); + + if (! empty($response['error'])) { + return $response['error']; + } + + return 'success'; +} + +function hexahost_SuspendAccount(array $params): string +{ + $response = hexahost_apiRequest($params, 'POST', '/api/whmcs/services/'.$params['serviceid'].'/suspend', []); + + return ! empty($response['error']) ? $response['error'] : 'success'; +} + +function hexahost_UnsuspendAccount(array $params): string +{ + $response = hexahost_apiRequest($params, 'POST', '/api/whmcs/services/'.$params['serviceid'].'/unsuspend', []); + + return ! empty($response['error']) ? $response['error'] : 'success'; +} + +function hexahost_TerminateAccount(array $params): string +{ + $response = hexahost_apiRequest($params, 'DELETE', '/api/whmcs/services/'.$params['serviceid'], []); + + return ! empty($response['error']) ? $response['error'] : 'success'; +} + +function hexahost_AdminServicesTabFields(array $params): array +{ + $response = hexahost_apiRequest($params, 'GET', '/api/whmcs/services/'.$params['serviceid'], []); + + if (! empty($response['customer'])) { + return [ + 'Panel VMID' => $response['customer']['vmid'] ?? '—', + 'Status' => $response['customer']['status'] ?? '—', + 'IP' => $response['customer']['ip_address'] ?? '—', + ]; + } + + return ['Status' => $response['error'] ?? 'Keine Daten']; +} + +function hexahost_apiRequest(array $params, string $method, string $path, array $body): array +{ + $baseUrl = rtrim($params['serverhostname'] ?: $params['serverip'], '/'); + if (! str_starts_with($baseUrl, 'http')) { + $baseUrl = 'https://'.$baseUrl; + } + + $secret = $params['serverpassword'] ?: $params['serveraccesshash']; + $json = json_encode($body); + $timestamp = time(); + $signature = hash_hmac('sha256', $timestamp.'.'.$json, $secret); + + $ch = curl_init($baseUrl.$path); + curl_setopt_array($ch, [ + CURLOPT_RETURNTRANSFER => true, + CURLOPT_CUSTOMREQUEST => $method, + CURLOPT_POSTFIELDS => $method === 'GET' || $method === 'DELETE' ? null : $json, + CURLOPT_HTTPHEADER => [ + 'Content-Type: application/json', + 'Accept: application/json', + 'X-Whmcs-Timestamp: '.$timestamp, + 'X-Whmcs-Signature: '.$signature, + ], + CURLOPT_TIMEOUT => 120, + CURLOPT_SSL_VERIFYPEER => true, + ]); + + $raw = curl_exec($ch); + $code = (int) curl_getinfo($ch, CURLINFO_HTTP_CODE); + curl_close($ch); + + $data = json_decode($raw ?: '{}', true) ?: []; + + if ($code >= 400) { + return ['error' => $data['message'] ?? $data['error'] ?? 'HTTP '.$code]; + } + + return $data; +}