1. Go to this page and download the library: Download kappafix/php-salesforce library. Choose the download type require.
2. Extract the ZIP file and open the index.php.
3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
kappafix / php-salesforce example snippets
nachitox/php-salesforce-rest-api
bjsmasth/php-salesforce-rest-api
Cleeng/php-salesforce-rest-api
jerkob/php-salesforce-rest-api-forked
bash
composer
bash
$query = 'SELECT Id,Name FROM ACCOUNT LIMIT 100';
/* returns array with the queried data */
$data = $salesforce->query($query);