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 phpkg.com
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.
Note
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.
First step is to download required files. You can do it automatically or manually.
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 https://raw.github.com/saeghe/installation/master/install.sh)"
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
.
You can manually install it by following these steps:
saeghe
CLI
package from githubsaeghe/Packages/saeghe/cli
Datatype
package from githubsaeghe/Packages/saeghe/datatype
FileManager
package from githubsaeghe/Packages/saeghe/file-manager
credentials.example.json
to .credentials.json
$PATH
.bashrc
/.zshrc
filesaeghe --help
and you should see the help.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.
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 github.com {your-github-token}