freedomtech-hosting / polydock-app-amazeeio-generic
Polydock App - amazee.io Generic
Installs: 901
Dependents: 3
Suggesters: 0
Security: 0
Stars: 0
Watchers: 0
Forks: 1
Open Issues: 1
pkg:composer/freedomtech-hosting/polydock-app-amazeeio-generic
Requires
- dev-main
- v0.1.0
- v0.0.81
- v0.0.80
- v0.0.79
- v0.0.78
- v0.0.77
- v0.0.76
- v0.0.75
- v0.0.74
- v0.0.73
- v0.0.72
- v0.0.71
- v0.0.70
- v0.0.69
- v0.0.68
- v0.0.67
- v0.0.66
- v0.0.65
- v0.0.64
- v0.0.63
- v0.0.62
- v0.0.61
- v0.0.60
- v0.0.59
- v0.0.58
- v0.0.57
- v0.0.56
- v0.0.55
- v0.0.54
- v0.0.52
- v0.0.51
- v0.0.50
- v0.0.49
- v0.0.48
- v0.0.47
- v0.0.46
- v0.0.45
- v0.0.44
- v0.0.43
- v0.0.42
- v0.0.41
- v0.0.40
- v0.0.39
- v0.0.38
- v0.0.37
- v0.0.36
- v0.0.35
- v0.0.34
- v0.0.33
- v0.0.32
- v0.0.31
- v0.0.30
- v0.0.29
- v0.0.28
- v0.0.27
- v0.0.26
- v0.0.25
- v0.0.24
- v0.0.23
- v0.0.22
- v0.0.21
- v0.0.20
- v0.0.19
- v0.0.18
- v0.0.17
- v0.0.16
- v0.0.15
- v0.0.14
- v0.0.13
- v0.0.12
- v0.0.11
- v0.0.10
- v0.0.9
- v0.0.8
- v0.0.7
- v0.0.6
- v0.0.5
- v0.0.4
- v0.0.3
- v0.0.2
- v0.0.1
This package is auto-updated.
Last update: 2026-02-22 04:09:14 UTC
README
A PHP library providing generic Lagoon application implementations for Polydock. This package includes base classes for deploying and managing applications on the amazee.io Lagoon platform.
Classes
PolydockApp
The base class for generic Lagoon applications. Implements the full Polydock lifecycle for creating, deploying, upgrading, and removing applications on Lagoon.
use FreedomtechHosting\PolydockAppAmazeeioGeneric\PolydockApp; #[PolydockAppTitle('Generic Lagoon App')] class PolydockApp extends PolydockAppBase
Features:
- Full lifecycle management (create, deploy, upgrade, remove)
- Lagoon API integration
- Health monitoring
- Instance claiming
PolydockAiApp
Extends PolydockApp with AI infrastructure support. Use this as a base class for applications that require AI backend services.
use FreedomtechHosting\PolydockAppAmazeeioGeneric\PolydockAiApp; #[PolydockAppTitle('Generic Lagoon AI App')] #[PolydockAppStoreFields] class PolydockAiApp extends PolydockApp implements HasStoreAppFormFields
Features:
- Everything from
PolydockApp - AI backend client integration
- Custom Store App form fields support
- Encrypted field storage
Extending
Basic Extension
<?php namespace MyVendor\MyApp; use FreedomtechHosting\PolydockApp\Attributes\PolydockAppTitle; use FreedomtechHosting\PolydockAppAmazeeioGeneric\PolydockApp; #[PolydockAppTitle('My Custom App')] class MyCustomApp extends PolydockApp { public static string $version = '1.0.0'; public static function getAppVersion(): string { return self::$version; } // Override lifecycle methods as needed public function postDeployAppInstance($appInstance) { $appInstance = parent::postDeployAppInstance($appInstance); // Custom post-deploy logic $this->info('Custom deployment complete'); return $appInstance; } }
AI App with Custom Form Fields
<?php namespace MyVendor\MyAiApp; use Filament\Forms; use FreedomtechHosting\PolydockApp\Attributes\PolydockAppTitle; use FreedomtechHosting\PolydockApp\Attributes\PolydockAppStoreFields; use FreedomtechHosting\PolydockAppAmazeeioGeneric\PolydockAiApp; #[PolydockAppTitle('My AI App')] #[PolydockAppStoreFields] class MyAiApp extends PolydockAiApp { public static function getStoreAppFormSchema(): array { return [ Forms\Components\Section::make('AI Configuration') ->schema([ Forms\Components\TextInput::make('api_endpoint') ->url() ->required(), Forms\Components\TextInput::make('api_key') ->password() ->extraAttributes(['encrypted' => true]), ]), ]; } public static function getStoreAppInfolistSchema(): array { return [ // Infolist components for the View page ]; } }