A package manager
to boost your code
phpkg is a modern PHP package manager that brings Git-based dependency management with function-first autoloading. Write code however you want—functional or OOP.
Get started in seconds
Install phpkg with a single command and start using it immediately
bash -c "$(curl -fsSL https://raw.githubusercontent.com/php-repos/phpkg-installation/master/install.sh)"
Then try it out: phpkg run php-repos/chuck-norris
phpkg is more than a package manager
We've created a tool that has everything you need to build a rapid application.
-
Functional and OOP
- It supports both, Functional and OOP programming!
-
Function autoloading
- It autoloads namespaced functions alongside classes—no class wrappers needed!
-
No intermediate repo
- It uses git packages directly from repository URLs.
-
JIT compile
- It only requires used files to your project, not all of them!
Why choose phpkg?
See how phpkg compares to traditional package managers
| Feature | phpkg | Composer |
|---|---|---|
| Function autoloading |
|
|
| Git-based (no registry) |
|
Via Packagist |
| Standalone execution |
|
|
| Build system |
|
External tools |