havenstd06/laravel-jellyfin 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

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

MIT

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

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 2
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-01-04

承接程序开发

PHP开发

VUE

Vue开发

前端开发

小程序开发

公众号开发

系统定制

数据库设计

云部署

网站建设

安全加固