1. Go to this page and download the library: Download mooeypoo/mwstew-builder library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
mooeypoo / mwstew-builder example snippets
// Send $data with the definition of rator( $data );
// The file structure is available by request
$generator->getFiles();
$data = [
'name' => (string) Extension name; English only, no spaces (Mandatory)
'title' => (string) Extension title or display name
'author' => (string) Extension author
'version' => (string|number) Extension version
'description' => (string) A short description for the extension.
'url' => (string) A URL for the extension
'license' => (string) License code for the extension. Expected a valid value to be used in composer.json and package.json
'dev_php' => (bool) Whether the extension should have the base files needed for a PHP development environment.
'dev_js' => (bool) Whether the extension should have the base files needed for a JavaScript development environment.
'specialpage_name' => (string) A name for a sepcial page. Must use valid characters for MediaWiki title.
'specialpage_title' => (string) A title for the special page.
'specialpage_intro' => (string) A short description or introduction text for the special page. This will appear at the top of the new special page that is created.
'hooks' => (array) An array of strings representing hooks to be added to the system.
]