Skip to content
This repository has been archived by the owner on Jan 7, 2022. It is now read-only.

imaginarymachines/plugin-machine-php-cli

Repository files navigation

PHP CLI For Plugin Machine

PHP Tests Latest Stable Version Total Downloads Latest Unstable Version License PHP Version Require

Install

composer global require imaginary-machines/plugin-machine-php-cli:dev-main -W

Requires

Usage

  • Login to plugin machine.
  • Write pluginMachine.json for a plugin
    • php plugin-machine plugin:config {pluginId}
    • Requires login
  • Add a feature to current plugin
    • php plugin-machine add
    • Requires login
  • ZIP plugin for release
    • php plugin-machine plugin:zip
  • Check version
    • plugin-machine version
  • Test that it can write a file
    • plugin-machine file:put
  • Output some debug information
    • plugin-machine debug

Envioronment Variables

  • PLUGIN_MACHINE_TOKEN - Authentication token. Overrides values set with login command.
  • PLUGIN_MACHINE_WRITE_PATH - The path to write output to.

Uninstall

composer global remove imaginary-machines/plugin-machine-php-cli

Development

  • Build -php plugin-machine app:build plugin-machine
  • Test -php plugin-machine test
  • Sync Rules -php plugin-machine sync
  • Lint code
    • composer lint
    • composer fix
  • Check for minimum version PHP compatibility.
    • composer compat
  • Check for other PHP version compatibility:
    • composer compat:version 8.0