#!/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 = $id ? Song::find($id) : 0; if($song){ printf("20 text/gemini\r\n"); } else { printf("30 " . Song::inRandomOrder()->first()->id . "\r\n");return; } ?> # title ?> ## verse ?> author ?> => id ?>?q Transpose from plain_key ?> audio ? "=> {$song->audio} Listen to this song" : "" ?> ```chord sheet textTranspose(ucfirst(getenv('QUERY_STRING')??'')) ?> ``` getChordsAttribute($txt) as $symbol => $tabs): ?> => /chord.svg/? () => mailto:zachdecook+songs@gmail.com?subject= $song->id, 'title' => $song->title, 'author' => $song->author, 'key' => $song->key, 'verse' => $song->verse, ])) ?>&body=text) ?> Edit song limit(5)->pluck('title','id') as $id => $title): ?> =>