Introduction

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.

Usage

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

phpkg alias your-alias https://github.com:{owne}/{repo}

For example:

phpkg alias datatype https://github.com:php-repos/datatype.git

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 https://github.com:php-repos/test-runner.git
phpkg alias tests https://github.com:php-repos/test-runner.git
phpkg alias php-repos/tests https://github.com:php-repos/test-runner.git

Why This Matters?

We believe that PHP has enormous untapped potential, and we are dedicated to creating tools that empower developers to harness its full power and capabilities. We aim to unlock this potential by creating tools that help developers harness PHP's full capabilities and extend its power to new heights. To this end, we developed phpkg, a cutting-edge package manager that simplifies the process of using PHP to its fullest extent. With phpkg, developers can take advantage of all that PHP has to offer and build more efficient, scalable, and powerful applications.