PHP code example of netresearch / assetpicker

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

    

netresearch / assetpicker example snippets


use Netresearch\AssetPicker\Proxy;
use Symfony\Component\HttpClient\HttpClient;
use Symfony\Component\HttpClient\NoPrivateNetworkHttpClient;

$proxy = new Proxy(new NoPrivateNetworkHttpClient(HttpClient::create()));
bash
docker buildx bake        # build the php-fpm image
docker compose up -d      # nginx + php serving proxy.php