1. Go to this page and download the library: Download vjik/scaffolder 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/ */
vjik / scaffolder example snippets
use Vjik\Scaffolder\Change;
use Vjik\Scaffolder\Runner;
('README.md', 'Hello World'),
new Change\PrepareComposerJson(),
new Change\CopyFile(
from: __DIR__ . '/templates/LICENSE',
to: 'LICENSE',
),
],
)->run();
use Vjik\Scaffolder\Context;
$context->getFact(PackageName::class); // Returns "vendor/package"
$context->getFact(NamespaceX::class); // Returns "Vendor\\Package"