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.config/aliases.php files or monolithic path resolvers). Low-risk adoption with MIT license and minimal dependencies.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).For Executives:
"This package lets us eliminate hardcoded paths in our Laravel app, 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."
For Engineering: *"craftcms/laravel-aliases wraps Yii’s robust alias system to give us Laravel-native path resolution with zero boilerplate. 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?