izartu API

config.php

Site configuration: the catalogue of settings and their defaults. Every one can be overridden through an environment variable of the same name, so a deployment never needs to edit this (tracked) file. Fixed wiring lives in `bootstrap.php`.

Table of Contents

Constants

BASE  : mixed = \env('BASE', \basePath())
Base URL path of the install ('' at a domain root, '/sub' in a sub-directory).
CLOUD_SIZE  : mixed = \max(1, (int) \env('CLOUD_SIZE', '50'))
Most-used tags shown in the tag cloud.
DB_HOST  : mixed = \env('DB_HOST', 'localhost')
Database host ('localhost' by default).
DB_NAME  : mixed = \env('DB_NAME', 'izartu')
Database name ('izartu' by default).
DB_PASS  : mixed = \env('DB_PASS')
Database password (required, no default).
DB_PORT  : mixed = (int) \env('DB_PORT', '3306')
Database port (3306 by default).
DB_USER  : mixed = \env('DB_USER')
Database user (required, no default).
DEBUG  : mixed = \filter_var(\env('DEBUG'), \FILTER_VALIDATE_BOOL)
Debug mode (off by default; `1`/`true`/`on`/`yes` enable it): error output, the Server-Timing header and the query panel.
PAGE_SIZE  : mixed = \max(1, (int) \env('PAGE_SIZE', '10'))
Bookmarks per page on the feed.
TAGS_PAGE_SIZE  : mixed = \max(1, (int) \env('TAGS_PAGE_SIZE', '100'))
Tags per page on the tag index (`/tags`).

Constants

BASE

Base URL path of the install ('' at a domain root, '/sub' in a sub-directory).

public mixed BASE = \env('BASE', \basePath())

Detected from the request by default; set it when a reverse proxy serves the app under a path the request does not carry.

CLOUD_SIZE

Most-used tags shown in the tag cloud.

public mixed CLOUD_SIZE = \max(1, (int) \env('CLOUD_SIZE', '50'))

DB_HOST

Database host ('localhost' by default).

public mixed DB_HOST = \env('DB_HOST', 'localhost')

DB_NAME

Database name ('izartu' by default).

public mixed DB_NAME = \env('DB_NAME', 'izartu')

DB_PASS

Database password (required, no default).

public mixed DB_PASS = \env('DB_PASS')

DB_PORT

Database port (3306 by default).

public mixed DB_PORT = (int) \env('DB_PORT', '3306')

DB_USER

Database user (required, no default).

public mixed DB_USER = \env('DB_USER')

DEBUG

Debug mode (off by default; `1`/`true`/`on`/`yes` enable it): error output, the Server-Timing header and the query panel.

public mixed DEBUG = \filter_var(\env('DEBUG'), \FILTER_VALIDATE_BOOL)

PAGE_SIZE

Bookmarks per page on the feed.

public mixed PAGE_SIZE = \max(1, (int) \env('PAGE_SIZE', '10'))

TAGS_PAGE_SIZE

Tags per page on the tag index (`/tags`).

public mixed TAGS_PAGE_SIZE = \max(1, (int) \env('TAGS_PAGE_SIZE', '100'))
On this page

Search results