scto / plugin-compiler
A plugin compiler for Textpattern CMS.
v0.1.2
2024-10-30 15:07 UTC
Requires
- php: >=8.2
- netcarver/textile: ^3.8
Requires (Dev)
- laravel/pint: ^1.18
- phpunit/phpunit: ^11.4
README
Scto Plugin Compiler
Compiler for creating installable plugin files for the Textpattern CMS.
Installation
$ composer require scto/plugin-compiler --dev
Usage
The compiler binary can has up to five arguments.
N.B.: The name of the plugin is created from the name of the current woking directory.
$ ./vendor/bin/scto-compile manifest.json help.textile textpack.txt srcFolder outputFolder
The plugin compiler can also be used as library:
use Scto\PluginCompiler\CompilerApp;
public $args = [
'manifest.json', // manifest file
'help.textile', // help file in textile markup
'textpack.txt', // combined textpack file with all localisation strings
'src', // directory with the PHP source code
'dist', // directory for the compiled plugins
];
$app = new CompilerApp();
$app->run($args);