RSS-Bridge Search Search...

GitHub Repository
Help/Support/Bugs
Docker Images

Show Code Blocks

Dark Mode

Powered by Daux.io

# Format API
How to create a new format

April 14, 2023 at 12:32 PM Edit on GitHub

Create a new file in the `formats/` folder (see Folder structure).

The file must be named according to following specification:

- It starts with the type
- The file name must end with ‘Format’
- The file type must be PHP, written in small letters (seriously!) “.php”

Examples:

Type | Filename
--- | ---
Atom | AtomFormat.php
Html | HtmlFormat.php

The file must start with the PHP tags and end with an empty line. The closing tag `?>` is omitted.

Example:

    <?PHP
        // PHP code here
    // This line is empty (just imagine it!)