skyline/direct-components

Direct component access plugin for Skyline CMS Applications

v0.8.4 2020-10-07 15:50 UTC

This package is auto-updated.

Last update: 2021-09-07 17:52:50 UTC


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.)