havenstd06/laravel-jellyfin
最新稳定版本:v0.1
Composer 安装命令:
composer require havenstd06/laravel-jellyfin
包简介
A Laravel package that allows access to the API of your Jellyfin server.
README 文档
README
A Laravel package that allows access to the API of your Jellyfin server.
Features
The only sections available at the moment are:
- Library
- System
- User
Refer to Jellyfin API Doc
Installation
composer require havenstd06/laravel-jellyfin
Publish Assets
php artisan vendor:publish --provider="Havenstd06\LaravelJellyfin\Providers\JellyfinServiceProvider"
Configuration
After publishing the assets, add the following to your .env files .
# Jellyfin API JELLYFIN_SERVER_URL= JELLYFIN_TOKEN= JELLYFIN_APPLICATION= JELLYFIN_VALIDATE_SSL=true
Configuration File
The configuration file jellyfin.php is located in the config folder. Following are its contents when published:
return [ 'server_url' => env('JELLYFIN_SERVER_URL', ''), // Jellyfin Server URL (ex: https://[IP address]:8096 or https://domain.com) 'token' => env('JELLYFIN_TOKEN', ''), 'application' => env('JELLYFIN_APPLICATION', 'Laravel Jellyfin / v1.0'), // Jellyfin application name 'version' => env('JELLYFIN_VERSION', '10.8.8'), // (Jellyfin application version number) 'validate_ssl' => env('JELLYFIN_VALIDATE_SSL', true), // Validate SSL when creating api client. ];
Usage
Initialization
use Havenstd06\LaravelJellyfin\Services\Jellyfin as JellyfinClient; $provider = new JellyfinClient;
Override Configuration
You can override Jellyfin API configuration by calling setApiCredentials method:
$config = [ 'server_url' => 'https://example.com', 'token' => 'your-token', 'application' => 'your-client-application-name', // optional 'version' => 'your-version', // optional 'validate_ssl' => true, ]; $provider->setApiCredentials($config);
Acknowledgements
License
Contributing
Pull requests are welcome.
For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.
统计信息
- 总下载量: 48
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2023-01-04
