repo
stringlengths
7
63
file_url
stringlengths
81
284
file_path
stringlengths
5
200
content
stringlengths
0
32.8k
language
stringclasses
1 value
license
stringclasses
7 values
commit_sha
stringlengths
40
40
retrieved_at
stringdate
2026-01-04 15:02:33
2026-01-05 05:24:06
truncated
bool
2 classes
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/WriterInterface.php
src/Repository/Adapter/WriterInterface.php
<?php declare(strict_types=1); namespace Dotenv\Repository\Adapter; interface WriterInterface { /** * Write to an environment variable, if possible. * * @param non-empty-string $name * @param string $value * * @return bool */ public function write(string $name, st...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/ArrayAdapter.php
src/Repository/Adapter/ArrayAdapter.php
<?php declare(strict_types=1); namespace Dotenv\Repository\Adapter; use PhpOption\Option; use PhpOption\Some; final class ArrayAdapter implements AdapterInterface { /** * The variables and their values. * * @var array<string, string> */ private $variables; /** * Create a new ar...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/MultiWriter.php
src/Repository/Adapter/MultiWriter.php
<?php declare(strict_types=1); namespace Dotenv\Repository\Adapter; final class MultiWriter implements WriterInterface { /** * The set of writers to use. * * @var \Dotenv\Repository\Adapter\WriterInterface[] */ private $writers; /** * Create a new multi-writer instance. * ...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/AdapterInterface.php
src/Repository/Adapter/AdapterInterface.php
<?php declare(strict_types=1); namespace Dotenv\Repository\Adapter; interface AdapterInterface extends ReaderInterface, WriterInterface { /** * Create a new instance of the adapter, if it is available. * * @return \PhpOption\Option<\Dotenv\Repository\Adapter\AdapterInterface> */ public st...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/ServerConstAdapter.php
src/Repository/Adapter/ServerConstAdapter.php
<?php declare(strict_types=1); namespace Dotenv\Repository\Adapter; use PhpOption\Option; use PhpOption\Some; final class ServerConstAdapter implements AdapterInterface { /** * Create a new server const adapter instance. * * @return void */ private function __construct() { //...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/EnvConstAdapter.php
src/Repository/Adapter/EnvConstAdapter.php
<?php declare(strict_types=1); namespace Dotenv\Repository\Adapter; use PhpOption\Option; use PhpOption\Some; final class EnvConstAdapter implements AdapterInterface { /** * Create a new env const adapter instance. * * @return void */ private function __construct() { // }...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/MultiReader.php
src/Repository/Adapter/MultiReader.php
<?php declare(strict_types=1); namespace Dotenv\Repository\Adapter; use PhpOption\None; final class MultiReader implements ReaderInterface { /** * The set of readers to use. * * @var \Dotenv\Repository\Adapter\ReaderInterface[] */ private $readers; /** * Create a new multi-read...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/ReaderInterface.php
src/Repository/Adapter/ReaderInterface.php
<?php declare(strict_types=1); namespace Dotenv\Repository\Adapter; interface ReaderInterface { /** * Read an environment variable, if it exists. * * @param non-empty-string $name * * @return \PhpOption\Option<string> */ public function read(string $name); }
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/GuardedWriter.php
src/Repository/Adapter/GuardedWriter.php
<?php declare(strict_types=1); namespace Dotenv\Repository\Adapter; final class GuardedWriter implements WriterInterface { /** * The inner writer to use. * * @var \Dotenv\Repository\Adapter\WriterInterface */ private $writer; /** * The variable name allow list. * * @va...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/src/Repository/Adapter/ApacheAdapter.php
src/Repository/Adapter/ApacheAdapter.php
<?php declare(strict_types=1); namespace Dotenv\Repository\Adapter; use PhpOption\None; use PhpOption\Option; use PhpOption\Some; final class ApacheAdapter implements AdapterInterface { /** * Create a new apache adapter instance. * * @return void */ private function __construct() { ...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/DotenvTest.php
tests/Dotenv/DotenvTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests; use Dotenv\Dotenv; use Dotenv\Exception\InvalidEncodingException; use Dotenv\Exception\InvalidPathException; use Dotenv\Loader\Loader; use Dotenv\Parser\Parser; use Dotenv\Repository\RepositoryBuilder; use Dotenv\Store\StoreBuilder; use PHPUnit\Framework\TestCas...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/ValidatorTest.php
tests/Dotenv/ValidatorTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests; use Dotenv\Dotenv; use Dotenv\Exception\ValidationException; use Dotenv\Repository\Adapter\ArrayAdapter; use Dotenv\Repository\RepositoryBuilder; use PHPUnit\Framework\TestCase; final class ValidatorTest extends TestCase { /** * @var string */ ...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/Parser/LinesTest.php
tests/Dotenv/Parser/LinesTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests\Parser; use Dotenv\Parser\Lines; use Dotenv\Util\Regex; use PHPUnit\Framework\TestCase; final class LinesTest extends TestCase { public function testProcessBasic() { $content = \file_get_contents(\dirname(\dirname(__DIR__)).'/fixtures/env/asserti...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/Parser/EntryParserTest.php
tests/Dotenv/Parser/EntryParserTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests\Parser; use Dotenv\Parser\Entry; use Dotenv\Parser\EntryParser; use Dotenv\Parser\Value; use GrahamCampbell\ResultType\Result; use PHPUnit\Framework\TestCase; final class EntryParserTest extends TestCase { public function testBasicParse() { $resu...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/Parser/LexerTest.php
tests/Dotenv/Parser/LexerTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests\Parser; use Dotenv\Parser\Lexer; use PHPUnit\Framework\TestCase; final class LexerTest extends TestCase { /** * @return array{string,string[]}[] */ public static function provideLexCases() { return [ ['', []], ...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/Parser/ParserTest.php
tests/Dotenv/Parser/ParserTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests\Parser; use Dotenv\Exception\InvalidFileException; use Dotenv\Parser\Entry; use Dotenv\Parser\Parser; use Dotenv\Parser\ParserInterface; use Dotenv\Parser\Value; use PHPUnit\Framework\TestCase; final class ParserTest extends TestCase { public function testPa...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/Loader/LoaderTest.php
tests/Dotenv/Loader/LoaderTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests\Loader; use Dotenv\Exception\InvalidFileException; use Dotenv\Loader\Loader; use Dotenv\Loader\LoaderInterface; use Dotenv\Parser\Parser; use Dotenv\Repository\Adapter\ArrayAdapter; use Dotenv\Repository\Adapter\EnvConstAdapter; use Dotenv\Repository\Adapter\Serv...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/Store/StoreTest.php
tests/Dotenv/Store/StoreTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests\Store; use Dotenv\Exception\InvalidEncodingException; use Dotenv\Store\File\Paths; use Dotenv\Store\File\Reader; use Dotenv\Store\StoreBuilder; use PHPUnit\Framework\TestCase; final class StoreTest extends TestCase { /** * @var string */ privat...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/Repository/RepositoryTest.php
tests/Dotenv/Repository/RepositoryTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests\Repository; use Dotenv\Dotenv; use Dotenv\Repository\Adapter\ArrayAdapter; use Dotenv\Repository\RepositoryBuilder; use Dotenv\Repository\RepositoryInterface; use InvalidArgumentException; use PHPUnit\Framework\TestCase; use TypeError; final class RepositoryTest...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/Repository/Adapter/ServerConstAdapterTest.php
tests/Dotenv/Repository/Adapter/ServerConstAdapterTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests\Repository\Adapter; use Dotenv\Repository\Adapter\ServerConstAdapter; use PHPUnit\Framework\TestCase; final class ServerConstAdapterTest extends TestCase { public function testGoodRead() { $_SERVER['CONST_TEST'] = 'foo bar baz'; $value = ...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/Repository/Adapter/PutenvAdapterTest.php
tests/Dotenv/Repository/Adapter/PutenvAdapterTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests\Repository\Adapter; use Dotenv\Repository\Adapter\PutenvAdapter; use PHPUnit\Framework\TestCase; final class PutenvAdapterTest extends TestCase { public function testGoodRead() { \putenv('CONST_TEST=foo bar baz'); $value = self::createAda...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/Repository/Adapter/ArrayAdapterTest.php
tests/Dotenv/Repository/Adapter/ArrayAdapterTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests\Repository\Adapter; use Dotenv\Repository\Adapter\ArrayAdapter; use PHPUnit\Framework\TestCase; final class ArrayAdapterTest extends TestCase { public function testGoodRead() { $adapter = self::createAdapter(); $adapter->write('CONST_TEST...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
vlucas/phpdotenv
https://github.com/vlucas/phpdotenv/blob/2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1/tests/Dotenv/Repository/Adapter/EnvConstAdapterTest.php
tests/Dotenv/Repository/Adapter/EnvConstAdapterTest.php
<?php declare(strict_types=1); namespace Dotenv\Tests\Repository\Adapter; use Dotenv\Repository\Adapter\EnvConstAdapter; use PHPUnit\Framework\TestCase; final class EnvConstAdapterTest extends TestCase { public function testGoodRead() { $_ENV['CONST_TEST'] = 'foo bar baz'; $value = self::cre...
php
BSD-3-Clause
2af27192fc6c6bf7c05ef26e67d54afe9a0c39e1
2026-01-04T15:02:53.318618Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/server.php
server.php
<?php /** * Laravel - A PHP Framework For Web Artisans. * * @author Taylor Otwell <taylorotwell@gmail.com> */ $uri = urldecode( parse_url($_SERVER['REQUEST_URI'], PHP_URL_PATH) ); // This file allows us to emulate Apache's "mod_rewrite" functionality from the // built-in PHP web server. This provides a conv...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/scripts/koel-init.php
scripts/koel-init.php
#!/usr/bin/env php <?php $args = array_slice($argv, 1); passthru('composer install --ansi'); passthru('php artisan koel:init --ansi ' . implode(' ', $args));
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Helpers.php
app/Helpers.php
<?php use App\Facades\License; use App\Services\SettingService; use App\Values\Branding; use Illuminate\Support\Arr; use Illuminate\Support\Facades\File; use Illuminate\Support\Str; use Webmozart\Assert\Assert; /** * Get a URL for static file requests. * If this installation of Koel has a CDN_URL configured, use it...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Jobs/QueuedJob.php
app/Jobs/QueuedJob.php
<?php namespace App\Jobs; use Illuminate\Bus\Queueable; use Illuminate\Contracts\Queue\ShouldQueue; use Illuminate\Foundation\Bus\Dispatchable; use Illuminate\Queue\InteractsWithQueue; use Illuminate\Queue\SerializesModels; abstract class QueuedJob implements ShouldQueue { use Dispatchable; use InteractsWith...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Jobs/RunCommandJob.php
app/Jobs/RunCommandJob.php
<?php namespace App\Jobs; use Illuminate\Support\Facades\Artisan; class RunCommandJob extends QueuedJob { public function __construct(public readonly string $command) { } public function handle(): void { Artisan::call($this->command); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Jobs/DeleteTranscodeFilesJob.php
app/Jobs/DeleteTranscodeFilesJob.php
<?php namespace App\Jobs; use App\Services\Transcoding\TranscodeStrategyFactory; use App\Values\Transcoding\TranscodeFileInfo; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Log; use Throwable; class DeleteTranscodeFilesJob extends QueuedJob { /** * @param Collection<TranscodeFileInfo>|ar...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Jobs/ExtractSongFolderStructureJob.php
app/Jobs/ExtractSongFolderStructureJob.php
<?php namespace App\Jobs; use App\Models\Song; use App\Services\MediaBrowser; class ExtractSongFolderStructureJob extends QueuedJob { public function __construct(private readonly Song $song) { } public function handle(MediaBrowser $browser): void { $browser->maybeCreateFolderStructureFor...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Jobs/DeleteSongFilesJob.php
app/Jobs/DeleteSongFilesJob.php
<?php namespace App\Jobs; use App\Services\SongStorages\SongStorage; use App\Values\Song\SongFileInfo; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Log; use Throwable; class DeleteSongFilesJob extends QueuedJob { /** * @param Collection<SongFileInfo>|array<array-key, SongFileInfo> $file...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Jobs/HandleSongUploadJob.php
app/Jobs/HandleSongUploadJob.php
<?php namespace App\Jobs; use App\Models\Song; use App\Models\User; use App\Repositories\AlbumRepository; use App\Repositories\SongRepository; use App\Responses\SongUploadResponse; use App\Services\UploadService; class HandleSongUploadJob extends QueuedJob { public function __construct(public readonly string $fi...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Jobs/GenerateAlbumThumbnailJob.php
app/Jobs/GenerateAlbumThumbnailJob.php
<?php namespace App\Jobs; use App\Models\Album; use App\Services\AlbumService; class GenerateAlbumThumbnailJob extends QueuedJob { public function __construct(private readonly Album $album) { } public function handle(AlbumService $albumService): void { rescue(fn () => $albumService->gene...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Jobs/ScrobbleJob.php
app/Jobs/ScrobbleJob.php
<?php namespace App\Jobs; use App\Models\Song; use App\Models\User; use App\Services\LastfmService; class ScrobbleJob extends QueuedJob { public function __construct(public User $user, public Song $song, public int $timestamp) { } public function handle(LastfmService $lastfmService): void { ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/ArtistNameConflictException.php
app/Exceptions/ArtistNameConflictException.php
<?php namespace App\Exceptions; use DomainException; class ArtistNameConflictException extends DomainException { public function __construct() { parent::__construct('An artist with the same name already exists.'); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/CannotRemoveOwnerFromPlaylistException.php
app/Exceptions/CannotRemoveOwnerFromPlaylistException.php
<?php namespace App\Exceptions; use Exception; class CannotRemoveOwnerFromPlaylistException extends Exception { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/NonSmartPlaylistException.php
app/Exceptions/NonSmartPlaylistException.php
<?php namespace App\Exceptions; use App\Models\Playlist; use DomainException; class NonSmartPlaylistException extends DomainException { public static function create(Playlist $playlist): self { return new static($playlist->name . ' is not a smart playlist.'); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/UserAlreadySubscribedToPodcastException.php
app/Exceptions/UserAlreadySubscribedToPodcastException.php
<?php namespace App\Exceptions; use App\Models\Podcast; use App\Models\User; use Exception; final class UserAlreadySubscribedToPodcastException extends Exception { public static function create(User $user, Podcast $podcast): self { return new self("User {$user->id} has already subscribed to podcast {...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/NonCloudStorageException.php
app/Exceptions/NonCloudStorageException.php
<?php namespace App\Exceptions; use App\Enums\SongStorageType; use DomainException; class NonCloudStorageException extends DomainException { public static function create(SongStorageType $type): self { return new self("Not a cloud storage type: {$type->value}."); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/AlbumNameConflictException.php
app/Exceptions/AlbumNameConflictException.php
<?php namespace App\Exceptions; use DomainException; class AlbumNameConflictException extends DomainException { public function __construct() { parent::__construct('An album with the same name already exists for this artist.'); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/FailedToParsePodcastFeedException.php
app/Exceptions/FailedToParsePodcastFeedException.php
<?php namespace App\Exceptions; use RuntimeException; use Throwable; final class FailedToParsePodcastFeedException extends RuntimeException { public static function create(string $url, Throwable $previous): self { return new self("Failed to parse the podcast feed at $url.", $previous->getCode(), $pre...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/SpotifyIntegrationDisabledException.php
app/Exceptions/SpotifyIntegrationDisabledException.php
<?php namespace App\Exceptions; use DomainException; class SpotifyIntegrationDisabledException extends DomainException { public static function create(): self { return new self('Spotify integration is disabled.'); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/UnsupportedSongStorageTypeException.php
app/Exceptions/UnsupportedSongStorageTypeException.php
<?php namespace App\Exceptions; use App\Enums\SongStorageType; use InvalidArgumentException; class UnsupportedSongStorageTypeException extends InvalidArgumentException { public static function create(SongStorageType $storageType): self { return new self("Unsupported song storage type: $storageType->v...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/OperationNotApplicableForSmartPlaylistException.php
app/Exceptions/OperationNotApplicableForSmartPlaylistException.php
<?php namespace App\Exceptions; use DomainException; class OperationNotApplicableForSmartPlaylistException extends DomainException { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/SongPathNotFoundException.php
app/Exceptions/SongPathNotFoundException.php
<?php namespace App\Exceptions; use RuntimeException; class SongPathNotFoundException extends RuntimeException { public static function create(string $path): self { return new static("The song at path $path cannot be found."); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/FailedToActivateLicenseException.php
app/Exceptions/FailedToActivateLicenseException.php
<?php namespace App\Exceptions; use RuntimeException; use Saloon\Exceptions\Request\RequestException; use Throwable; final class FailedToActivateLicenseException extends RuntimeException { public static function fromThrowable(Throwable $e): self { return new self($e->getMessage(), $e->getCode(), $e);...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/EmbeddableNotFoundException.php
app/Exceptions/EmbeddableNotFoundException.php
<?php namespace App\Exceptions; use Illuminate\Database\Eloquent\ModelNotFoundException; class EmbeddableNotFoundException extends ModelNotFoundException { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/KoelPlusRequiredException.php
app/Exceptions/KoelPlusRequiredException.php
<?php namespace App\Exceptions; use DomainException; class KoelPlusRequiredException extends DomainException { public function __construct(string $message = 'This feature is only available in Koel Plus.') { parent::__construct($message); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/SongUploadFailedException.php
app/Exceptions/SongUploadFailedException.php
<?php namespace App\Exceptions; use RuntimeException; use Throwable; class SongUploadFailedException extends RuntimeException { private static function fromThrowable(Throwable $e): self { return new self($e->getMessage(), $e->getCode(), $e); } private static function fromErrorMessage(?string...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/InvitationNotFoundException.php
app/Exceptions/InvitationNotFoundException.php
<?php namespace App\Exceptions; use RuntimeException; class InvitationNotFoundException extends RuntimeException { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/UserProspectUpdateDeniedException.php
app/Exceptions/UserProspectUpdateDeniedException.php
<?php namespace App\Exceptions; use LogicException; class UserProspectUpdateDeniedException extends LogicException { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/PlaylistCollaborationTokenExpiredException.php
app/Exceptions/PlaylistCollaborationTokenExpiredException.php
<?php namespace App\Exceptions; use RuntimeException; class PlaylistCollaborationTokenExpiredException extends RuntimeException { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/InvalidCredentialsException.php
app/Exceptions/InvalidCredentialsException.php
<?php namespace App\Exceptions; use RuntimeException; class InvalidCredentialsException extends RuntimeException { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/InstallationFailedException.php
app/Exceptions/InstallationFailedException.php
<?php namespace App\Exceptions; use RuntimeException; class InstallationFailedException extends RuntimeException { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/LocalStorageRequiredException.php
app/Exceptions/LocalStorageRequiredException.php
<?php namespace App\Exceptions; use DomainException; class LocalStorageRequiredException extends DomainException { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/MediaBrowserNotSupportedException.php
app/Exceptions/MediaBrowserNotSupportedException.php
<?php namespace App\Exceptions; use DomainException; class MediaBrowserNotSupportedException extends DomainException { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/MethodNotImplementedException.php
app/Exceptions/MethodNotImplementedException.php
<?php namespace App\Exceptions; use BadMethodCallException; class MethodNotImplementedException extends BadMethodCallException { public static function method(string $method): self { return new self("Method $method is not implemented."); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/PlaylistBothSongsAndRulesProvidedException.php
app/Exceptions/PlaylistBothSongsAndRulesProvidedException.php
<?php namespace App\Exceptions; use InvalidArgumentException; class PlaylistBothSongsAndRulesProvidedException extends InvalidArgumentException { public function __construct() { parent::__construct('A playlist cannot have both songs and rules'); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/MediaPathNotSetException.php
app/Exceptions/MediaPathNotSetException.php
<?php namespace App\Exceptions; use LogicException; class MediaPathNotSetException extends LogicException { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Exceptions/NotAPlaylistCollaboratorException.php
app/Exceptions/NotAPlaylistCollaboratorException.php
<?php namespace App\Exceptions; use DomainException; class NotAPlaylistCollaboratorException extends DomainException { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Downloadable.php
app/Values/Downloadable.php
<?php namespace App\Values; use Illuminate\Support\Str; use Symfony\Component\HttpFoundation\Response; final readonly class Downloadable { private bool $redirectable; private function __construct(public string $path) { $this->redirectable = Str::startsWith($path, ['http://', 'https://']); } ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/LastfmLoveTrackParameters.php
app/Values/LastfmLoveTrackParameters.php
<?php namespace App\Values; final readonly class LastfmLoveTrackParameters { private function __construct(public string $trackName, public string $artistName) { } public static function make(string $trackName, string $artistName): self { return new self($trackName, $artistName); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/GenreSummary.php
app/Values/GenreSummary.php
<?php namespace App\Values; final readonly class GenreSummary { private function __construct( public string $publicId, public string $name, public int $songCount, public float $length ) { } public static function make(string $publicId, string $name, int $songCount, flo...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/CompositeToken.php
app/Values/CompositeToken.php
<?php namespace App\Values; use Illuminate\Contracts\Support\Arrayable; use Laravel\Sanctum\NewAccessToken; /** * A "composite token" consists of two tokens: * * - an API token, which has all abilities * - an audio token, which has only the "audio" ability i.e. to play and download audio files. This token is use...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/ImageWritingConfig.php
app/Values/ImageWritingConfig.php
<?php namespace App\Values; final readonly class ImageWritingConfig { private function __construct( public int $quality, public int $maxWidth, public ?int $blur, ) { } public static function make(int $quality = 80, int $maxWidth = 500, ?int $blur = 0): self { retur...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/EmbedOptions.php
app/Values/EmbedOptions.php
<?php namespace App\Values; use App\Facades\License; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Http\Request; use Illuminate\Support\Arr; use Throwable; class EmbedOptions implements Arrayable { private function __construct(public string $theme, public string $layout, public bool $preview) { ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/RequestedStreamingConfig.php
app/Values/RequestedStreamingConfig.php
<?php namespace App\Values; final readonly class RequestedStreamingConfig { private function __construct( public bool $transcode, public ?int $bitRate, public float $startTime ) { } public static function make(bool $transcode = false, ?int $bitRate = 128, float $startTime = 0....
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Equalizer.php
app/Values/Equalizer.php
<?php namespace App\Values; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Arr; use Throwable; final readonly class Equalizer implements Arrayable { /** @param array<int>|null $gains */ private function __construct(public ?string $name, public ?float $preamp, public ?array $gains) { ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/QueueState.php
app/Values/QueueState.php
<?php namespace App\Values; use App\Models\Song as Playable; use Illuminate\Support\Collection; final class QueueState { private function __construct( public Collection $playables, public ?Playable $currentPlayable, public ?int $playbackPosition ) { } public static function m...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/UploadReference.php
app/Values/UploadReference.php
<?php namespace App\Values; final readonly class UploadReference { /** * @param string $location Depending on the storage type, this could be the full storage key (with prefix) * or the local path to the file. This is the value to be stored in the database. * @param string $localPath The local path...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/IpInfoLiteData.php
app/Values/IpInfoLiteData.php
<?php namespace App\Values; use Illuminate\Contracts\Support\Arrayable; use Saloon\Http\Response; final readonly class IpInfoLiteData implements Arrayable { private function __construct( public string $ip, public string $asn, public string $asName, public string $asDomain, ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Branding.php
app/Values/Branding.php
<?php namespace App\Values; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Facades\URL; final class Branding implements Arrayable { private function __construct( public readonly string $name, public ?string $logo, public ?string $cover, ) { if ($logo && !UR...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/ExcerptSearchResult.php
app/Values/ExcerptSearchResult.php
<?php namespace App\Values; use Illuminate\Support\Collection; final class ExcerptSearchResult { private function __construct( public Collection $songs, public Collection $artists, public Collection $albums, public Collection $podcasts, public Collection $radioStations, ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Theme/ThemeCreateData.php
app/Values/Theme/ThemeCreateData.php
<?php namespace App\Values\Theme; final readonly class ThemeCreateData { private function __construct( public string $name, public string $fgColor, public string $bgColor, public string $bgImage, public string $highlightColor, public string $fontFamily, publ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Theme/ThemeProperties.php
app/Values/Theme/ThemeProperties.php
<?php namespace App\Values\Theme; use Illuminate\Contracts\Support\Arrayable; final class ThemeProperties implements Arrayable { private function __construct( public readonly string $fgColor, public readonly string $bgColor, public readonly string $bgImage, public readonly string ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Podcast/EpisodePlayable.php
app/Values/Podcast/EpisodePlayable.php
<?php namespace App\Values\Podcast; use App\Models\Song as Episode; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Jsonable; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Http; final class EpisodePlayable implements Arrayable, ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Podcast/PodcastState.php
app/Values/Podcast/PodcastState.php
<?php namespace App\Values\Podcast; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Jsonable; use Illuminate\Support\Arr; use Illuminate\Support\Collection; final class PodcastState implements Arrayable, Jsonable { private function __construct(public readonly ?string $currentEpisode,...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Ticketmaster/TicketmasterEvent.php
app/Values/Ticketmaster/TicketmasterEvent.php
<?php namespace App\Values\Ticketmaster; use Carbon\Carbon; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Arr; readonly class TicketmasterEvent implements Arrayable { private function __construct( public string $id, public string $name, public string $url, pub...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Ticketmaster/TicketmasterVenue.php
app/Values/Ticketmaster/TicketmasterVenue.php
<?php namespace App\Values\Ticketmaster; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Arr; readonly class TicketmasterVenue implements Arrayable { private function __construct( public string $name, public string $url, public string $city, ) { } public st...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Ticketmaster/TicketmasterAttraction.php
app/Values/Ticketmaster/TicketmasterAttraction.php
<?php namespace App\Values\Ticketmaster; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Arr; readonly class TicketmasterAttraction implements Arrayable { private function __construct( public string $id, public string $name, public string $url, public string $im...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Artist/ArtistInformation.php
app/Values/Artist/ArtistInformation.php
<?php namespace App\Values\Artist; use HTMLPurifier; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Arr; final class ArtistInformation implements Arrayable { public const JSON_STRUCTURE = [ 'url', 'image', 'bio' => [ 'summary', 'full', ]...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Artist/ArtistUpdateData.php
app/Values/Artist/ArtistUpdateData.php
<?php namespace App\Values\Artist; use Illuminate\Contracts\Support\Arrayable; final class ArtistUpdateData implements Arrayable { private function __construct(public string $name, public ?string $image) { } public static function make(string $name, ?string $image = null): self { return ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Song/SongUpdateResult.php
app/Values/Song/SongUpdateResult.php
<?php namespace App\Values\Song; use App\Models\Album; use App\Models\Artist; use App\Models\Song; use Illuminate\Support\Collection; final readonly class SongUpdateResult { private function __construct( public Collection $updatedSongs, public Collection $removedArtistIds, public Collecti...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Song/SongFileInfo.php
app/Values/Song/SongFileInfo.php
<?php namespace App\Values\Song; use App\Enums\SongStorageType; use App\Models\Song; final readonly class SongFileInfo { private function __construct(public string $location, public SongStorageType $storage) { } public static function make(string $location, SongStorageType $storage): self { ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Song/SongUpdateData.php
app/Values/Song/SongUpdateData.php
<?php namespace App\Values\Song; use Illuminate\Contracts\Support\Arrayable; final class SongUpdateData implements Arrayable { private function __construct( public ?string $title, public ?string $artistName, public ?string $albumName, public ?string $albumArtistName, publi...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/WatchRecord/WatchRecord.php
app/Values/WatchRecord/WatchRecord.php
<?php namespace App\Values\WatchRecord; use App\Values\WatchRecord\Contracts\WatchRecordInterface; abstract class WatchRecord implements WatchRecordInterface { /** * Array of the occurred events. */ protected array $events; /** * Full path of the file/directory on which the event occurred...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/WatchRecord/InotifyWatchRecord.php
app/Values/WatchRecord/InotifyWatchRecord.php
<?php namespace App\Values\WatchRecord; final class InotifyWatchRecord extends WatchRecord { /** * {@inheritdoc} */ public function __construct(string $input) { parent::__construct($input); $this->parse($input); } /** * Parse the inotifywait's output. The inotifywa...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/WatchRecord/Contracts/WatchRecordInterface.php
app/Values/WatchRecord/Contracts/WatchRecordInterface.php
<?php namespace App\Values\WatchRecord\Contracts; interface WatchRecordInterface { public function parse(string $string): void; public function getPath(): string; public function isDeleted(): bool; public function isNewOrModified(): bool; public function isDirectory(): bool; public functi...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Transcoding/TranscodeResult.php
app/Values/Transcoding/TranscodeResult.php
<?php namespace App\Values\Transcoding; use Illuminate\Support\Facades\File; final readonly class TranscodeResult { public function __construct(public string $path, public string $checksum) { } public function valid(): bool { return File::isReadable($this->path) && File::hash($this->path...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Transcoding/TranscodeFileInfo.php
app/Values/Transcoding/TranscodeFileInfo.php
<?php namespace App\Values\Transcoding; use App\Enums\SongStorageType; use App\Models\Transcode; class TranscodeFileInfo { public function __construct(public readonly string $location, public readonly SongStorageType $storage) { } public static function make(string $location, SongStorageType $storag...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Playlist/PlaylistCollaborator.php
app/Values/Playlist/PlaylistCollaborator.php
<?php namespace App\Values\Playlist; use App\Models\User; use Illuminate\Contracts\Support\Arrayable; final class PlaylistCollaborator implements Arrayable { private function __construct(public string $publicId, public string $name, public string $avatar) { } public static function make(string $publ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Playlist/PlaylistUpdateData.php
app/Values/Playlist/PlaylistUpdateData.php
<?php namespace App\Values\Playlist; use App\Values\SmartPlaylist\SmartPlaylistRuleGroupCollection; use Illuminate\Contracts\Support\Arrayable; final readonly class PlaylistUpdateData implements Arrayable { private function __construct( public string $name, public string $description, pub...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/Playlist/PlaylistCreateData.php
app/Values/Playlist/PlaylistCreateData.php
<?php namespace App\Values\Playlist; use App\Exceptions\PlaylistBothSongsAndRulesProvidedException; use App\Values\SmartPlaylist\SmartPlaylistRuleGroupCollection; use Illuminate\Contracts\Support\Arrayable; final readonly class PlaylistCreateData implements Arrayable { /** * @param array<string> $playableId...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/License/LicenseInstance.php
app/Values/License/LicenseInstance.php
<?php namespace App\Values\License; use Carbon\Carbon; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Jsonable; /** * A Lemon Squeezy license instance * @see https://docs.lemonsqueezy.com/api/license-key-instances#the-license-key-instance-object */ final class LicenseInstance impleme...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/License/LicenseMeta.php
app/Values/License/LicenseMeta.php
<?php namespace App\Values\License; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Contracts\Support\Jsonable; /** * A Lemon Squeezy license meta * @see https://docs.lemonsqueezy.com/help/licensing/license-api#meta */ final class LicenseMeta implements Arrayable, Jsonable { private function __cons...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/License/LicenseStatus.php
app/Values/License/LicenseStatus.php
<?php namespace App\Values\License; use App\Enums\LicenseStatus as Status; use App\Models\License; final class LicenseStatus { private function __construct(public Status $status, public ?License $license) { } public function isValid(): bool { return $this->status === Status::VALID; }...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/User/UserPreferences.php
app/Values/User/UserPreferences.php
<?php namespace App\Values\User; use App\Values\Equalizer; use Illuminate\Contracts\Support\Arrayable; use JsonSerializable; use Webmozart\Assert\Assert; final class UserPreferences implements Arrayable, JsonSerializable { private const CASTS = [ 'albums_favorites_only' => 'boolean', 'artists_fav...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/User/UserCreateData.php
app/Values/User/UserCreateData.php
<?php namespace App\Values\User; use App\Enums\Acl\Role; use Illuminate\Contracts\Support\Arrayable; use Illuminate\Support\Facades\Hash; final readonly class UserCreateData implements Arrayable { public string $password; public function __construct( public string $name, public string $email...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/User/SsoUser.php
app/Values/User/SsoUser.php
<?php namespace App\Values\User; use Illuminate\Http\Request; use Laravel\Socialite\Contracts\User as SocialiteUser; use Webmozart\Assert\Assert; final class SsoUser { private function __construct( public string $provider, public string $id, public string $email, public string $na...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Values/User/UserUpdateData.php
app/Values/User/UserUpdateData.php
<?php namespace App\Values\User; use App\Enums\Acl\Role; use Illuminate\Support\Facades\Hash; final readonly class UserUpdateData { public ?string $password; private function __construct( public string $name, public string $email, ?string $plainTextPassword, public ?Role $rol...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false