Plates-Local-assets-copy 用于基于纯PHP模板引擎插件,可将远程资产下载到本地缓存 设置 首先通过composer下载该库: composer require basteyy/plates-local-assets-copy 在Plates中注册插件: use League \ Plates \ Engine ; use basteyy\ PlatesLocalAssetsCopy \ PlatesLocalAssetsCopy as PlatesLocalAssetsCopy ; $ templateEngine = new Engine (); $ templateEngine -> loadExtension ( new PlatesLocalAssetsCopy ( __DIR__ . '/cache/' , // Define where