craftcms/laravel-aliases
Larablocks Analysis
craftcms/laravel-aliases works with Laravel 12 and 13 (latest release 2.1.0, Mar 17, 2026).
Laravel 10 and 11 in earlier releases.
Recommendation checks
Solid choiceSolid choice: maintained and up to date, meets 3 of 4 checks; below the bar for Recommended on use.
- Works with Laravel 13, the current version
- Released in the last 12 months (Mar 17, 2026)
- 48,881 downloads a month (at least 10,000)
- 0 GitHub stars (needs 100)
State
Maintained- Last stable release: Mar 17, 2026.
- 2 releases in the last 12 months.
- First released: Jul 22, 2025.
- Monthly downloads: 48,881.
- 2 open issues on GitHub.
Data from Packagist and GitHub, checked by Larablocks on Nov 27, 2026.
| Install | |
|---|---|
composer require craftcms/laravel-aliases |
|
| Latest Version: | 2.1.0 |
| PHP: | ^8.2 |
| Laravel: | 12 · 13 |
| Older releases: | 10 · 11 |
| License: | MIT |
| Last Updated: | Jun 22, 2026 |
| Links: | GitHub · Packagist |
Aliases
A Laravel wrapper around yiisoft/aliases
Installation
You can install the package via composer:
composer require craftcms/laravel-aliases
Usage
use CraftCms\Aliases\Aliases;
Aliases::set('@root', __DIR__);
Aliases::set('@vendor', '@root/vendor');
Aliases::set('@bin', '@vendor/bin');
echo Aliases::get('@bin/phpunit'); // /path/to/vendor/bin/phpunit
Testing
composer test
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
License
The MIT License (MIT). Please see License File for more information.
Related Packages
Validate requests and objects with reusable Laravel rulesets.
Version History
| Version | Released | PHP | Laravel | License |
|---|---|---|---|---|
| 2.1.0 | ^8.2 | ^12.0|| | MIT | |
| 2.0.1 | ^8.2 | ^10.0|| | MIT | |
| 2.0.0 | ^8.2 | ^10.0|| | MIT | |
| 1.0.0 | ^8.2 | ^10.0|| | MIT |