PHP code example of mksec / silex-base

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

    

mksec / silex-base example snippets


  

  use SilexBase\BaseUiApplication;
  use SilexBase\ThemeServiceProvider;

  $app = new BaseUiApplication();
  $app->register(new ThemeServiceProvider());
  $app->extend('assets.named_packages', function (array $packages) {
      // Switch the CDN domain.
      $packages['bootstrap']['base_urls'] = ['example.org'];
  });