Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/istiaqhossain/optivine/archive/refs/heads/dev.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Development
Composer
Install packages
composer install
Build Assets
By default, React UI is used. To use Vue UI, set the constant ISTIAQHOSSAIN_OPTIVINE_UI to 'vue' in optivine.php.
Navigate to ui directory
cd assets/src/admin/react or cd assets/src/admin/vue
Build assets
pnpm install && pnpm run build
PHP Unit testing
Run
vendor/bin/phpunit