Resolve AT Protocol DIDs, handles, and schemas with intelligent caching for Laravel
1<?php
2
3return [
4
5 /*
6 |--------------------------------------------------------------------------
7 | PLC Directory URL
8 |--------------------------------------------------------------------------
9 |
10 | The URL of the PLC (Public Ledger of Credentials) directory used for
11 | resolving DID:PLC identifiers. The default is the official AT Protocol
12 | PLC directory.
13 |
14 */
15
16 'plc_directory' => env('RESOLVER_PLC_DIRECTORY', 'https://plc.directory'),
17
18 /*
19 |--------------------------------------------------------------------------
20 | PDS Endpoint
21 |--------------------------------------------------------------------------
22 |
23 | The Personal Data Server endpoint used for handle resolution. This is
24 | used when resolving handles to DIDs via the AT Protocol API.
25 |
26 */
27
28 'pds_endpoint' => env('RESOLVER_PDS_ENDPOINT', 'https://bsky.social'),
29
30 /*
31 |--------------------------------------------------------------------------
32 | Request Timeout
33 |--------------------------------------------------------------------------
34 |
35 | The timeout in seconds for HTTP requests to external services when
36 | resolving DIDs and handles.
37 |
38 */
39
40 'timeout' => env('RESOLVER_TIMEOUT', 10),
41
42 /*
43 |--------------------------------------------------------------------------
44 | Cache Configuration
45 |--------------------------------------------------------------------------
46 |
47 | Configure caching behavior for resolved DIDs and handles.
48 | TTL values are in seconds.
49 |
50 */
51
52 'cache' => [
53
54 // Enable or disable caching globally
55 'enabled' => env('RESOLVER_CACHE_ENABLED', true),
56
57 // Cache TTL for DID documents (1 hour default)
58 'did_ttl' => env('RESOLVER_CACHE_DID_TTL', 3600),
59
60 // Cache TTL for handle resolutions (1 hour default)
61 'handle_ttl' => env('RESOLVER_CACHE_HANDLE_TTL', 3600),
62
63 // Cache TTL for PDS endpoints (1 hour default)
64 'pds_ttl' => env('RESOLVER_CACHE_PDS_TTL', 3600),
65
66 ],
67
68];