Just tested on my end, and it’s working fine. Looks like something went wrong with the installation. Here are steps to follow to get it working:
- In the plug-in root directory create
composer.json
file with the following content:{ "name": "Example Application", "description": "This is an example", "require": { "cloudconvert/cloudconvert-php": "2.2.*" } }
- run
composer install
command on the same directory (in case you haven’t installed composer, you can download and install from here). It will install cloudconvert with dependencies into thevendor
directory, and will createvendor/autoload.php
which you will include in your project. - require autoload.php from your plug-in:
require __DIR__ . '/vendor/autoload.php'; use \CloudConvert\Api; $api = new Api("your_api_key"); var_dump($api); exit;
You can wrap the functionality you use cloudconvert in a class, attach hooks, and include that file whenever you need to operate with.
Related Posts:
- How do I retrieve featured posts using the WordPress API (v1)?
- WordPress plugin (Q&A Lite by WPMU Dev) not working once logged out from the WordPress admin account
- PHP fopen() Error: failed to open stream: Permission denied
- More Than One OG URL Specified and only Yoast graph is open not Jetpack
- Redirect after Login on WordPress
- Formidable Forms WordPress Plugin
- How to implement inline cm/inches conversion in WordPress
- Redirect old php link to wordpress link in .htaccess
- WordPress qw.php file on root of installation
- How to change thumbnails for WordPress pages (KakaoTalk)
- How to convert JPG to PNG on upload in WordPress (via add_image_size)?
- WordPress asking for my FTP credentials to install plugins
- WordPress asking for my FTP credentials to install plugins
- Problem when embedding images on Discord Webhook (Image hosted on a WordPress website)
- how can i get a sign in/ Register plug in like fiverr.com’s on WordPress
- WordPress makes an auto-draft as soon as I enter the page
- Php – Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- Php – Your PHP installation appears to be missing the MySQL extension which is required by WordPress
- Local WordPress installation is stripping ‘wp-admin’ from URL on WordPress admin dashboard
- How can I block doubleclick.net cookie from my wordpress website?
- How To Change Default Image Thumbnail Sizes in WordPress
- Can I install/update WordPress plugins without providing FTP access?
- WordPress how to remove blocksy theme price and put my own price
- WordPress on XAMPP setting up Zoho mail
- Jot forms/any other forms are better then forms theme based forms in WordPress websites
- display data on wordpress site using mindbody api
- wordpress – want to connect my ABOR(Austin Board of Realtors)website to RETS Matrix
- Exclude Featured Posts in WordPress ‘Recent Posts’ Function
- How to login into wordpress.com using HtmlUnit?
- WordPress – add second logo to customizer
- php, cookies, wordpress – how to make automatic login in one one site, login and on other one
- 403 Forbidden You don’t have permission to access / on this server new WordPress install
- Woocommerce/WordPress BarclayCard Payment Gateway
- WordPress Login Tracking Google Analytics
- Binance Long Short Ratio Chart In WordPress
- How to login to WordPress Offline?
- WordPress – Check if user is logged in
- language flags (Image links) with css not work in WordPress costum theme
- WordPress custom supports for custom post types
- nginx progy pass doesn’t work in WordPress admin
- nginx progy pass doesn’t work in WordPress admin
- WordPress is giving me 404 page not found for all pages except the homepage
- Marathi typing option in wordpress Editor
- Query multiple WordPress post types alternately
- wp-admin vs wp-login in wordpress
- How to logout via url at wordpress?
- With “magic quotes” disabled, why does PHP/WordPress continue to auto-escape my POST data?
- After moving WordPress, login works, but no admin access anymore
- WordPress localhost not working
- Send a copy to yourself with Contact Form 7 in WordPress
- validate textfield contents in wordpress simple job board plugin
- WordPress child theme of a child theme
- Apache mod_rewrite Infinite Loop when Accessing WordPress Admin Dashboard
- Free e-signature in wordpress
- Dash icons Not Showing properly in Menu Using WordPress
- WordPress Error: There has been a critical error on your website. Please check your site admin email inbox for instructions
- No paged query var being set in WordPress custom pagination
- tyring to combine two wordpress queries into one.
- Rename block fields in the WordPress style dropdown
- Setup for WordPress + Plesk + Git + Local Environment
- WordPress NextGEN loop through images from specific album
- not able to include league spartan family in my wordpress site
- WordPress broken app to try wpscan kali tool
- how to change a wordpress home page permalink as referenced in submenu links
- WordPress cp-appointment-calendar redirection to paypal issues
- WordPress custom admin login page
- How to define custom capabilities in wordpress for custom plugin
- How can I upload custom profile picture of user in wordpress from front end other that gavatar without using plugin?
- Using WPBakery Page Builder and Default WordPress Elements
- WordPress Salient theme: getting a full width 2 columns portfolio
- WordPress: schedule multiple action hooks of the same name and time
- Is there a way to force WordPress to overwrite plugin files on installation?
- Prevent category updates in WordPress Woocommerce REST API
- Double slashes on WordPress Admin URL redirects to wp-login
- wordpress login wp-login.php change url
- WordPress Respond.io Web Chat Widget not working properly on Android
- Cuelinks widget’s half part is getting hidden on WordPress website
- WordPress File Uploader Error in Godaddy Managed WP Hosting
- Sina Weibo feeds in WordPress?
- Docker WordPress can’t update/install plugins
- WordPress- url for localhost wp-admin is not working
- bitnami/WordPress chart – embed uploads in a custom image
- bitnami/WordPress chart – embed uploads in a custom image
- Mailpoet and Mandrill plugins: Email issue for wordpress
- Alternative to wordpress.com for free WordPress hosting?
- Display Ninja Forms Data in WordPress Template
- WordPress: LinkedIn Posting Link doesn’t show meta og description or title
- How can I embed a YouTube video in a WordPress template page?
- Get Categories of events in WordPress Events Calendar Pro Plugin
- How to retrieve WordPress login URL after changing it (hiding Backend) with ithemes-security plugin
- Adding style.css in wordpress, the correct way
- Modern Events Calendar & WordPress: Advanced Speaker addon’s Speaker single page summary doesn’t recognize paragraph breaks
- Where to start in the WordPress codex?
- the email could not be sent in wordpress
- Where can I find the “Leave a Reply” line in the WordPress SmartBiz.1.1.1 theme?
- How can I configure the WordPress development environment locally?
- function “add_submenu_page in wordpress connects to the home page instead of the submenu page
- Add php code inside the function add_shortcode in functions.php WordPress
- Can I host my wordpress blog on github pages as a static webpage
- Show comments on WordPress home page