pith-front/pith-pack-src-fallback

Pack resource fallback libraries

0.1.0 2024-03-17 22:06 UTC

This package is auto-updated.

Last update: 2024-05-17 22:33:08 UTC


README

Pack resource fallback libraries for Pith

About

This project packs resource fallback libraries so that they can be used with the Pith Framework.

For info about MutationObserver, see the Git repo at https://github.com/megawac/MutationObserver.js.

For info about sri-fallback, see the Git repo at https://github.com/cyph/sri-fallback.

For info on Pith, see the Pith website at https://pith-framework.org/

Install

Install to an existing Pith Framework project

Use Composer to install pack to the vendor folder.

php composer.phar require pith-front/pith-pack-src-fallback

Add new route to your Route List:

public array $routes = [
    // Other routes....
    // ...
    
    // Add route to call src fallback resources from
    ['route', 'GET', '/resources/vendor/library/src-fallback/{filepath:.+}', '\\PithFront\\PithPackSrcFallback\\SrcFallbackResourceRoute'],
];

Licensing Info

pith-pack-src-fallback contains MutationObserver and sri-fallback.

MutationObserver

sri-fallback

pith-pack-src-fallback

Thanks!