New

Just launched: Vueblocks, a brand-new search engine for Vue packages! Explore Vueblocks →

craftcms/laravel-aliases

A Laravel wrapper around yiisoft/aliases
137,311

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 choice

Solid 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
Maintainer: brandonkelly

Aliases

Latest Version on Packagist GitHub Tests Action Status GitHub Code Style Action Status Total Downloads

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

craftcms/laravel-dependency-aware-cache

A dependency aware cache repository for Laravel

137,518 2
craftcms/yii2-adapter

Craft CMS Yii2 adapter

3,324 1
qingzhi0508/wechat-robot

qiye-wechat notify

18 0
craftcms/laravel-ruleset-validation

Validate requests and objects with reusable Laravel rulesets.

122,562 2
mobileka/scope-applicator

Scope Applicator is a PHP trait that makes data filtering and sorting easy.

1,218 25

Version History

Version Released PHP Laravel License
2.1.0 ^8.2 ^12.0||^13.0 MIT
2.0.1 ^8.2 ^10.0||^11.0||^12.0 MIT
2.0.0 ^8.2 ^10.0||^11.0||^12.0 MIT
1.0.0 ^8.2 ^10.0||^11.0||^12.0 MIT