Coder Social home page Coder Social logo

Comments (2)

josiasmontag avatar josiasmontag commented on July 28, 2024

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 requiresection 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 .pharfile 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.

chicagosky avatar chicagosky commented on July 28, 2024

Ok - I tried doing what you said. Ran into a few issues

  1. Including the Phar file as-is didnt work for some reason. I got a lot of errors at runtime
  2. 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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.