contao/manager-plugin
Provides Contao Manager integration hooks for Composer packages. Lets extensions register with the Contao Manager, add configuration and plugin logic for installs/updates, and streamline compatibility with the Contao CMS Manager workflow.
contao/manager-plugin is a Contao Manager plugin, not a standalone Laravel/PHP package. It integrates with Contao CMS (a PHP-based CMS) to extend its Contao Manager (a package manager for Contao). This makes it incompatible with Laravel by design, as it is tightly coupled to Contao’s ecosystem (e.g., Contao’s dependency injection, template system, and core APIs).spatie/laravel-contao).spatie/laravel-package-tools) or custom package repositories would be more relevant.ContaoManagerPluginInterface).Contao\CoreBundle\Framework).| Risk Factor | Severity | Mitigation Strategy |
|---|---|---|
| Incompatible Ecosystem | Critical | Avoid unless Contao is a core dependency. |
| Dependency Conflicts | High | Isolate Contao in a separate Composer install. |
| Maintenance Overhead | High | Requires dual-stack expertise (Laravel + Contao). |
| Lack of Laravel Support | High | No official Laravel integration; community support minimal. |
| Versioning Risks | Medium | Contao and Laravel may have conflicting PHP/Composer versions. |
spatie/laravel-package-tools, orchestra/platform.ContaoManagerPluginInterface).Contao\CoreBundle).ManagerPlugin).vendor/).contao.example.com vs. laravel.example.com).spatie/laravel-package-tools).kernel to coexist with Laravel’s).composer.json for Contao dependencies to avoid conflicts.# Laravel root
composer require laravel/framework
# Contao subdirectory
composer require contao/core-bundle contao/manager-plugin
Route::prefix('contao')->group(function () {
// Proxy to Contao’s front controller (e.g., `index.php`)
});
// Example: Custom facade to call Contao Manager
class ContaoManagerFacade extends Facade {
protected static function getFacadeAccessor() { return 'contao.manager'; }
}
| Component | Compatibility Status | Notes |
|---|---|---|
| PHP Version | ⚠️ Partial | Contao 4.x may require PHP 7.4–8.1; Laravel 10.x needs PHP 8.1+. |
| Composer Dependencies | ❌ Conflicts | Contao’s contao/core-bundle may pull in versions incompatible with Laravel. |
| Autoloading | ❌ Breaks | Contao’s PSR-4 autoloading may clash with Laravel’s. |
| Service Container | ❌ Incompatible | Contao uses Symfony’s DI; Laravel uses its own. |
| Database | ⚠️ Conditional | Contao uses its own DB schema; Laravel may need migrations. |
AppServiceProvider.
b. Merge routing tables (risky; may cause conflicts).
c. Test thoroughly (Contao’s hooks may break Laravel’s middleware).contao/manager-plugin only within Contao’s context.spatie/laravel-package-tools.contao/manager-plugin updates must be tested in Contao’s context.core-bundle may pull in unnecessary Symfony components for Laravel.ManagerPlugin failing due to Laravel’s autoloader).How can I help you explore Laravel packages today?