Download the PHP package satana.konst/next-cloud-web-dav-sdk without Composer

On this page you can find all versions of the php package satana.konst/next-cloud-web-dav-sdk. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.

FAQ

After the download, you have to make one include require_once('vendor/autoload.php');. After that you have to import the classes with use statements.

Example:
If you use only one package a project is not needed. But if you use more then one package, without a project it is not possible to import the classes with use statements.

In general, it is recommended to use always a project to download your libraries. In an application normally there is more than one library needed.
Some PHP packages are not free to download and because of that hosted in private repositories. In this case some credentials are needed to access such packages. Please use the auth.json textarea to insert credentials, if a package is coming from a private repository. You can look here for more information.

  • Some hosting areas are not accessible by a terminal or SSH. Then it is not possible to use Composer.
  • To use Composer is sometimes complicated. Especially for beginners.
  • Composer needs much resources. Sometimes they are not available on a simple webspace.
  • If you are using private repositories you don't need to share your credentials. You can set up everything on our site and then you provide a simple download link to your team member.
  • Simplify your Composer build process. Use our own command line tool to download the vendor folder as binary. This makes your build process faster and you don't need to expose your credentials for private repositories.
Please rate this library. Is it a good library?

Informations about the package next-cloud-web-dav-sdk

NextCloudWebDavSdk

Обертка на классы WebDav и Share

$sdk = new \NextCloudWebDavSdk\NextCloudWebDavSdk( 'http://192.168.0.1', 'login', 'pass' ); $response = $sdk->webDav->getListingFolder(); $response = $sdk->share->createShare();

Все методы классов расписаны ниже.

WebDav

Документация по работе с WebDav https://docs.nextcloud.com/server/latest/developer_manual/client_apis/WebDAV/index.html

Авторизация

$webDav = new \NextCloudWebDavSdk\WebDav\Server( 'host', 'login', 'pass' );

Получить список файлов

$response = $webDav->getListingFolder( '/path/to/file' );

Скачать файл

$response = $webDav->downloadFile( '/path/to/download/file', 'path/to/save/file' );

Загрузка файлов

$response = $webDav->uploadFile( 'path/to/upload/file/test_upload_pdf.pdf', '/path/for/save/file/' );

Создать папку

$response = $webDav->createFolder( '/path/to/new/folder/', );

Удалить файл или директорию

$response = $webDav->removeFileOrDirectory( '/path/to/file/or/directory', );

Переместить файл или дирректорию

$response = $webDav->moveFileOrDirectory( '/path/file/to/move', '/path/file/to/destination' );

Копировать файл или директорию

$response = $webDav->copyFileOrDirectory( '/path/file/to/copy', '/path/file/to/destination' );

Поиск файлов и папок

Выбираемые свойства искомых элементов

Область поиска относительно корневой папки пользователя

Уровень вложенности поиска

Условия поиска

Сортировка

Share

Документация по шарингу https://docs.nextcloud.com/server/latest/developer_manual/client_apis/OCS/ocs-share-api.html

Авторизация

$share = new \NextCloudWebDavSdk\OCS\Share( 'host', 'login', 'pass' );

Расшарить файл

$response = $share->createShare( 'path/to/share/file' );

Удалить шару

$response = $share->removeShare( 'shareID' );

Получить шару

$response = $share->getShares( 'path/to/share/file' );

Обновить шару

$response = $share->updateShare( 'shareID' );


All versions of next-cloud-web-dav-sdk with dependencies

PHP Build Version
Package Version
Requires php Version ^7.0
sabre/dav Version ~3.2.0
Composer command for our command line client (download client) This client runs in each environment. You don't need a specific PHP version etc. The first 20 API calls are free. Standard composer command

The package satana.konst/next-cloud-web-dav-sdk contains the following files

Loading the files please wait ....