dualmedia/common
Shared interfaces and reusable logic for DualMedia packages. Typically installed as an internal dependency rather than directly. Provides common contracts and helpers used across the DualMedia ecosystem.
illuminate/* or laravel/framework) mean it can be adopted incrementally.
CommonServiceProvider to bind interfaces to Laravel classes).CommonServiceProvider to bind interfaces?dualmedia/laravel-common) to bridge gaps (e.g., IoC bindings, Eloquent integrations).composer.json as a private package (if internal) or public dependency."require": {
"dualmedia/common": "^1.0"
}
dualmedia/common.CommonServiceProvider to bind interfaces to Laravel classes:
public function register(): void {
$this->app->bind(
\DualMedia\Common\Contracts\ExampleInterface::class,
\App\Services\ExampleService::class
);
}
composer why-not dualmedia/common.dualmedia/common.// Before
interface UserRepositoryInterface { ... }
// After
use DualMedia\Common\Contracts\UserRepositoryInterface;
| Risk | Impact | Mitigation |
|---|---|---|
| Package abandonment | Broken dependencies, no updates | Fork the repo or find alternatives. |
| Breaking changes | Migration effort, downtime | Test thoroughly in staging. |
| Poor documentation | Slow adoption, misconfiguration | Create internal docs/examples. |
| Laravel incompatibility | Integration failures | Build a wrapper layer. |
| Overhead from abstraction | Slight performance degradation | Benchmark and optimize critical paths. |
How can I help you explore Laravel packages today?