phabel icon indicating copy to clipboard operation
phabel copied to clipboard

Can trigger own functionality when transpiling?

Open leoloso opened this issue 4 years ago • 1 comments

I have a WordPress plugin, coded in 8.0, to be transpiled to 7.1. The required PHP version must be indicated in the plugin's main file header:

<?php
/*
Requires PHP: 8.0
*/

Is it possible to inject some custom functionality, so that when we trigger the transpiling, this header is converted into this?

<?php
/*
Requires PHP: 7.1
*/

leoloso avatar Sep 27 '21 10:09 leoloso

Absolutely, I actually already prepared most of the logic needed for custom phabel plugins, I just need to enable the functionality in the composer plugin, will do ASAP.

danog avatar Sep 27 '21 13:09 danog