Comments (2)
Hi,
Installing it with CakePHP should be pretty easy, if your CakePHP installation was also done with composer: http://book.cakephp.org/2.0/en/installation/advanced-installation.html. In this case you only need to add "cloudconvert/cloudconvert-php": "dev-master"
to your require
section in composer.json
. Using php composer.phar install
the wrapper will be automatically installed, including all dependencies (Guzzle).
If you did not use composer for your CakePHP installation, I would recommend to download the .phar
file from the "Releases" tab and include it as described in the Readme. You do not need to download Guzzle seperately, it is included in the .phar file.
Hope that helps.
from cloudconvert-php.
Ok - I tried doing what you said. Ran into a few issues
- Including the Phar file as-is didnt work for some reason. I got a lot of errors at runtime
- So I exploded the Phar file and included the below statements in my PHP file (using CakePHP convention) - I still get the error that Api class is not recognized.
More details:
- after exploding the phar file, I copied all its contents under 'App/vendor/cloudconvert'
- I also tried one more time with just the phar file and it still didnt work
Any help is much appreciated
App::import('Vendor', 'CloudConvert', array('file' => 'cloudconvert/vendor/autoload.php'));
App::import('Vendor', 'Api', array('file' => '\CloudConvert\Api'));
from cloudconvert-php.
Related Issues (20)
- Wait Endpoint Deprecated HOT 3
- PHP 8.1 Support HOT 1
- Best way to Add SSL Cert to Guzzle being used
- A new job. HOT 2
- issue with php-http
- Update compose to use symfony/options-resolver v7 HOT 1
- getResult on export task returns nothing HOT 8
- Compose Installation Issue HOT 6
- i am acing this problem. HOT 2
- Getting empty response in ExportUrls from Jobs HOT 3
- getting error: The tasks field is required HOT 1
- Support for guzzle/psr7 2.1.0 HOT 2
- Need an example of how to convert html to docx HOT 1
- Improve documentation HOT 4
- Class 'CloudConvert\CloudConvert' not found
- DOCX to PDF: "can't find PDF header" error HOT 2
- Archive HOT 1
- Idle timeout reached HOT 1
- Job error 'started too many jobs at once' HOT 2
- Issue downloading the file
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cloudconvert-php.