1. Go to this page and download the library: Download tobya/webflow-php-sdk 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/ */
tobya / webflow-php-sdk example snippets
$webflow->publishItem($collectionId, $itemIds);
$domains = [$domainID];
// if you wish to publish to your mydomain.webflow.io subdomain you should specify
// true. If true $domains **must** be an empty array
$publishWebflowSubdomain = true;
$webflow->publishSite($siteId,$domains, $publishWebflowSubdomain)
$webflow = new \Webflow\Api('YOUR_WEBFLOW_API_TOKEN');
$webflow->info();
$fields = [
'name' => 'New item created via API',
# ...
];
$webflow->createItem($collectionId, $fields);