skyline / direct-components
Direct component access plugin for Skyline CMS Applications
v8.0.0
2023-02-07 20:25 UTC
Requires
- php: ^8
- skyline/html-render: ^8
- skyline/kernel: ^8
- tasoft/mime: ^1
Requires (Dev)
- phpunit/phpunit: ^9
README
This package allows your application to deliver components.
Installation
$ composer require skyline/direct-components
Usage
With this package you get a directory Components
in the SkylineAppData directory.
Files in this directory are linkable from your website under the following condition:
- Request URI MUST begin with
/Public
(changeable in configuration)
Please note that this package delivers the sources without any checks.
To enable checks, see further packages available:
$ composer require skyline/direct-components-hotlink-protection
This package registers a plugin that won't deliver components to foreign hosts (hotlink protection)$ composer require skyline/direct-components-cors
This package restricts to known hosts (you can not combine them because the hotlink protection will deny even if the cors would allow.)