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
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/ProxyAuthService.php
app/Services/ProxyAuthService.php
<?php namespace App\Services; use App\Attributes\RequiresPlus; use App\Models\User; use App\Values\User\SsoUser; use Illuminate\Http\Request; use Illuminate\Support\Facades\Log; use Symfony\Component\HttpFoundation\IpUtils; use Throwable; #[RequiresPlus] class ProxyAuthService { public function __construct(priva...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/FavoriteService.php
app/Services/FavoriteService.php
<?php namespace App\Services; use App\Events\MultipleSongsLiked; use App\Events\MultipleSongsUnliked; use App\Events\SongFavoriteToggled; use App\Models\Contracts\Favoriteable; use App\Models\Favorite; use App\Models\Song; use App\Models\User; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection;...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SmartPlaylistService.php
app/Services/SmartPlaylistService.php
<?php namespace App\Services; use App\Exceptions\NonSmartPlaylistException; use App\Models\Playlist; use App\Models\Song; use App\Models\User; use App\Repositories\SongRepository; use Illuminate\Database\Eloquent\Collection; class SmartPlaylistService { public function __construct(private readonly SongRepository...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/ArtistService.php
app/Services/ArtistService.php
<?php namespace App\Services; use App\Exceptions\ArtistNameConflictException; use App\Models\Artist; use App\Repositories\ArtistRepository; use App\Values\Artist\ArtistUpdateData; use Illuminate\Support\Arr; use Webmozart\Assert\Assert; class ArtistService { public function __construct( private readonly ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/MusicBrainzService.php
app/Services/MusicBrainzService.php
<?php namespace App\Services; use App\Models\Album; use App\Models\Artist; use App\Pipelines\Encyclopedia\GetAlbumTracksUsingMbid; use App\Pipelines\Encyclopedia\GetAlbumWikidataIdUsingReleaseGroupMbid; use App\Pipelines\Encyclopedia\GetArtistWikidataIdUsingMbid; use App\Pipelines\Encyclopedia\GetMbidForArtist; use A...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/PlaylistFolderService.php
app/Services/PlaylistFolderService.php
<?php namespace App\Services; use App\Models\PlaylistFolder; use App\Models\User; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Facades\DB; class PlaylistFolderService { public function createFolder(User $user, string $name): PlaylistFolder { return $user->playlistFolders()->create...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SpotifyService.php
app/Services/SpotifyService.php
<?php namespace App\Services; use App\Http\Integrations\Spotify\SpotifyClient; use App\Models\Album; use App\Models\Artist; use Illuminate\Support\Arr; class SpotifyService { public function __construct(private readonly SpotifyClient $client) { } public static function enabled(): bool { ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/ThemeService.php
app/Services/ThemeService.php
<?php namespace App\Services; use App\Models\Theme; use App\Models\User; use App\Values\ImageWritingConfig; use App\Values\Theme\ThemeCreateData; use App\Values\Theme\ThemeProperties; class ThemeService { public function __construct(private readonly ImageStorage $imageStorage) { } public function cr...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/PlaylistService.php
app/Services/PlaylistService.php
<?php namespace App\Services; use App\Enums\Placement; use App\Exceptions\OperationNotApplicableForSmartPlaylistException; use App\Models\Playlist; use App\Models\Song as Playable; use App\Models\User; use App\Repositories\SongRepository; use App\Values\Playlist\PlaylistCreateData; use App\Values\Playlist\PlaylistUpd...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/PlaylistCollaborationService.php
app/Services/PlaylistCollaborationService.php
<?php namespace App\Services; use App\Events\NewPlaylistCollaboratorJoined; use App\Exceptions\CannotRemoveOwnerFromPlaylistException; use App\Exceptions\NotAPlaylistCollaboratorException; use App\Exceptions\OperationNotApplicableForSmartPlaylistException; use App\Exceptions\PlaylistCollaborationTokenExpiredException...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongService.php
app/Services/SongService.php
<?php namespace App\Services; use App\Events\LibraryChanged; use App\Facades\Dispatcher; use App\Facades\License; use App\Jobs\DeleteSongFilesJob; use App\Jobs\DeleteTranscodeFilesJob; use App\Jobs\ExtractSongFolderStructureJob; use App\Models\Album; use App\Models\Artist; use App\Models\Song; use App\Models\Transcod...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/LicenseService.php
app/Services/LicenseService.php
<?php namespace App\Services; use App\Exceptions\FailedToActivateLicenseException; use App\Http\Integrations\LemonSqueezy\LemonSqueezyConnector; use App\Http\Integrations\LemonSqueezy\Requests\ActivateLicenseRequest; use App\Http\Integrations\LemonSqueezy\Requests\DeactivateLicenseRequest; use App\Http\Integrations\L...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/AuthenticationService.php
app/Services/AuthenticationService.php
<?php namespace App\Services; use App\Exceptions\InvalidCredentialsException; use App\Models\User; use App\Repositories\UserRepository; use App\Values\CompositeToken; use Illuminate\Auth\Events\PasswordReset; use Illuminate\Auth\Passwords\PasswordBroker; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Fa...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/RadioService.php
app/Services/RadioService.php
<?php namespace App\Services; use App\Models\RadioStation; use App\Models\User; use App\Repositories\RadioStationRepository; use App\Values\Radio\RadioStationCreateData; use App\Values\Radio\RadioStationUpdateData; class RadioService { public function __construct( private readonly RadioStationRepository ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/LibraryManager.php
app/Services/LibraryManager.php
<?php namespace App\Services; use App\Models\Album; use App\Models\Artist; use Illuminate\Support\Facades\DB; class LibraryManager { /** * Delete albums and artists that have no songs. * * @return array<mixed> */ public function prune(bool $dryRun = false): array { return DB::...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/InteractionService.php
app/Services/InteractionService.php
<?php namespace App\Services; use App\Models\Interaction; use App\Models\Song as Playable; use App\Models\User; class InteractionService { public function increasePlayCount(Playable $playable, User $user): Interaction { return tap(Interaction::query()->firstOrCreate([ 'song_id' => $playab...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/ImageStorage.php
app/Services/ImageStorage.php
<?php namespace App\Services; use App\Helpers\Ulid; use App\Values\ImageWritingConfig; use Illuminate\Support\Facades\File; use RuntimeException; class ImageStorage { public function __construct( private readonly ImageWriter $imageWriter, private readonly SvgSanitizer $svgSanitizer, ) { }...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/LastfmService.php
app/Services/LastfmService.php
<?php namespace App\Services; use App\Http\Integrations\Lastfm\LastfmConnector; use App\Http\Integrations\Lastfm\Requests\GetAlbumInfoRequest; use App\Http\Integrations\Lastfm\Requests\GetArtistInfoRequest; use App\Http\Integrations\Lastfm\Requests\GetSessionKeyRequest; use App\Http\Integrations\Lastfm\Requests\Scrob...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SvgSanitizer.php
app/Services/SvgSanitizer.php
<?php namespace App\Services; use enshrined\svgSanitize\Sanitizer; class SvgSanitizer { public function __construct(private readonly Sanitizer $sanitizer) { } public function sanitize(string $svg): false|string { return $this->sanitizer->sanitize($svg); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/ApplicationInformationService.php
app/Services/ApplicationInformationService.php
<?php namespace App\Services; use GuzzleHttp\Client; use Illuminate\Support\Facades\Cache; class ApplicationInformationService { public function __construct(private readonly Client $client) { } /** * Get the latest version number of Koel from GitHub. */ public function getLatestVersion...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SettingService.php
app/Services/SettingService.php
<?php namespace App\Services; use App\Facades\License; use App\Models\Setting; use App\Values\Branding; use Illuminate\Support\Arr; class SettingService { public function __construct(private readonly ImageStorage $imageStorage) { } public function getBranding(): Branding { return License...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/YouTubeService.php
app/Services/YouTubeService.php
<?php namespace App\Services; use App\Http\Integrations\YouTube\Requests\SearchVideosRequest; use App\Http\Integrations\YouTube\YouTubeConnector; use App\Models\Song; use Illuminate\Support\Facades\Cache; use Throwable; class YouTubeService { public function __construct(private readonly YouTubeConnector $connect...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/UserInvitationService.php
app/Services/UserInvitationService.php
<?php namespace App\Services; use App\Enums\Acl\Role; use App\Exceptions\InvitationNotFoundException; use App\Helpers\Uuid; use App\Mail\UserInvite; use App\Models\User; use App\Repositories\UserRepository; use Illuminate\Support\Collection; use Illuminate\Support\Facades\DB; use Illuminate\Support\Facades\Hash; use ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/ImageWriter.php
app/Services/ImageWriter.php
<?php namespace App\Services; use App\Values\ImageWritingConfig; use Illuminate\Support\Facades\Http; use Illuminate\Support\Str; use Intervention\Image\FileExtension; use Intervention\Image\Interfaces\ImageManagerInterface; use Intervention\Image\Laravel\Facades\Image; use RuntimeException; class ImageWriter { ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/EncyclopediaService.php
app/Services/EncyclopediaService.php
<?php namespace App\Services; use App\Models\Album; use App\Models\Artist; use App\Services\Contracts\Encyclopedia; use App\Values\Album\AlbumInformation; use App\Values\Artist\ArtistInformation; use Illuminate\Support\Facades\Cache; class EncyclopediaService { public function __construct( private readon...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/DownloadService.php
app/Services/DownloadService.php
<?php namespace App\Services; use App\Enums\SongStorageType; use App\Models\Song; use App\Models\SongZipArchive; use App\Services\SongStorages\CloudStorageFactory; use App\Services\SongStorages\SftpStorage; use App\Values\Downloadable; use App\Values\Podcast\EpisodePlayable; use Illuminate\Database\Eloquent\Collectio...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Dispatcher.php
app/Services/Dispatcher.php
<?php namespace App\Services; class Dispatcher { /** * Whether the job should be queued or run synchronously. */ private bool $shouldQueue; public function __construct() { $this->shouldQueue = config('queue.default') !== 'sync' && config('broadcasting.default') !== 'log'...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/UploadService.php
app/Services/UploadService.php
<?php namespace App\Services; use App\Exceptions\SongUploadFailedException; use App\Models\Song; use App\Models\User; use App\Services\Scanners\FileScanner; use App\Services\SongStorages\Contracts\MustDeleteTemporaryLocalFileAfterUpload; use App\Services\SongStorages\SongStorage; use App\Values\Scanning\ScanConfigura...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Acl.php
app/Services/Acl.php
<?php namespace App\Services; use App\Enums\Acl\Role; use App\Enums\PermissionableResourceType; use App\Models\User; use Illuminate\Database\Eloquent\Model; use Illuminate\Support\Collection; use Illuminate\Support\Facades\Gate; use Webmozart\Assert\Assert; class Acl { private const VALID_ACTIONS = [ 'ed...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SearchService.php
app/Services/SearchService.php
<?php namespace App\Services; use App\Models\Song; use App\Models\User; use App\Repositories\AlbumRepository; use App\Repositories\ArtistRepository; use App\Repositories\PodcastRepository; use App\Repositories\RadioStationRepository; use App\Repositories\SongRepository; use App\Values\ExcerptSearchResult; use Illumin...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/TokenManager.php
app/Services/TokenManager.php
<?php namespace App\Services; use App\Models\User; use App\Values\CompositeToken; use Illuminate\Support\Facades\Cache; use Laravel\Sanctum\NewAccessToken; use Laravel\Sanctum\PersonalAccessToken; class TokenManager { public function createToken(User $user, array $abilities = ['*']): NewAccessToken { ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/MediaBrowser.php
app/Services/MediaBrowser.php
<?php namespace App\Services; use App\Exceptions\MediaBrowserNotSupportedException; use App\Exceptions\MediaPathNotSetException; use App\Facades\License; use App\Models\Folder; use App\Models\Setting; use App\Models\Song; use Illuminate\Support\Str; class MediaBrowser { /** @var array<string, Folder> */ priv...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/ITunesService.php
app/Services/ITunesService.php
<?php namespace App\Services; use App\Http\Integrations\iTunes\ITunesConnector; use App\Http\Integrations\iTunes\Requests\GetTrackRequest; use App\Models\Album; use Illuminate\Support\Facades\Cache; class ITunesService { public function __construct(private readonly ITunesConnector $connector) { } pu...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/QueueService.php
app/Services/QueueService.php
<?php namespace App\Services; use App\Models\QueueState; use App\Models\Song; use App\Models\User; use App\Repositories\SongRepository; use App\Values\QueueState as QueueStateDTO; class QueueService { public function __construct(private readonly SongRepository $songRepository) { } public function ge...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/TicketmasterService.php
app/Services/TicketmasterService.php
<?php namespace App\Services; use App\Facades\License; use App\Http\Integrations\Ticketmaster\Requests\AttractionSearchRequest; use App\Http\Integrations\Ticketmaster\Requests\EventSearchRequest; use App\Http\Integrations\Ticketmaster\TicketmasterConnector; use App\Services\Geolocation\Contracts\GeolocationService; u...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/OrganizationService.php
app/Services/OrganizationService.php
<?php namespace App\Services; use App\Models\Organization; use App\Repositories\OrganizationRepository; class OrganizationService { public function __construct(private readonly OrganizationRepository $repository) { } public function getCurrentOrganization(): Organization { // @phpstan-ig...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/UserService.php
app/Services/UserService.php
<?php namespace App\Services; use App\Exceptions\UserProspectUpdateDeniedException; use App\Models\Organization; use App\Models\User; use App\Repositories\UserRepository; use App\Values\ImageWritingConfig; use App\Values\User\SsoUser; use App\Values\User\UserCreateData; use App\Values\User\UserUpdateData; use Illumin...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/EmbedService.php
app/Services/EmbedService.php
<?php namespace App\Services; use App\Models\Album; use App\Models\Artist; use App\Models\Contracts\Embeddable; use App\Models\Embed; use App\Models\Playlist; use App\Models\Song; use App\Models\User; class EmbedService { /** @param Album|Artist|Playlist|Song $embeddable */ public function resolveEmbedForEmb...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/AlbumService.php
app/Services/AlbumService.php
<?php namespace App\Services; use App\Exceptions\AlbumNameConflictException; use App\Models\Album; use App\Repositories\AlbumRepository; use App\Values\Album\AlbumUpdateData; use App\Values\ImageWritingConfig; use Illuminate\Support\Arr; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\File; use S...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/PodcastService.php
app/Services/PodcastService.php
<?php namespace App\Services; use App\Events\UserUnsubscribedFromPodcast; use App\Exceptions\FailedToParsePodcastFeedException; use App\Exceptions\UserAlreadySubscribedToPodcastException; use App\Helpers\Uuid; use App\Models\Podcast; use App\Models\PodcastUserPivot; use App\Models\Song as Episode; use App\Models\User...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SimpleLrcReader.php
app/Services/SimpleLrcReader.php
<?php namespace App\Services; use Illuminate\Support\Facades\File; use Throwable; class SimpleLrcReader { public function tryReadForMediaFile(string $mediaFilePath): string { $lrcFilePath = self::getLrcFilePath($mediaFilePath); try { return $lrcFilePath ? trim(File::get($lrcFileP...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Transcoding/TranscodeStrategyFactory.php
app/Services/Transcoding/TranscodeStrategyFactory.php
<?php namespace App\Services\Transcoding; use App\Enums\SongStorageType; class TranscodeStrategyFactory { public static function make(SongStorageType $storageType): TranscodingStrategy { return match ($storageType) { SongStorageType::LOCAL => app(LocalTranscodingStrategy::class), ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Transcoding/TranscodingStrategy.php
app/Services/Transcoding/TranscodingStrategy.php
<?php namespace App\Services\Transcoding; use App\Enums\SongStorageType; use App\Models\Song; use App\Models\Transcode; use App\Repositories\TranscodeRepository; abstract class TranscodingStrategy { public function __construct( protected TranscodeRepository $transcodeRepository, protected Transco...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Transcoding/SftpTranscodingStrategy.php
app/Services/Transcoding/SftpTranscodingStrategy.php
<?php namespace App\Services\Transcoding; use App\Enums\SongStorageType; use App\Helpers\Ulid; use App\Models\Song; use App\Services\SongStorages\SftpStorage; use Illuminate\Support\Facades\File; class SftpTranscodingStrategy extends TranscodingStrategy { public function getTranscodeLocation(Song $song, int $bit...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Transcoding/LocalTranscodingStrategy.php
app/Services/Transcoding/LocalTranscodingStrategy.php
<?php namespace App\Services\Transcoding; use App\Enums\SongStorageType; use App\Helpers\Ulid; use App\Models\Song; use Illuminate\Support\Facades\File; class LocalTranscodingStrategy extends TranscodingStrategy { public function getTranscodeLocation(Song $song, int $bitRate): string { $transcode = $...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Transcoding/Transcoder.php
app/Services/Transcoding/Transcoder.php
<?php namespace App\Services\Transcoding; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Process; class Transcoder { public function transcode(string $source, string $destination, int $bitRate): void { setlocale(LC_CTYPE, 'en_US.UTF-8'); // #1481 special chars might be stripped o...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Transcoding/CloudTranscodingStrategy.php
app/Services/Transcoding/CloudTranscodingStrategy.php
<?php namespace App\Services\Transcoding; use App\Enums\SongStorageType; use App\Helpers\Ulid; use App\Models\Song; use App\Models\Transcode; use App\Services\SongStorages\CloudStorage; use App\Services\SongStorages\CloudStorageFactory; use Illuminate\Support\Facades\File; class CloudTranscodingStrategy extends Tran...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongStorages/SftpStorage.php
app/Services/SongStorages/SftpStorage.php
<?php namespace App\Services\SongStorages; use App\Enums\SongStorageType; use App\Helpers\Ulid; use App\Models\User; use App\Services\SongStorages\Concerns\DeletesUsingFilesystem; use App\Services\SongStorages\Concerns\MovesUploadedFile; use App\Services\SongStorages\Contracts\MustDeleteTemporaryLocalFileAfterUpload;...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongStorages/DropboxStorage.php
app/Services/SongStorages/DropboxStorage.php
<?php namespace App\Services\SongStorages; use App\Enums\SongStorageType; use App\Filesystems\DropboxFilesystem; use App\Models\User; use App\Services\SongStorages\Concerns\DeletesUsingFilesystem; use App\Values\UploadReference; use Illuminate\Support\Facades\Cache; use Illuminate\Support\Facades\File; use Illuminate...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongStorages/CloudStorageFactory.php
app/Services/SongStorages/CloudStorageFactory.php
<?php namespace App\Services\SongStorages; use App\Enums\SongStorageType; use App\Exceptions\NonCloudStorageException; class CloudStorageFactory { public static function make(SongStorageType $storageType): CloudStorage { return match ($storageType) { SongStorageType::S3_LAMBDA => app(S3La...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongStorages/SongStorage.php
app/Services/SongStorages/SongStorage.php
<?php namespace App\Services\SongStorages; use App\Enums\SongStorageType; use App\Exceptions\KoelPlusRequiredException; use App\Models\User; use App\Values\UploadReference; abstract class SongStorage { abstract public function getStorageType(): SongStorageType; abstract public function storeUploadedFile(str...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongStorages/S3LambdaStorage.php
app/Services/SongStorages/S3LambdaStorage.php
<?php namespace App\Services\SongStorages; use App\Enums\SongStorageType; use App\Exceptions\MethodNotImplementedException; use App\Exceptions\SongPathNotFoundException; use App\Models\Album; use App\Models\Artist; use App\Models\Song; use App\Models\User; use App\Repositories\SongRepository; use App\Repositories\Use...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongStorages/CloudStorage.php
app/Services/SongStorages/CloudStorage.php
<?php namespace App\Services\SongStorages; use App\Helpers\Ulid; use App\Models\User; use App\Services\SongStorages\Concerns\MovesUploadedFile; use App\Services\SongStorages\Contracts\MustDeleteTemporaryLocalFileAfterUpload; use Illuminate\Support\Facades\File; abstract class CloudStorage extends SongStorage impleme...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongStorages/S3CompatibleStorage.php
app/Services/SongStorages/S3CompatibleStorage.php
<?php namespace App\Services\SongStorages; use App\Enums\SongStorageType; use App\Models\User; use App\Services\SongStorages\Concerns\DeletesUsingFilesystem; use App\Values\UploadReference; use Illuminate\Support\Facades\File; use Illuminate\Support\Facades\Storage; use Illuminate\Support\Str; class S3CompatibleStor...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongStorages/LocalStorage.php
app/Services/SongStorages/LocalStorage.php
<?php namespace App\Services\SongStorages; use App\Enums\SongStorageType; use App\Exceptions\MediaPathNotSetException; use App\Helpers\Ulid; use App\Models\Setting; use App\Models\User; use App\Values\UploadReference; use Exception; use Illuminate\Support\Facades\File; use Illuminate\Support\Str; class LocalStorage ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongStorages/Contracts/MustDeleteTemporaryLocalFileAfterUpload.php
app/Services/SongStorages/Contracts/MustDeleteTemporaryLocalFileAfterUpload.php
<?php namespace App\Services\SongStorages\Contracts; interface MustDeleteTemporaryLocalFileAfterUpload { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongStorages/Concerns/DeletesUsingFilesystem.php
app/Services/SongStorages/Concerns/DeletesUsingFilesystem.php
<?php namespace App\Services\SongStorages\Concerns; use Closure; use Illuminate\Contracts\Filesystem\Filesystem as IlluminateFilesystem; use Illuminate\Support\Facades\Log; use League\Flysystem\Filesystem; use Throwable; trait DeletesUsingFilesystem { private function deleteUsingFilesystem( Filesystem | ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/SongStorages/Concerns/MovesUploadedFile.php
app/Services/SongStorages/Concerns/MovesUploadedFile.php
<?php namespace App\Services\SongStorages\Concerns; use App\Helpers\Ulid; use Illuminate\Http\UploadedFile; use Illuminate\Support\Facades\File as FileFacade; use Symfony\Component\HttpFoundation\File\File; trait MovesUploadedFile { protected function moveUploadedFileToTemporaryLocation(UploadedFile $file): File...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Streamer.php
app/Services/Streamer/Streamer.php
<?php namespace App\Services\Streamer; use App\Enums\SongStorageType; use App\Exceptions\KoelPlusRequiredException; use App\Models\Song; use App\Services\Streamer\Adapters\DropboxStreamerAdapter; use App\Services\Streamer\Adapters\LocalStreamerAdapter; use App\Services\Streamer\Adapters\PodcastStreamerAdapter; use Ap...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Adapters/SftpStreamerAdapter.php
app/Services/Streamer/Adapters/SftpStreamerAdapter.php
<?php namespace App\Services\Streamer\Adapters; use App\Models\Song; use App\Services\SongStorages\SftpStorage; use App\Services\Streamer\Adapters\Concerns\StreamsLocalPath; use App\Values\RequestedStreamingConfig; class SftpStreamerAdapter implements StreamerAdapter { use StreamsLocalPath; public function ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Adapters/S3CompatibleStreamerAdapter.php
app/Services/Streamer/Adapters/S3CompatibleStreamerAdapter.php
<?php namespace App\Services\Streamer\Adapters; use App\Models\Song; use App\Services\SongStorages\S3CompatibleStorage; use App\Values\RequestedStreamingConfig; use Illuminate\Http\RedirectResponse; use Illuminate\Routing\Redirector; class S3CompatibleStreamerAdapter implements StreamerAdapter { public function ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Adapters/XSendFileStreamerAdapter.php
app/Services/Streamer/Adapters/XSendFileStreamerAdapter.php
<?php namespace App\Services\Streamer\Adapters; use App\Models\Song; use App\Values\RequestedStreamingConfig; class XSendFileStreamerAdapter extends LocalStreamerAdapter { /** * Stream the current song using Apache's x_sendfile module. */ public function stream(Song $song, ?RequestedStreamingConfig...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Adapters/LocalStreamerAdapter.php
app/Services/Streamer/Adapters/LocalStreamerAdapter.php
<?php namespace App\Services\Streamer\Adapters; abstract class LocalStreamerAdapter implements StreamerAdapter { }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Adapters/DropboxStreamerAdapter.php
app/Services/Streamer/Adapters/DropboxStreamerAdapter.php
<?php namespace App\Services\Streamer\Adapters; use App\Models\Song; use App\Services\SongStorages\DropboxStorage; use App\Values\RequestedStreamingConfig; use Illuminate\Http\RedirectResponse; use Illuminate\Routing\Redirector; class DropboxStreamerAdapter implements StreamerAdapter { public function __construc...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Adapters/PhpStreamerAdapter.php
app/Services/Streamer/Adapters/PhpStreamerAdapter.php
<?php namespace App\Services\Streamer\Adapters; use App\Models\Song; use App\Services\Streamer\Adapters\Concerns\StreamsLocalPath; use App\Values\RequestedStreamingConfig; class PhpStreamerAdapter extends LocalStreamerAdapter { use StreamsLocalPath; public function stream(Song $song, ?RequestedStreamingConf...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Adapters/TranscodingStreamerAdapter.php
app/Services/Streamer/Adapters/TranscodingStreamerAdapter.php
<?php namespace App\Services\Streamer\Adapters; use App\Models\Song; use App\Services\Streamer\Adapters\Concerns\StreamsLocalPath; use App\Services\Transcoding\TranscodeStrategyFactory; use App\Values\RequestedStreamingConfig; use Illuminate\Http\Response; use Illuminate\Support\Str; class TranscodingStreamerAdapter...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Adapters/PodcastStreamerAdapter.php
app/Services/Streamer/Adapters/PodcastStreamerAdapter.php
<?php namespace App\Services\Streamer\Adapters; use App\Models\Song as Episode; use App\Services\PodcastService; use App\Services\Streamer\Adapters\Concerns\StreamsLocalPath; use App\Values\Podcast\EpisodePlayable; use App\Values\RequestedStreamingConfig; use Webmozart\Assert\Assert; class PodcastStreamerAdapter imp...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Adapters/XAccelRedirectStreamerAdapter.php
app/Services/Streamer/Adapters/XAccelRedirectStreamerAdapter.php
<?php namespace App\Services\Streamer\Adapters; use App\Models\Setting; use App\Models\Song; use App\Values\RequestedStreamingConfig; class XAccelRedirectStreamerAdapter extends LocalStreamerAdapter { /** * Stream the current song using nginx's X-Accel-Redirect. * @link https://www.nginx.com/resources/...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Adapters/StreamerAdapter.php
app/Services/Streamer/Adapters/StreamerAdapter.php
<?php namespace App\Services\Streamer\Adapters; use App\Models\Song; use App\Values\RequestedStreamingConfig; interface StreamerAdapter { public function stream(Song $song, ?RequestedStreamingConfig $config = null); // @phpcs:ignore }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Streamer/Adapters/Concerns/StreamsLocalPath.php
app/Services/Streamer/Adapters/Concerns/StreamsLocalPath.php
<?php namespace App\Services\Streamer\Adapters\Concerns; use DaveRandom\Resume\FileResource; use DaveRandom\Resume\InvalidRangeHeaderException; use DaveRandom\Resume\NonExistentFileException; use DaveRandom\Resume\RangeSet; use DaveRandom\Resume\ResourceServlet; use DaveRandom\Resume\SendFileFailureException; use Dav...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/License/CommunityLicenseService.php
app/Services/License/CommunityLicenseService.php
<?php namespace App\Services\License; use App\Exceptions\MethodNotImplementedException; use App\Models\License; use App\Services\License\Contracts\LicenseServiceInterface; use App\Values\License\LicenseStatus; class CommunityLicenseService implements LicenseServiceInterface { public function activate(string $key...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/License/Contracts/LicenseServiceInterface.php
app/Services/License/Contracts/LicenseServiceInterface.php
<?php namespace App\Services\License\Contracts; use App\Models\License; use App\Values\License\LicenseStatus; interface LicenseServiceInterface { public function isPlus(): bool; public function isCommunity(): bool; public function activate(string $key): License; public function deactivate(License ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Contracts/ObjectStorageInterface.php
app/Services/Contracts/ObjectStorageInterface.php
<?php namespace App\Services\Contracts; use App\Models\Song; interface ObjectStorageInterface { /** * Get a song's Object Storage url for streaming or downloading. */ public function getSongPublicUrl(Song $song): string; }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Contracts/Encyclopedia.php
app/Services/Contracts/Encyclopedia.php
<?php namespace App\Services\Contracts; use App\Models\Album; use App\Models\Artist; use App\Values\Album\AlbumInformation; use App\Values\Artist\ArtistInformation; interface Encyclopedia { public function getArtistInformation(Artist $artist): ?ArtistInformation; public function getAlbumInformation(Album $a...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Geolocation/IPinfoService.php
app/Services/Geolocation/IPinfoService.php
<?php namespace App\Services\Geolocation; use App\Http\Integrations\IPinfo\IPinfoConnector; use App\Http\Integrations\IPinfo\Requests\GetLiteDataRequest; use App\Services\Geolocation\Contracts\GeolocationService; use App\Values\IpInfoLiteData; use Illuminate\Support\Facades\Cache; class IPinfoService implements Geol...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Geolocation/Contracts/GeolocationService.php
app/Services/Geolocation/Contracts/GeolocationService.php
<?php namespace App\Services\Geolocation\Contracts; interface GeolocationService { public function getCountryCodeFromIp(string $ip): ?string; }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Scanners/ScannerNoCacheStrategy.php
app/Services/Scanners/ScannerNoCacheStrategy.php
<?php namespace App\Services\Scanners; use App\Services\Scanners\Contracts\ScannerCacheStrategy; use Closure; class ScannerNoCacheStrategy implements ScannerCacheStrategy { public function remember( string $key, Closure $callback, ): mixed { return $callback(); } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Scanners/ScannerCacheStrategy.php
app/Services/Scanners/ScannerCacheStrategy.php
<?php namespace App\Services\Scanners; use App\Services\Scanners\Contracts\ScannerCacheStrategy as ScannerCacheStrategyContract; use Closure; use Illuminate\Support\Collection; class ScannerCacheStrategy implements ScannerCacheStrategyContract { /** @var Collection<string, mixed> */ private Collection $cache...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Scanners/DirectoryScanner.php
app/Services/Scanners/DirectoryScanner.php
<?php namespace App\Services\Scanners; use App\Enums\ScanEvent; use App\Events\MediaScanCompleted; use App\Values\Scanning\ScanConfiguration; use App\Values\Scanning\ScanResultCollection; class DirectoryScanner extends Scanner { /** @var array<string, callable> */ private array $events = []; public func...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Scanners/Scanner.php
app/Services/Scanners/Scanner.php
<?php namespace App\Services\Scanners; use App\Repositories\SongRepository; use App\Services\SongService; use App\Values\Scanning\ScanConfiguration; use App\Values\Scanning\ScanResult; use Illuminate\Support\Facades\File; use Symfony\Component\Finder\Finder; use Throwable; abstract class Scanner { public functio...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Scanners/FileScanner.php
app/Services/Scanners/FileScanner.php
<?php namespace App\Services\Scanners; use App\Services\SimpleLrcReader; use App\Values\Scanning\ScanInformation; use getID3; use Illuminate\Support\Arr; use RuntimeException; use SplFileInfo; class FileScanner { public function __construct(private readonly getID3 $getID3, private readonly SimpleLrcReader $lrcRe...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Scanners/WatchRecordScanner.php
app/Services/Scanners/WatchRecordScanner.php
<?php namespace App\Services\Scanners; use App\Models\Song; use App\Values\Scanning\ScanConfiguration; use App\Values\WatchRecord\Contracts\WatchRecordInterface; use Illuminate\Support\Facades\Log; use Throwable; class WatchRecordScanner extends Scanner { public function scan(WatchRecordInterface $record, ScanCo...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Services/Scanners/Contracts/ScannerCacheStrategy.php
app/Services/Scanners/Contracts/ScannerCacheStrategy.php
<?php namespace App\Services\Scanners\Contracts; use Closure; interface ScannerCacheStrategy { public function remember( string $key, Closure $callback, ): mixed; }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Builders/ArtistBuilder.php
app/Builders/ArtistBuilder.php
<?php namespace App\Builders; use App\Builders\Concerns\CanScopeByUser; use App\Facades\License; use App\Models\Artist; use App\Models\User; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Query\JoinClause; use Illuminate\Support\Facades\DB; use LogicException; use Webmozart\Assert\Assert; class Ar...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Builders/GenreBuilder.php
app/Builders/GenreBuilder.php
<?php namespace App\Builders; use App\Facades\License; use App\Models\User; use Illuminate\Database\Eloquent\Builder; class GenreBuilder extends Builder { public function accessibleBy(User $user): self { if (License::isCommunity()) { // With the Community license, all genres are accessibl...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Builders/FavoriteableBuilder.php
app/Builders/FavoriteableBuilder.php
<?php namespace App\Builders; use App\Models\User; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Query\JoinClause; use Illuminate\Support\Facades\DB; /** * @property ?User $user */ abstract class FavoriteableBuilder extends Builder { /** * @param bool $favoritesOnly Whether to query th...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Builders/AlbumBuilder.php
app/Builders/AlbumBuilder.php
<?php namespace App\Builders; use App\Builders\Concerns\CanScopeByUser; use App\Facades\License; use App\Models\Album; use App\Models\User; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Query\JoinClause; use Illuminate\Support\Facades\DB; use LogicException; use Webmozart\Assert\Assert; class Alb...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Builders/SongBuilder.php
app/Builders/SongBuilder.php
<?php namespace App\Builders; use App\Builders\Concerns\CanScopeByUser; use App\Facades\License; use Illuminate\Database\Eloquent\Builder; use Illuminate\Database\Query\JoinClause; use Illuminate\Support\Facades\DB; use Illuminate\Support\Str; use LogicException; use Webmozart\Assert\Assert; class SongBuilder extend...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Builders/PodcastBuilder.php
app/Builders/PodcastBuilder.php
<?php namespace App\Builders; use App\Builders\Concerns\CanScopeByUser; use Illuminate\Database\Query\JoinClause; use LogicException; class PodcastBuilder extends FavoriteableBuilder { use CanScopeByUser; public function subscribed(): self { throw_if(!$this->user, new LogicException('User must b...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Builders/UserBuilder.php
app/Builders/UserBuilder.php
<?php namespace App\Builders; use App\Enums\Acl\Role as RoleEnum; use Illuminate\Database\Eloquent\Builder; use Illuminate\Support\Collection as BaseCollection; /** * @method Builder whereRole(RoleEnum|string|array|BaseCollection $roles) Scope the model query to certain roles only. */ class UserBuilder extends Bui...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Builders/RadioStationBuilder.php
app/Builders/RadioStationBuilder.php
<?php namespace App\Builders; use App\Builders\Concerns\CanScopeByUser; use App\Models\User; use LogicException; class RadioStationBuilder extends FavoriteableBuilder { use CanScopeByUser; private function accessible(): self { throw_unless($this->user, new LogicException('User must be set to que...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Builders/Concerns/CanScopeByUser.php
app/Builders/Concerns/CanScopeByUser.php
<?php namespace App\Builders\Concerns; use App\Models\User; trait CanScopeByUser { protected ?User $user = null; public function setScopedUser(User $user): static { $this->user = $user; return $this; } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Facades/Util.php
app/Facades/Util.php
<?php namespace App\Facades; use Illuminate\Support\Facades\Facade; /** * @method static string detectUTFEncoding(string $name) */ class Util extends Facade { protected static function getFacadeAccessor(): string { return 'Util'; } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Facades/YouTube.php
app/Facades/YouTube.php
<?php namespace App\Facades; use Illuminate\Support\Facades\Facade; /** * @method static bool enabled() */ class YouTube extends Facade { protected static function getFacadeAccessor(): string { return 'YouTube'; } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Facades/Dispatcher.php
app/Facades/Dispatcher.php
<?php namespace App\Facades; use App\Jobs\QueuedJob; use Illuminate\Support\Facades\Facade; /** * @method static mixed dispatch(QueuedJob $job) * @see \App\Services\Dispatcher */ class Dispatcher extends Facade { protected static function getFacadeAccessor(): string { return 'Dispatcher'; } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Facades/ITunes.php
app/Facades/ITunes.php
<?php namespace App\Facades; use Illuminate\Support\Facades\Facade; /** * @method static bool used() */ class ITunes extends Facade { protected static function getFacadeAccessor(): string { return 'iTunes'; } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Facades/License.php
app/Facades/License.php
<?php namespace App\Facades; use App\Exceptions\KoelPlusRequiredException; use Illuminate\Support\Facades\Facade; /** * @method static bool isPlus() * @method static bool isCommunity() * @see \App\Services\LicenseService */ class License extends Facade { public static function requirePlus(): void { ...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Facades/Download.php
app/Facades/Download.php
<?php namespace App\Facades; use App\Models\Song; use Illuminate\Support\Facades\Facade; /** * @method static string getLocalPath(Song $song) * @see \App\Services\DownloadService */ class Download extends Facade { protected static function getFacadeAccessor(): string { return 'Download'; } }
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/DoctorCommand.php
app/Console/Commands/DoctorCommand.php
<?php namespace App\Console\Commands; use App\Enums\DoctorResult; use App\Enums\SongStorageType; use App\Facades\License; use App\Helpers\Ulid; use App\Http\Integrations\Lastfm\LastfmConnector; use App\Http\Integrations\Lastfm\Requests\GetArtistInfoRequest; use App\Http\Integrations\Spotify\SpotifyClient; use App\Htt...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false
koel/koel
https://github.com/koel/koel/blob/add9401a4b9a904bb1b9f679bc674ad1570ff20e/app/Console/Commands/InstallSchedulerCommand.php
app/Console/Commands/InstallSchedulerCommand.php
<?php namespace App\Console\Commands; use Illuminate\Console\Command; use TiBeN\CrontabManager\CrontabAdapter; use TiBeN\CrontabManager\CrontabJob; use TiBeN\CrontabManager\CrontabRepository; class InstallSchedulerCommand extends Command { protected $signature = 'koel:scheduler:install'; protected $descripti...
php
MIT
add9401a4b9a904bb1b9f679bc674ad1570ff20e
2026-01-04T15:02:34.446708Z
false