#!/usr/bin/php make(Illuminate\Contracts\Http\Kernel::class); use App\Song; $query = getenv('QUERY_STRING')??''; if($query == 'q') { printf("10 Transpose into key /([0-9]+|[A-G][b#]?)/\r\n");return; } $id = substr(getenv('PATH_INFO')??'',1); $song = Song::find($id); if($song){ printf("20 text/gemini\r\n"); } else { printf("30 " . Song::inRandomOrder()->first()->id . "\r\n");return; } ?> # title ?> author ?> => id ?>?q Transpose from plain_key ?> ``` textTranspose(getenv('QUERY_STRING')??'') ?> ``` limit(5)->pluck('title','id') as $id => $title): ?> =>