PHP code example of juksgraphic / bladecomponents

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

    

juksgraphic / bladecomponents example snippets


use Juksgraphic\BladeComponents\BladeComponents;

// Retrieve views/components directory path
$viewsPath = BladeComponents::path();

// Retrieve theme CSS file path
$themePath = BladeComponents::theme();

// Get all available component names
$components = BladeComponents::all();