PHP code example of krma-cl / kcfinder-bootstrap5-theme

1. Go to this page and download the library: Download krma-cl/kcfinder-bootstrap5-theme 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/ */

    

krma-cl / kcfinder-bootstrap5-theme example snippets


'theme' => 'bootstrap5',

$_SESSION['KCFINDER']['theme'] = 'bootstrap5';

$_LOCALS['themeOptions']['bootstrap5']['colors'] = array(
    'primary' => '#0057B8',
    'secondary' => '#667085',
    'success' => '#198754',
    'danger' => '#B42318',
    'warning' => '#F79009',
    'light' => '#F8F9FA',
    'dark' => '#101828',
);
text
kcfinder/
└── themes/
    └── bootstrap5/
        ├── 01.ui.css
        ├── 02.transForm.css
        ├── 03.bootstrap.css
        ├── css.php
        ├── init.js
        ├── js.php
        └── img/
javascript
$('#file-browser').kcfinder({
    url: '/kcfinder/browse.php',
    theme: 'bootstrap5'
});
text
/kcfinder/browse.php?theme=bootstrap5