Something went wrong. Try again.
A barebones implementation of an atproto PDS in PHP and Slim Framework 4.
pds php atproto
Something went wrong. Try again.
508 B · 27 lines
PHP
at main
12345678910111213141516171819202122232425262728<?php
declare(strict_types=1);
namespace App\Application\Settings;
class Settings implements SettingsInterface{ /** @var array<string, mixed> */ private array $settings;
/** * @param array<string, mixed> $settings */ public function __construct(array $settings) { $this->settings = $settings; }
/** * @return mixed */ public function get(string $key = '') { return (empty($key)) ? $this->settings : $this->settings[$key]; }}