https://github.com/craftcms/laravel-aliases
A Laravel Facade around yiisoft/aliases
https://github.com/craftcms/laravel-aliases
Last synced: about 12 hours ago
JSON representation
A Laravel Facade around yiisoft/aliases
- Host: GitHub
- URL: https://github.com/craftcms/laravel-aliases
- Owner: craftcms
- License: mit
- Created: 2025-06-05T18:39:05.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2026-03-16T21:48:47.000Z (3 months ago)
- Last Synced: 2026-03-17T08:26:50.717Z (3 months ago)
- Language: PHP
- Homepage:
- Size: 64.5 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE.md
Awesome Lists containing this project
README
# Aliases
[](https://packagist.org/packages/craftcms/laravel-aliases)
[](https://github.com/craftcms/laravel-aliases/actions?query=workflow%3Arun-tests+branch%3Amain)
[](https://github.com/craftcms/laravel-aliases/actions?query=workflow%3A"Fix+PHP+code+style+issues"+branch%3Amain)
[](https://packagist.org/packages/craftcms/laravel-aliases)
A Laravel wrapper around yiisoft/aliases
## Installation
You can install the package via composer:
```bash
composer require craftcms/laravel-aliases
```
## Usage
```php
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
```bash
composer test
```
## Changelog
Please see [CHANGELOG](CHANGELOG.md) for more information on what has changed recently.
## Contributing
Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
## Security Vulnerabilities
Please review [our security policy](../../security/policy) on how to report security vulnerabilities.
## Credits
- [Pixel & Tonic](https://github.com/craftcms)
- [All Contributors](../../contributors)
## License
The MIT License (MIT). Please see [License File](LICENSE.md) for more information.