Download the PHP package onlyoffice/docs-integration-sdk without Composer
On this page you can find all versions of the php package onlyoffice/docs-integration-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download onlyoffice/docs-integration-sdk
More information about onlyoffice/docs-integration-sdk
Files in onlyoffice/docs-integration-sdk
Package docs-integration-sdk
Short Description ONLYOFFICE Docs integration SDK
License Apache-2.0
Homepage https://www.onlyoffice.com
Informations about the package docs-integration-sdk
ONLYOFFICE Docs Integration PHP SDK
ONLYOFFICE Docs Integration PHP SDK provides common interfaces and default implementations for integrating ONLYOFFICE Document Server into your own website or application on PHP.
Prerequisites
- PHP: version 7.4.0 and higher
Managers
Manager | Description | Default implementation |
---|---|---|
DocumentManagerInterface | This manager is used for working with files, and string data associated with documents. | DocumentManager (abstract) |
FormatsManagerInterface | This manager is used for working with document formats. | FormatsManager |
JwtManagerInterface | This manager is used for generating and verifying authorization tokens. | JwtManager (abstract) |
SettingsManagerInterface | This manager is used to manage integration application settings. | SettingsManager (abstract) |
Services
Service | Description | Default implementation |
---|---|---|
CallbackServiceInterface | This service is used for processing the response of the Document Server. | CallbackService (abstract) |
DocEditorConfigServiceInterface | This configuration generation service is used for opening the document editor. | DocEditorConfigService |
RequestServiceInterface | This service is used to make requests to the ONLYOFFICE Document Server. | RequestService (abstract) |
Usage
-
Implement the methods of the abstract DocumentManager class:
-
Implement the methods of the abstract JwtManager class (use third-party libraries for JWT encoding and decoding, whichever is convenient for you):
-
Implement the methods of the abstract SettingsManager class:
-
Implement the methods of the abstract SettingsManager class:
-
Create a class that implements the HttpClientInterface interface (use PHP Client URL Library or any other third-party library to make requests):
-
Implement the method of the abstract RequestService class:
- Use DocEditorConfigService to create a config model for the editors in your own controllers.