21torr/hosting
21torr/hosting is a small Symfony bundle providing essential tools for hosting Symfony-based applications, helping streamline deployment and operations with basic hosting utilities and sensible defaults.
spatie/laravel-symfony).BuildHookInterface/DeployHookInterface pattern is highly extensible and could be adapted for Laravel’s service providers or event listeners (e.g., booted, registered).live/ready health check infrastructure maps to Laravel’s PingEndpoints or UptimeRobot integrations but requires custom implementation.config('app.version') or artisan package:discover with more granularity.spatie/laravel-symfony).post-deploy).HostingEnvironment to Laravel’s config() or env().spatie/laravel-symfony) may mitigate this but adds complexity.hosting → 21torr_hosting) and deprecated interfaces, requiring migration effort.spatie/laravel-deployer (for CI/CD hooks).laravel-zero/framework (for CLI tools).deployer/deployer or laravel/envoy.spatie/laravel-health or beberlei/assert.config('app') or composer.json parsing.spatie/laravel-symfony to bridge Symfony’s ConsoleComponent and DependencyInjection.Illuminate\Foundation\Bootstrap\BootServiceProvider).hosting:hook:build with Laravel’s booted event or Artisan commands.post-deploy scripts in .env or GitHub Actions.Http\Middleware\CheckForMaintenanceMode or spatie/laravel-health.config('app.build_info') or database cache.HostingEnvironment class to test Symfony ↔ Laravel compatibility.ContainerInterface with Laravel’s Container via spatie/laravel-symfony.BuildHookInterface to Laravel’s Service Providers (e.g., register() for post-build).hosting:validate-app as a custom Artisan command.21torr_hosting → hosting in Laravel’s config/services.php).| Feature | Laravel Native Alternative | Compatibility Risk |
|---|---|---|
HostingEnvironment |
config('app.env'), app()->environment() |
Low (simple wrapper needed) |
| Build Hooks | booted event, register() in Service Providers |
Medium (requires custom implementation) |
| Deploy Hooks | .env scripts, GitHub Actions |
Low (external to Laravel) |
| Health Checks | spatie/laravel-health, CheckForMaintenanceMode |
Medium (Doctrine-specific logic may not fit) |
| Build Info | config('app'), composer.json parsing |
Low (simple JSON storage) |
HostingEnvironment for environment detection (e.g., isDebug()).hosting:hook:build as a custom Artisan command only if critical.spatie/laravel-symfony).21torr_hosting config key conflicts with Laravel’s services.php structure.config/services.php with a custom wrapper class.Log::channel().spatie/laravel-log./up endpoint).Cache::remember()).HostingTier could help isolate tenant environments, but requires custom Laravel implementation.| Risk | Impact | Mitigation Strategy |
|---|---|---|
| Symfony Breaking Changes | Laravel integration breaks | Pin to specific Symfony version in `com |
How can I help you explore Laravel packages today?