ewebovky/status-bundle

Generátor a endpoint pro status.json v Symfony pro Ewebovky.

Installs: 9

Dependents: 0

Suggesters: 0

Security: 0

Stars: 0

Watchers: 0

Forks: 0

Open Issues: 0

Type:symfony-bundle

pkg:composer/ewebovky/status-bundle

1.0.0 2025-10-10 20:17 UTC

This package is auto-updated.

Last update: 2025-10-10 21:41:57 UTC


README

Lehký Symfony bundle, který poskytuje endpoint /status.json chráněný tokenem a vrací systémové informace (verze PHP, Symfony, DB aj.)

Instalace

composer config --json extra.symfony.endpoint '["flex://defaults","https://raw.githubusercontent.com/Ewebovky/recipes/main/index.json"]'
composer config extra.symfony.allow-contrib true
composer clear-cache
composer require ewebovky/status-bundle:^1.0

Poté (pokud není auto-registrace) do config/bundles.php:

return [
    Ewebovky\StatusBundle\EwebovkyStatusBundle::class => ['all' => true],
];

Konfigurace

Do .env zadejte token:

SITE_STATUS_TOKEN=xxxxxxx

A vytvořte config/packages/ewebovky_status.yaml:

ewebovky_status:
  token: '%env(string:SITE_STATUS_TOKEN)%'

Volání endpointu

GET /status.json
  Authorization: Bearer xxxxxxx
  – nebo –
GET /status.json
  X-Status-Token: xxxxxxx
  – nebo –
GET /status.json?token=xxxxxxx