Illuminate\Support) and packages like spatie/laravel-support or laravelista/support. Adopting this would require rewriting or bridging functionality.Support\Collection vs. Laravel’s Illuminate\Support\Collection).Arr, Str helpers).spatie/async).Illuminate\Support is actively maintained.Why Hyperf’s Support?
Support\Traits) missing in Laravel?Migration Strategy
spatie/laravel-array-to-object)?Long-Term Viability
Illuminate\Support?support is designed for:
Illuminate\Container).Support\Coroutine).Illuminate\Support\*, Illuminate\Macroable.spatie/laravel-array-to-object, laravelista/support.spatie/async (for coroutine-like behavior).| Option | Effort | Risk | Feasibility |
|---|---|---|---|
| Drop-in Replacement | Low | High (conflicts) | ❌ Not possible |
| Feature Extraction | Medium | Medium | ✅ Copy-paste key classes |
| Middleware Bridge | High | Medium | ✅ For Hyperf-Laravel interop |
| Fork & Adapt | High | High (maintenance) | ⚠️ Only if critical gaps exist |
support requires PHP 8.1+ (Laravel 10+ is compatible).support may pull in hyperf/di, hyperf/context, etc.—blocking Laravel’s autoloader.replace or class aliases.Collection may use coroutine-aware methods (e.g., asyncEach()).Collection is synchronous-only.composer why-not hyperf/support to identify conflicts.Arr, Str, Collection into a Laravel-compatible package.collect([])->macro()).Arr::dot()).Illuminate\Support.support may evolve; Laravel’s won’t.support has no dependents (GitHub stars: 1). No ecosystem backing.support may assume async workers; Laravel’s synchronous stack could misbehave.support for distributed task utilities.| Scenario | Impact | Mitigation |
|---|---|---|
| Dependency Conflict | Build fails | Use composer replace or aliases |
| Behavioral Incompatibility | Runtime errors (e.g., coroutine leaks) | Mock Hyperf context in tests |
| Fork Stagnation | Unmaintained package | Fall back to Laravel’s native support |
| Performance Regression | Async methods block sync stack | Avoid coroutine-dependent features |
Arr helpers).support lacks Laravel-specific guides.Context management).Illuminate\Support has better autocompletion.How can I help you explore Laravel packages today?