PHP code example of adems / dapur-asset

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

    

adems / dapur-asset example snippets


   return [
       AdeMS\Dapur\Asset\ConfigProvider::class,
       // ... modul lain, mis. AdeMS\Dapur\Dashboard\DashboardUtamaConfigProvider::class
   ];
   

<link href="<?= $this->aset('adems/uang', 'css/uang.css') 

<?= $this->aset('twbs/bootstrap', 'css/bootstrap.min.css', '/asset/bootstrap/css/bootstrap.min.css') 

return [
    'asset' => [
        // Folder aset dari dashboard. Bawaan: <inti>/data/asset
        'folder' => '/path/ke/data/asset',
        // Aset terkunci dari folder mana pun di server.
        'aset' => [
            'adems/logo' => ['folder' => '/path/ke/logo', 'akses' => 'publik', 'berversi' => false],
        ],
        // Versi pilihan website ini (di config/autoload website); menang atas pilihan di dashboard.
        'versi' => ['twbs/bootstrap' => '5.3.8'],
        // Batas ukuran satu unggahan (sesudah ZIP dibongkar), dalam MB. Bawaan 100.
        'unggah_maks_mb' => 100,
    ],
];
bash
cp vendor/adems/dapur-asset/config/asset.local.php.dist config/autoload/asset.local.php