PHP code example of frostiede / silex-assetic-serviceprovider

1. Go to this page and download the library: Download frostiede/silex-assetic-serviceprovider 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/ */

    

frostiede / silex-assetic-serviceprovider example snippets


$app->register(new AsseticServiceProvider(), [
    'assetic.options' => [
        'assets_path' => '', // Path to your assets directory (e.g. /app/assets/)
        'web_path' => '' // Path to your web-directory (e.g. /web/)
    ]
]);