skyline/direct-components

Direct component access plugin for Skyline CMS Applications


License
BSD-3-Clause

Documentation

Skyline Direct Components

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