Parse and validate AT Protocol Lexicons with DTO generation for Laravel
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Update references to `Beacon` package

+12 -12
+1 -1
composer.json
··· 17 17 "friendsofphp/php-cs-fixer": "^3.89" 18 18 }, 19 19 "suggest": { 20 - "socialdept/atp-beacon": "Required for DID resolution during DNS-based lexicon lookup" 20 + "socialdept/atp-resolver": "Required for DID resolution during DNS-based lexicon lookup" 21 21 }, 22 22 "autoload": { 23 23 "psr-4": {
+3 -3
config/schema.php
··· 131 131 |-------------------------------------------------------------------------- 132 132 | 133 133 | Configure DNS-based lexicon resolution for third-party schemas. 134 - | Requires socialdept/atp-beacon package for DID resolution. 134 + | Requires socialdept/atp-resolver package for DID resolution. 135 135 | 136 136 */ 137 137 ··· 139 139 // Enable DNS-based lexicon resolution 140 140 'enabled' => env('SCHEMA_DNS_RESOLUTION_ENABLED', true), 141 141 142 - // Use Beacon for DID resolution (requires socialdept/atp-beacon) 143 - 'use_beacon' => env('SCHEMA_USE_BEACON', true), 142 + // Use Resolver for DID resolution (requires socialdept/atp-resolver) 143 + 'use_resolver' => env('SCHEMA_USE_RESOLVER', true), 144 144 145 145 // Fallback behavior when schema not found: fail, warn, allow 146 146 'fallback' => env('SCHEMA_DNS_FALLBACK', 'warn'),
header.png

This is a binary file and will not be displayed.

+4 -4
src/Validation/Rules/Did.php
··· 18 18 return; 19 19 } 20 20 21 - // Check if Beacon package is available 22 - if (class_exists('SocialDept\Beacon\Support\Identity')) { 23 - if (! \SocialDept\Beacon\Support\Identity::isDid($value)) { 21 + // Check if Resolver package is available 22 + if (class_exists('SocialDept\Resolver\Support\Identity')) { 23 + if (! \SocialDept\Resolver\Support\Identity::isDid($value)) { 24 24 $fail("The {$attribute} is not a valid DID."); 25 25 } 26 26 27 27 return; 28 28 } 29 29 30 - // Fallback validation if Beacon is not available 30 + // Fallback validation if Resolver is not available 31 31 if (! $this->isValidDid($value)) { 32 32 $fail("The {$attribute} is not a valid DID."); 33 33 }
+4 -4
src/Validation/Rules/Handle.php
··· 18 18 return; 19 19 } 20 20 21 - // Check if Beacon package is available 22 - if (class_exists('SocialDept\Beacon\Support\Identity')) { 23 - if (! \SocialDept\Beacon\Support\Identity::isHandle($value)) { 21 + // Check if Resolver package is available 22 + if (class_exists('SocialDept\Resolver\Support\Identity')) { 23 + if (! \SocialDept\Resolver\Support\Identity::isHandle($value)) { 24 24 $fail("The {$attribute} is not a valid handle."); 25 25 } 26 26 27 27 return; 28 28 } 29 29 30 - // Fallback validation if Beacon is not available 30 + // Fallback validation if Resolver is not available 31 31 if (! $this->isValidHandle($value)) { 32 32 $fail("The {$attribute} is not a valid handle."); 33 33 }