gitstore / webflow
A decent PHP Webflow client
0.1.1
2019-05-21 11:34 UTC
Requires
- nesbot/carbon: ^1.0|^2.0
Requires (Dev)
- guzzlehttp/guzzle: ^6.3
- phpunit/phpunit: ^8.1
- vlucas/phpdotenv: ^3.3
This package is auto-updated.
Last update: 2024-11-19 22:40:15 UTC
README
A decent PHP Webflow client
Getting started
composer require gitstore/webflow
Basic usage
use Gitstore\Webflow\Clients\GuzzleClient; $client = new GuzzleClient(getenv("WEBFLOW_TOKEN")); $sites = $client->getSites(); $collections = $client->getCollections($sites[0]->id); $operation = $client->createItem($collections[0]->id, [ "name" => "A new item", ]); print $operation->wasSuccessful(); // true print $operation->getModel()->id; // "5c7295..."
Check out the tests for more advanced usage.
Feedback
Reach out on Twitter.