zonuexe / aliasloader
Class aliasing for provide flat namespace on your application.
0.0.2
2016-01-15 15:00 UTC
Requires (Dev)
- phploc/phploc: ^2.1.5
- phpmd/phpmd: @stable
- phpunit/phpunit: ^4.8.18
- satooshi/php-coveralls: dev-master
- theseer/phpdox: ^0.8.1.1
This package is not auto-updated.
Last update: 2024-12-21 20:35:55 UTC
README
Class aliasing for provide flat namespace on your Application.
Note
This library is designed for Application. Do not use AliasLoader
by public library code.
Installation
Composer
composer require zonuexe/aliasloader
Features
Before
You have to write use
statement to each files.
<?php namespace MyProject\Nested; use Deep\Nested\Library\Module\Awesome\Miracle as AwesomeClass; AwesomeClass::awesome_method();
After
<?php /** * bootstrap.php */ \Teto\AliasLoader::add('Deep\Nested\Library\Module\Awesome\Miracle', 'AwesomeClass');
<?php namespace MyProject\Nested; AwesomeClass::awesome_method();
Copyright
see ./LICENSE
.
Class aliasing for provide flat namespace on your application
Copyright (c) 2015 USAMI Kenta <tadsan@zonu.me>
Teto Kasane
I love Teto Kasane. (ja: Teto Kasane official site)
r /
__ , --ヽ!-- .、_
! `/::::;::::ヽ l
!二二!::/}::::丿ハニ|
!ニニ.|:/ ノ/ }::::}コ
L二lイ 0´ 0 ,':ノコ
lヽノ/ヘ、 '' ▽_ノイ ソ
ソ´ /}`ス / ̄ ̄ ̄ ̄/
.(_:;つ/ 0401 / カタカタ
 ̄ ̄ ̄ ̄ ̄\/____/