craftcms/laravel-aliases
Laravel integration for Craft CMS aliases. Defines common path/URL aliases and resolves them through Laravel’s config/container so you can use Craft-style alias strings in your app, CLI, and packages with consistent environment-aware values.
config('aliases.app.logos') resolving to /storage/app/public/logos). Reduces hardcoded paths in codebases, improving maintainability.
ramsey/composer-install v4) to ensure compatibility with modern PHP tooling.storage/tenant-{id}/uploads).vendor.plugin-name::assets).lang/en/assets).define() calls or global constants).public_path() suffices).spatie/laravel-config-array or custom caching layers).ramsey/composer-install v4 may require PHP 8.1+ or newer Composer versions).For Executives:
"This package lets us eliminate hardcoded paths in our Laravel app—now fully compatible with Laravel 13—reducing tech debt and making it easier to add plugins or scale features. For example, instead of scattering /storage/app/uploads across 50+ files, we’d use config('aliases.app.uploads'), cutting refactoring time by 30% and future-proofing for multi-tenant or modular designs. It’s a low-risk, high-reward tool to clean up our architecture with minimal dev effort, and the latest update ensures we’re aligned with Laravel’s newest releases."
For Engineering: *"craftcms/laravel-aliases (v2.1.0) wraps Yii’s robust alias system to give us Laravel-native path resolution with zero boilerplate—now officially supporting Laravel 13. Key benefits:
config/aliases.php or runtime (e.g., Alias::set('app.logos', $tenant->logo_path)).plugin.acme::assets) without conflicts.config:cache for zero runtime overhead."*How can I help you explore Laravel packages today?