Connecting Via the API (Through PHP)

  • 1
  • Question
  • Updated 1 year ago
Hi All.

New to Ring Central and in the process of getting our house in order to test and trial the PHP API. I know the guide is not full completed, but hopefully there are some out there that have already done this.

We presently are testing through XAMPP running on a laptop with a virtualised Apache server and mySQL DB's. 

Is it relatively easy to install and configure Composer and PHAR in XAMPP?

Is there a relatively straightforward implementation guide on how this would work via XAMPP?

Thanks
Matt / Lee
Photo of Lee Bennett

Lee Bennett

  • 80 Points 75 badge 2x thumb

Posted 1 year ago

  • 1
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,584 Points 5k badge 2x thumb
I am not a PHP expert. XAMPP helps you to setup a PHP development environment quickly and easily. After you get your development ready, you can follow the README of RingCentral PHP SDK to install it: https://github.com/ringcentral/ringcentral-php#with-composer-recommended  Composer is supported and recommended.
Photo of Lee Bennett

Lee Bennett

  • 80 Points 75 badge 2x thumb
So, an update from my side. I have downloaded the repository and running it locally via XAMPP. I have installed the windows version of Composer and it's now linked up to the PHP.EXE file as required.

However - Inside the core scripts - the _bootstrap.php file is looking for ../Vendor/autoload.php which does not exist in the repository.

I'm clearly missing something obvious - can you assist?
Photo of Tyler Long

Tyler Long, Official Rep

  • 5,584 Points 5k badge 2x thumb
Maybe the latest update breaks the composer support. Please create an issue here: https://github.com/ringcentral/ringcentral-php/issues