How faezlatiff/accredify works
Accredify is a Laravel REST API that accepts credential JSON from an authenticated user and returns a JSON verification result. The main flow checks recipient and issuer details, looks up the issuer key in DNS TXT records, recomputes and compares the credential hash, then records the outcome and responds. The README documents authenticated access; route and middleware wiring is not shown in the sampled source, so that relationship is represented at the API boundary. Other route capabilities cannot be established from the available excerpts.
Main entry points: VerifyController.php Verify request · index.php HTTP entry · api.php API routes · Kernel.php HTTP kernel
Components 14
HTTP access
- HTTP entry
public/index.php - App bootstrap
bootstrap/app.php - HTTP kernel
app/Http/Kernel.php - API routes
routes/api.php - Authentication
app/Http/Middleware/Authenticate.php
Credential verification
- Verify request
app/Http/Controllers/VerifyController.php - DNS TXT records
- Hash comparison
app/Http/Controllers/VerifyController.php - JSON result
app/Http/Controllers/VerifyController.php
Identity and records
- Verification history
app/Http/Controllers/VerifyController.php - MySQL database
- User identity
app/Models/User.php - Verification record
app/Models/Verification.php
Other components
- API client
Connections 12
- API client → HTTP entry: sends JSON
- HTTP entry → App bootstrap: loads app
- HTTP entry → HTTP kernel: handles request
- HTTP kernel → API routes: loads routes
- API routes → Authentication: requires auth
- API routes → Verify request: dispatches request
- Verify request → DNS TXT records: looks up TXT
- Verify request → Hash comparison: recomputes hash
- Verify request → Verification history: records outcome
- Verification history → MySQL database: inserts row
- Verify request → JSON result: builds response
- JSON result → API client: returns JSON