WP Manifestindependent plugin directory
manifest / integrations / mt-wp-photo-analysis-plugin

MT Photo Analysis archived

WordPress plugin to detect text in images

by Xennis · github.com/mirostruckstop/mt-wp-photo-analysis-plugin · website

0stars
0forks

Install

No release zip yet. The repository archive installs, but the folder name will carry the branch suffix and updates will not flow:

wp plugin install https://github.com/mirostruckstop/mt-wp-photo-analysis-plugin/archive/refs/heads/master.zip

Readme

MT WordPress Photo Analysis Plugin

Setup

Requirements

  1. Create a service account with the required role

     gcloud iam service-accounts create mt-website --display-name "mt-website"
     id="mt-website@${GCP_PROJECT}.iam.gserviceaccount.com"
     gcloud iam service-accounts add-iam-policy-binding "${id}" \
         --member="serviceAccount:${id}" \
         --role="roles/pubsub.publisher"
  2. Create a key for that service account

     gcloud iam service-accounts keys create keyfile.json --iam-account="${id}"
  3. Set the content of the keyfile.json as constant GCP_APPLICATION_KEY in the wp-config.php file

     define('GCP_APPLICATION_KEY', '{
         "type": "service_account",
         [...]
     }');
  4. Set the JWT used by the cloud function in the wp-config.php file

     define('GCP_JWT', 'JWT-HERE');

Development

Requirements

  • PHP and Composer (dependency manager for PHP) are installed

Steps

  1. Install the requirements: composer install

Sync required files

rsync -r --relative *.php src vendor/autoload.php vendor/composer <host>:<wordpress-dir>/wp-content/plugins/mt-wp-photo-analysis/

Read the full README on GitHub →