Download the PHP package hexcss/wp-cloud-upload without Composer

On this page you can find all versions of the php package hexcss/wp-cloud-upload. 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 wp-cloud-upload

Cloud Upload Plugin

Version: 1.0.0 Author: Javier Cáder Suay

Overview

The Cloud Upload Plugin allows you to seamlessly upload WordPress media files to Google Cloud Storage, eliminating the need for local storage. This plugin automatically uploads files to a specified Google Cloud Storage bucket, organizes them by year and month, and replaces the local file URLs with public URLs from Google Cloud. Additionally, when media files are deleted from the WordPress media library, they are also removed from Google Cloud Storage.

Features

Requirements

Installation

  1. Clone the Repository:

  2. Navigate to the Plugin Directory:

  3. Install Composer Dependencies:

    Ensure you have Composer installed on your system. Then, run:

  4. Activate the Plugin:

Configuration

  1. Google Cloud Setup:

    • Create a Google Cloud Storage bucket with Uniform Bucket-Level Access enabled.
    • Create a service account with Storage Admin permissions.
    • Download the service account key in JSON format.
  2. Plugin Configuration:

    • In the WordPress admin dashboard, go to Settings > Cloud Upload.
    • Paste the contents of your Google Cloud service account JSON into the Service Account JSON field.
    • Enter the name of your Google Cloud Storage bucket in the Bucket Name field.
    • Save the settings.

Usage

Uploading Media Files

- When you upload a file through the WordPress media library, it will automatically be uploaded to Google Cloud Storage.
- The file will be stored in a year/month directory structure within your bucket.
- The URL of the file in WordPress will be replaced with the public URL from Google Cloud Storage.

Deleting Media Files

- When you delete a media file from the WordPress media library, the plugin will automatically delete the corresponding file from Google Cloud Storage.

Troubleshooting

- File Not Found: Ensure the Google Cloud Storage bucket is publicly accessible.
- Permissions Issues: Double-check the service account permissions and that the service account JSON is correctly configured in the plugin setting

Contributing

Contributions are welcome! If you find a bug or have an idea for an improvement, please open an issue or submit a pull request

Future Features and Roadmap

Learn more about upcoming features and development plans in the following documents:


All versions of wp-cloud-upload with dependencies

PHP Build Version
Package Version
Requires php Version >=7.4
google/cloud-storage Version ^1.25
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 hexcss/wp-cloud-upload contains the following files

Loading the files please wait ....