Download the PHP package leobsst/laravel-pcloud-filesystem without Composer

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

Laravel pCloud Filesystem

Latest Version on Packagist GitHub Tests Action Status Total Downloads License Laravel PHP

A Laravel filesystem driver for pCloud, built on top of the pCloud PHP SDK and Flysystem v3. Exposes a pcloud disk driver that integrates seamlessly with Storage::disk('pcloud').

Requirements

Installation

Install the package via Composer:

The service provider is auto-discovered — no manual registration needed.

Configuration

Option A — Interactive setup (recommended)

Run the install command. It will guide you through the OAuth2 flow and write the credentials directly to your .env:

Or run the configure command standalone (useful when adding a second pCloud disk with a prefix):

The command will:

  1. Ask for an optional environment variable prefix (e.g. BACKUPBACKUP_PCLOUD_ACCESS_TOKEN). Leave empty for the default PCLOUD_* names.
  2. Ask for your pCloud client_id and client_secret (obtained from the pCloud developer console).
  3. Open a browser authorization URL — after you approve, copy the code from the redirect URL.
  4. Exchange the code for an access token and write PCLOUD_ACCESS_TOKEN, PCLOUD_LOCATION_ID, and PCLOUD_ROOT to your .env. If a variable already exists you will be asked whether to override it.

Option B — Manual setup

1. Obtain a pCloud access token

Create an app in the pCloud developer console and complete the OAuth2 flow to obtain an access token.

2. Add environment variables

3. Register the disk

Add the pcloud entry to the disks array in config/filesystems.php:

Multiple disks / prefix

If you need more than one pCloud disk (e.g. a primary and a backup), run pcloud-filesystem:configure a second time and supply a prefix when prompted:

This produces BACKUP_PCLOUD_ACCESS_TOKEN, BACKUP_PCLOUD_LOCATION_ID, and BACKUP_PCLOUD_ROOT, which you then wire up as a second disk in config/filesystems.php:

The root option scopes all filesystem operations to that pCloud folder. For example, setting root to /MyApp means Storage::disk('pcloud')->put('uploads/file.txt', ...) will write to /MyApp/uploads/file.txt on pCloud. Missing intermediate directories are created automatically.

Usage

Once configured, use the disk exactly like any other Laravel filesystem disk:

Unsupported features

Visibility control is not supported by pCloud. Calling setVisibility() always throws UnableToSetVisibility. The visibility() method always returns public.

Testing

Changelog

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

Contributing

Please see CONTRIBUTING for details.

Security

Please see SECURITY for how to report security vulnerabilities.

Credits

License

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


All versions of laravel-pcloud-filesystem with dependencies

PHP Build Version
Package Version
Requires php Version ^8.2
illuminate/contracts Version ^11.0||^12.0||^13.0
illuminate/http Version ^11.0||^12.0||^13.0
league/flysystem Version ^3.0
pcloud/pcloud-php-sdk Version ^3.0
spatie/laravel-package-tools Version ^1.16
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 leobsst/laravel-pcloud-filesystem contains the following files

Loading the files please wait ...