/PKGi-Server-PHP

PHP Class for a PKGi Server.

Primary LanguagePHP

PKGi-Server-PHP

Useful class to make your own PKGi server without a database. If you do use a database you can easily integrate it with the addHomebrew function.

See packages.php for an example.

How To Use

Use theorywrongs generate_refs.php script to generate a json file for your homebrew. You then assign the homebrew a ID of your own (in the example below we've assigned ID 1), and put these files in the directories as follows:

pkgs/1.pkg
refs/1.json
icons/1.png

Then, in packages.php, you can add the following:

$PKGi->addHomebrew('My Homebrew', 1);

It will then be added to the repo.

Credit to theorywrong for PKGi.