PHP code example of tiago-f2 / vuejs-component-from-svg

1. Go to this page and download the library: Download tiago-f2/vuejs-component-from-svg 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/ */

    

tiago-f2 / vuejs-component-from-svg example snippets


use TiagoF2\VuejsComponentFromSvg\Generator\GeneratorRunner;

G tag
$componentPrefix = 'Custom';
$componentSufix = 'Icon';
$svgSourcePath = __DIR__ . '/svg';
$outputDir = __DIR__ . '/dist/tiago';

$generatorRunner = new GeneratorRunner(
    $svgSourcePath,
    $outputDir,
    // $initialClass, // Optional
    // $componentPrefix, // Optional
    // $componentSufix, // Optional
);

$generatorRunner->generateFiles();