PHP code example of accelade / filters

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

    

accelade / filters example snippets


use Accelade\Filters\FilterPanel;
use Accelade\Filters\Components\TextFilter;
use Accelade\Filters\Components\SelectFilter;

$panel = FilterPanel::make()
    ->filters([
        TextFilter::make('search')
            ->label('Search')
            ->placeholder('Search users...'),

        SelectFilter::make('status')
            ->label('Status')
            ->options([
                'active' => 'Active',
                'inactive' => 'Inactive',
            ]),
    ]);