Attention needed

Saeghe is a difficult name to pronounce. Therefore, Saeghe project has been renamed to phpkg.

This website no longer receives updates.

Please visit phpkg website at


Currently, there are two options for installing Saeghe. Both of these methods are going to install it in your home directory, so you can get access to it from any path and use it as all your projects’ package managers.

These installations work on Unix/Linux and macOS systems. Support for windows will be added soon.


You need to have git installed on your machine as well as PHP version >= 8.1 with php-mbstring, php-zip, and php-curl extensions installed.

Step 1: Download

First step is to download required files. You can do it automatically or manually.

Use Installer

Using the installer will be the easiest method. You can simply run the following line, and you should have it ready to use:

bash -c "$(curl -fsSL"

This command will make a .saeghe directory in your home directory and, it installs the required source files under this directory. It also adds its source directory to your $PATH so you can easily start to use it.

You need to open a new terminal to be able to use commands on saeghe.

Manual Installation

You can manually install it by following these steps:

  • Download the latest version from github
  • Unzip the downloaded file
  • Rename the unzipped directory to saeghe
  • Download the latest version of CLI package from github
  • Unzip the cli package and move its files and directories to saeghe/Packages/saeghe/cli
  • Download the latest version of Datatype package from github
  • Unzip the datatype package and move its files and directories to saeghe/Packages/saeghe/datatype
  • Download the latest version of FileManager package from github
  • Unzip the file manager package and move its files and directories to saeghe/Packages/saeghe/file-manager
  • Make a copy from credentials.example.json to .credentials.json
  • Add path to its source directory into your $PATH
  • Either, open a new tab or source your .bashrc/.zshrc file
  • To make sure everything is installed correctly, run saeghe --help and you should see the help.

Step 2: Source your terminal

If you used the installer, a path to Saeghe has been added to your source file (.bashrc or .zshrc). You need to either, open a new terminal or source your current terminal to get access to new added path.

Step 3: Add GitHub token

You need to have a GitHub access token. A GitHub token is required to read repositories.

Note If you already have an environment variable named GITHUB_TOKEN with your GitHub token, then you don't need to do anything.

You can generate a token by following this link. Then you can use the following command to add it to credentials:

saeghe credential {your-github-token}