PHP code example of darkdiesel / php-knack-rest-client
1. Go to this page and download the library: Download darkdiesel/php-knack-rest-client 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/ */
darkdiesel / php-knack-rest-client example snippets
use KnackRestApi\Record\RecordService;
use KnackRestApi\Configuration\ArrayConfiguration;
$rs = new RecordService(new ArrayConfiguration(
array(
'knackAppId' => 'application_id',
'knackRestApiKey' => 'rest_api_key',
)
));
sh
curl -sS https://getcomposer.org/installer | php
sh
php composer.phar
sh
php composer.phar install