You can use the alias command to register an alias for a specific package for your application. The defined alias can be used on any other command that requires a package as an argument. This feature can be useful when you want to use a package in multiple places in your application, and you don't want to remember the full package url.


For defining an alias, you need to pass an alias and its correspond package URL to the alias command:

phpkg alias your-alias{owne}/{repo}

For example:

phpkg alias datatype

After defining the alias, you can easily pass it to other commands:

phpkg add datatype
phpkg remove datatype
phpkg update datatype

Aliases must be unique in an application, but you are free to define as many alias that you need as aliases for a specific package:

phpkg alias test-runner
phpkg alias tests
phpkg alias php-repos/tests