keysoft/dokumentat 问题修复 & 功能扩展

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

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

keysoft/dokumentat

Composer 安装命令:

composer require keysoft/dokumentat

包简介

Package for using ONLYOFFICE DEVELOPER EDITION for documents

README 文档

README

Alt text

ONLYOFFICE DEVELOPER EDITION Package for Laravel with Vue 3 Integration

Overview

This Laravel package enables the integration of ONLYOFFICE DEVELOPER EDITION with Vue 3 applications. It includes controllers, models, and jobs to facilitate the connection with the ONLYOFFICE editor, allowing functionalities like document conversion to PDF among others. The package also includes example files demonstrating best practices and effective usage of ONLYOFFICE within a Laravel environment.

Key Dependencies:

Prerequisites

=== Ensure Laravel Breeze with Inertia.Vue is installed before using this package === 

Installation

You can install the package via composer:

composer require keysoft/dokumentat

You can publish and run the migrations with:

php artisan vendor:publish --tag="dokumentat-migrations"
php artisan migrate

Configuration Notes:

  • The config file sets the local environment IP and handles callbacks for document conversions using ONLYOFFICE's asynchronous approach.
  • Example configurations for local and production environments are provided below.
php artisan vendor:publish --tag="dokumentat-config"

This is the contents of the published config file:

  • Local Environment Config:
return [
    'developer' => 'http://192.168.0.3:82/"',
    'convert' => config('dokumentat.developer').'/ConvertService.ashx',
];
  • Production Environment Config:
return [
    'developer' => 'https://yourdomain.com/"',
    'convert' => config('dokumentat.developer').'/ConvertService.ashx',
];

Usage

After installing Breeze (or Inertia separately) and this package, use the following command to set up the necessary files:

php artisan dokumentat

This command will create a model, controller, a job, add routes, and a Vue document. It will also install the necessary npm packages.

Upcoming Features:

  • Guidelines for setting up a local environment with ONLYOFFICE.
  • Integration examples with PHPWord and PHPExcel.
Further details and use cases will be added soon, including setting up ONLYOFFICE locally and on a server, 
and integrating it with other applications.

Tutorials:

Testing

composer test

Changelog

Please see CHANGELOG for more information on what has changed recently.

Credits

License

The MIT License (MIT). Please see License File for more information.

统计信息

  • 总下载量: 11
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 2
  • 点击次数: 0
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

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

其他信息

  • 授权协议: MIT
  • 更新时间: 2023-11-14