Download the PHP package mathsgod/pcloud-sdk-php without Composer

On this page you can find all versions of the php package mathsgod/pcloud-sdk-php. 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 pcloud-sdk-php

pcloud-sdk-php

Note: This library was developed because the official SDK (pCloud/pcloud-sdk-php) lacks many features. This project aims to provide a more complete and practical PHP SDK for pCloud.

pcloud-sdk-php is a PHP SDK for accessing the pCloud API. It supports file, folder, sharing, public links, thumbnails, trash, archiving, transfer, collection, and account management operations.

EU or US API Endpoint

pCloud provides both EU and US API endpoints.

Installation

Recommended via Composer:

Or simply include the src/ directory in your project.

Quick Start


Function List

For detailed parameters and return values, please refer to the source code comments.

General - userinfo() - supportedlanguages() - setlanguage(string $language) - currentserver() - diff(array $params = []) - getfilehistory(int $fileid) - getip() - getapiserver()
Auth - sendverificationemail() - verifyemail(string $code) - changepassword(string $oldpassword, string $newpassword) - lostpassword(string $mail) - resetpassword(string $code, string $newpassword) - register(string $mail, string $password, string $termsaccepted, ?string $language = null, ?string $referer = null) - invite() - userinvites() - logout() - listtokens() - deletetoken(int $tokenid) - sendchangemail(?string $newmail = null, ?string $code = null) - changemail(string $password, string $code) - senddeactivatemail() - deactivateuser(string $password, string $code)
Collection - collection_list(?int $type = null, bool $showfiles = false, ?int $pagesize = null) - collection_details(int $collectionid, ?int $page = null, ?int $pagesize = null) - collection_create(string $name, ?int $type = null, ?string $fileids = null) - collection_rename(int $collectionid, string $name) - collection_delete(int $collectionid) - collection_linkfiles(int $collectionid, string $fileids, bool $noitems = false) - collection_unlinkfiles(int $collectionid, ?string $positions = null, bool $all = false, ?string $fileids = null) - collection_move(int $collectionid, int $item, int $fileid, int $position)
PublicLinks - getfilepublink(?int $fileid = null, ?string $path = null, ?string $expire = null, ?int $maxdownloads = null, ?int $maxtraffic = null, bool $shortlink = false, ?string $linkpassword = null) - getfolderpublink(?int $folderid = null, ?string $path = null, ?string $expire = null, ?int $maxdownloads = null, ?int $maxtraffic = null, bool $shortlink = false, ?string $linkpassword = null) - gettreepublink(string $name, ?string $fileids = null, ?string $folderids = null, ?int $folderid = null, ?string $expire = null, ?int $maxdownloads = null, ?int $maxtraffic = null, bool $shortlink = false, ?string $linkpassword = null) - showpublink(string $code) - getpublinkdownload(string $code, ?int $fileid = null, bool $forcedownload = false, ?string $contenttype = null, ?int $maxspeed = null, bool $skipfilename = false) - copypubfile(string $code, ?int $fileid = null, ?string $topath = null, ?int $tofolderid = null, ?string $toname = null, bool $noover = false) - listpublinks() - listplshort() - deletepublink(int $linkid) - changepublink(int $linkid, array $options) - getpubthumb(string $code, int $fileid, string $size, bool $crop = false, ?string $type = null) - getpubthumblink(string $code, int $fileid, string $size, bool $crop = false, ?string $type = null) - getpubthumbslinks(string $code, int $fileid, string $size, bool $crop = false, ?string $type = null) - savepubthumb(string $code, int $fileid, string $size, ?string $topath = null, ?int $tofolderid = null, ?string $toname = null, bool $crop = false, ?string $type = null, bool $noover = false) - getpubzip(string $code, bool $forcedownload = false, ?string $filename = null, ?string $timeoffset = null) - getpubziplink(string $code, bool $forcedownload = false, ?string $filename = null, ?string $timeoffset = null) - savepubzip(string $code, ?string $timeoffset = null, ?string $topath = null, ?int $tofolderid = null, ?string $toname = null) - getpubvideolinks(string $code, ?int $fileid = null, bool $forcedownload = false, ?string $contenttype = null, ?int $maxspeed = null, bool $skipfilename = false) - getpubaudiolink(string $code, ?int $fileid = null, bool $forcedownload = false, ?string $contenttype = null, ?int $abitrate = null) - getpubtextfile(string $code, ?int $fileid = null, ?string $fromencoding = null, ?string $toencoding = null, bool $forcedownload = false, ?string $contenttype = null) - getcollectionpublink(int $collectionid, ?string $expire = null, ?int $maxdownloads = null, ?int $maxtraffic = null, bool $shortlink = false)
Revisions - listrevisions(?int $fileid = null, ?string $path = null) - revertrevision(?int $fileid = null, ?string $path = null, ?int $revisionid = null)
Thumbnails - getthumblink(?int $fileid = null, ?string $path = null, ?string $size = null, bool $crop = false, ?string $type = null) - getthumbslinks(string $fileids, string $size, bool $crop = false, ?string $type = null) - getthumb(?int $fileid = null, ?string $path = null, ?string $size = null, bool $crop = false, ?string $type = null) - savethumb(?int $fileid = null, ?string $path = null, ?string $size = null, ?string $topath = null, ?int $tofolderid = null, ?string $toname = null, bool $crop = false, ?string $type = null, bool $noover = false)
Trash - trash_list(int $folderid = 0, bool $nofiles = false, bool $recursive = false) - trash_restorepath(?int $fileid = null, ?int $folderid = null) - trash_restore(?int $fileid = null, ?int $folderid = null, ?int $restoreto = null, bool $metadata = false) - trash_clear(?int $fileid = null, ?int $folderid = null)
UploadLinks - createuploadlink(?int $folderid = null, ?string $path = null, string $comment = '', ?string $expire = null, ?int $maxspace = null, ?int $maxfiles = null) - listuploadlinks() - deleteuploadlink(int $uploadlinkid) - changeuploadlink(int $uploadlinkid, array $options) - showuploadlink(int $uploadlinkid) - uploadtolink(string $code, array $files, bool $nopartial = false, ?string $progresshash = null) - uploadlinkprogress(string $code, string $progresshash) - copytolink(string $code, ?int $fileid = null, ?string $path = null, ?string $toname = null)

Common Examples

Upload a file

Get file info

Download file (get download link)

Delete file

Create folder

List folder contents

Recursively delete folder

Copy folder

Copy, move, or rename file

Calculate file checksum

Get thumbnail link


Supported API Features

Documentation

License

MIT License


All versions of pcloud-sdk-php with dependencies

PHP Build Version
Package Version
Requires guzzlehttp/guzzle Version ^7.9
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 mathsgod/pcloud-sdk-php contains the following files

Loading the files please wait ....