PHP language plugin for the form8ion tool suite
$ npm install @form8ion/php --save-prod
const {scaffold, test, lift} = await import('@form8ion/php');
const projectRoot = process.cwd();
await scaffold({
projectRoot,
projectName: 'name-of-the-project',
description: 'A short summary of the project'
});
if (await test({projectRoot})) {
await lift({
projectRoot,
results: {
dependencies: {
php: {
production: ['smarty/smarty'],
development: ['phpunit/phpunit']
}
}
}
});
}
$ nvm install
$ npm install
$ npm test