Skip to content

craftcms/laravel-aliases

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.

About

A Laravel Facade around yiisoft/aliases

Resources

License

Code of conduct

Contributing

Security policy

Stars

Watchers

Forks

Contributors 3

  •  
  •  
  •  

Languages