PHP code example of webdna / component-viewer

1. Go to this page and download the library: Download webdna/component-viewer 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/ */

    

webdna / component-viewer example snippets

bash
composer ugin/install component-viewer
bash
php craft component-viewer/make ui/button           # a new component and its stories file
php craft component-viewer/check [--strict]         # lists broken components, exits 1 if any