Alias alternatives and similar libraries
Based on the "Miscellaneous" category.
Alternatively, view Alias alternatives based on common mentions on social networks and blogs.
-
Country List
:globe_with_meridians: List of all countries with names and ISO 3166-1 codes in all languages and data formats. -
Essence
Extracts information about web pages, like youtube videos, twitter statuses or blog articles. -
sabre/vobject
:date: The VObject library for PHP allows you to easily parse and manipulate iCalendar and vCard objects -
Lodash-PHP
Easy to use utility functions for everyday PHP projects. This is a port of the Lodash JS library to PHP -
Embera
A Oembed consumer library, that gives you information about urls. It helps you replace urls to youtube or vimeo for example, with their html embed code. It has advanced features like offline support, responsive embeds and caching support. -
ClassPreloader
Optimizes class loading performance by generating a single PHP file containing all of the autoloaded files. -
Metrics
Simple library that abstracts different metrics collectors. I find this necessary to have a consistent and simple metrics (functional) API that doesn't cause vendor lock-in. -
Cake Utility
[READ-ONLY] CakePHP Utility classes such as Inflector, Text, Hash, Security and Xml. This repo is a split of the main code that can be found in https://github.com/cakephp/cakephp -
RedisSessionHandler
An alternative Redis session handler for PHP featuring per-session locking and session fixation protection -
Yell
PHP package to make your objects strict and throw exception when you try to access or set some undefined property in your objects.
CodeRabbit: AI Code Reviews for Developers

* Code Quality Rankings and insights are calculated and provided by Lumnify.
They vary from L1 to L5 with "L5" being the highest.
Do you think we are missing an alternative of Alias or a related project?
Popular Comparisons
README
Fuel Alias
Library for lazy class aliasing.
Install
Via Composer
$ composer require fuelphp/alias
Usage
Within FuelPHP class aliases are used to provide easy access to namespaced classes and facilitate class inheritance injection.
The package exposes an alias manager which lets you create 3 types of aliases:
- LiteralA one-to-one translation. Class "Namespaced\Classname" translates to "Another\Classname".
- NamespaceNamespace aliases allow you to alias an entire namespace with one call.
- ReplacementA pattern is matched an through replacements a new class is generated. "Namespace\*" maps to "Alias\$1".
When registering the alias manager append or prepends itself to the autoload stack to act as a pre-processor or fallback. Depending on the amount of aliases and it could be beneficial to alternate between pre- or appending.
By default the manager will prepend itself to the autoloader stack.
Basic Usage
// Create a new alias manager
$manager = new Fuel\Alias\Manager;
// Register the manager
$manager->register();
// Alias one class
$manager->alias('Alias\Me', 'To\This');
// Or alias many
$manager->alias([
'Alias\This' => 'To\Me',
'AndAlias\This' => 'To\SomethingElse',
]);
//
Namespace usage
// alias to a less deep namespace
$manager->aliasNamespace('Less\Deep', 'Some\Super\Deep\Name\Space');
// alias a namespace to global
$manager->aliasNamespace('Some\Space', '');
Pattern Usage
$manager = new Fuel\Alias\Manager;
// Alias with wildcards
$manager->aliasPattern('Namespaced\*', 'Other\\$1');
$otherThing = new Namespaced\Thing;
This can result into class resolving that doesn't exists. Luckily the package is smart enough the check wether the class exists and will continue to look for the correct class if the resolved class does not exist. This is also taken into account when it comes to caching. Only resolved classes that exist will be cached.
Contributing
Thank you for considering contribution to FuelPHP framework. Please see CONTRIBUTING for details.
License
The MIT License (MIT). Please see [License File](LICENSE) for more information.
*Note that all licence references and agreements mentioned in the Alias README section above
are relevant to that project's source code only.