PHP code example of kraenkvisuell / kraenk-statamic-kit

1. Go to this page and download the library: Download kraenkvisuell/kraenk-statamic-kit 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/ */

    

kraenkvisuell / kraenk-statamic-kit example snippets


   use Illuminate\Http\Request;
   use Kraenkvisuell\StatamicKit\Http\Middleware\UseCdnClientIp;

   ->withMiddleware(function (Middleware $middleware): void {
       $middleware->prepend(UseCdnClientIp::class);
       $middleware->trustProxies(
           at: '*',
           headers: Request::HEADER_X_FORWARDED_HOST
               | Request::HEADER_X_FORWARDED_PORT
               | Request::HEADER_X_FORWARDED_PROTO,
       );
   })