PHP code example of webmatherfacker / moonshine-carousel

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

    

webmatherfacker / moonshine-carousel example snippets



//...
use Webmatherfacker\MoonshineCarousel\Components\Slider;
//...
 Slider::make()->addItems([
                    ValueMetric::make('Articles')
                        ->value(100),
                    ValueMetric::make('Orders')
                        ->value(150),
                    ValueMetric::make('Products')
                        ->value(250),
                    ValueMetric::make('Users')
                        ->value(350),
                    ValueMetric::make('Sales')
                        ->value(500),
                    ValueMetric::make('Countries')
                        ->value(195)
                ]),

Slider::make()->addItems(...)->itemPerRow(3),

Slider::make()->addItems(...)->editItemWidth(20),

Slider::make()->addItems(...)->loop(),

Slider::make()->addItems(...)->nav(),