Implementation based on Webflow CMS API Reference
- Get Current Authorization Info
- List Sites
- Get Specific Site
- Publish Site
- List Domains
- List Collections
- Get Collection with Full Schema
- Get All Items for a Collection (including paginated results)
- Find one or Create Item by Name
- Get Single Item
- Create New Collection Item
- Update Collection Item
- Patch Collection Item
- Remove Collection Item
Check https://university.webflow.com/article/using-the-webflow-cms-api on how to generate YOUR_WEBFLOW_API_TOKEN
$webflow = new \Webflow\Api('YOUR_WEBFLOW_API_TOKEN');
$webflow->info();
$webflow->sites();
$webflow->collections($siteid);
$webflow->itemsAll($collectionId);
$webflow->item($collectionId, $itemId);
$fields = [
'name' => 'New item created via API',
# ...
];
$webflow->createItem($collectionId, $fields);
$webflow->updateItem($collectionId, $itemId, $fields);
$webflow->removeItem($collectionId, $itemId);
# Install Composer
composer require expertlead/webflow-php-sdk
No extra dependencies! You are welcome ;)