PHPackages                             arielmagbanua/webflow-php-sdk - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [API Development](/categories/api)
4. /
5. arielmagbanua/webflow-php-sdk

ActiveLibrary[API Development](/categories/api)

arielmagbanua/webflow-php-sdk
=============================

PHP SDK for the Webflow Data API

v0.6.3(1w ago)076↓100%[1 issues](https://github.com/arielmagbanua/webflow-php-sdk/issues)MITPHPPHP &gt;=8.1CI passing

Since Apr 30Pushed 1w agoCompare

[ Source](https://github.com/arielmagbanua/webflow-php-sdk)[ Packagist](https://packagist.org/packages/arielmagbanua/webflow-php-sdk)[ Docs](https://github.com/arielmagbanua/webflow-php-sdk)[ RSS](/packages/arielmagbanua-webflow-php-sdk/feed)WikiDiscussions main Synced 1w ago

READMEChangelog (10)Dependencies (4)Versions (18)Used By (0)

[![Tests / Lint](https://github.com/arielmagbanua/webflow-php-sdk/actions/workflows/tests.yml/badge.svg)](https://github.com/arielmagbanua/webflow-php-sdk/actions/workflows/tests.yml/badge.svg)[![Packagist Version](https://camo.githubusercontent.com/5f8053ba406a95c6f9848e4c3bdc880acb0a260e2b9320013059a0f8ad8d70d5/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f617269656c6d616762616e75612f776562666c6f772d7068702d73646b)](https://packagist.org/packages/arielmagbanua/webflow-php-sdk)[![Packagist Downloads](https://camo.githubusercontent.com/c9c59f7f3b1a6da7a17f8477c1041728ca904d55ab59f5bf0d708bc88518c277/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f617269656c6d616762616e75612f776562666c6f772d7068702d73646b3f6c6162656c3d7061636b6167697374253230646f776e6c6f616473)](https://packagist.org/packages/arielmagbanua/webflow-php-sdk)[![Packagist Stars](https://camo.githubusercontent.com/50e413dfa7e519e3518003a5d8b18c77c6225fd74d1a91b3a3ba07500eb2fd34/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f73746172732f617269656c6d616762616e75612f776562666c6f772d7068702d73646b)](https://packagist.org/packages/arielmagbanua/webflow-php-sdk)

PHP Webflow SDK
===============

[](#php-webflow-sdk)

PHP SDK for the Webflow Data API

Authentication
==============

[](#authentication)

If you are not using a workspace or site token, you can use the [OAuth](/src/DataApi/Versions/V2/Authentication/OAuth.php) class to retrieve an access token.

```
// include the vendor autoload
require_once __DIR__ . '/../vendor/autoload.php';

use ArielMagbanua\PhpWebflowApi\DataApi\Versions\V2\Authentication\OAuth;
use Dotenv\Dotenv;

// load environment variable if API credentials were configured in the environment
$dotenv = Dotenv::createImmutable(__DIR__ . '/../');
$dotenv->safeLoad();

// API credentials
$clientId = $_ENV['WEBFLOW_CLIENT_ID'] ?? null;
$clientSecret = $_ENV['WEBFLOW_CLIENT_SECRET'] ?? null;
$state = $_ENV['WEBFLOW_DEFAULT_STATE'] ?? null;
$redirectUri = $_ENV['WEBFLOW_REDIRECT_URI'] ?? null;

// create OAuth object
$oauth = new OAuth(
    clientId: $clientId,
    clientSecret: $clientSecret,
    state: $state,
    redirectUri: $redirectUri,
    scopes: [
        'cms:read',
        'cms:write',
        'authorized_user:read',
    ]
);

// generate authorization url use the URL to authenticate the client
$authorizationUrl = $oauth->getAuthorizationUrl();
```

After successful client authentication, the client will be redirected to the provided redirect url where you can retrieve the authorization `code` from the query part of the redirect url. Once you retrieve the `code`, you should be able now to exchange it for access token.

```
// exchange the authorization code with access token
$tokenObject = $oauth->requestAccessToken($code);

// get the access token value
$accessToken = $tokenObject->getAccessToken();
```

CMS and Data API Resources Usage
================================

[](#cms-and-data-api-resources-usage)

Once you secure your access token via OAuth or if you have already workspace or site token. You can now push or pull data from CMS or other Data API resources.

```
// include the vendor autoload
require_once __DIR__ . '/../vendor/autoload.php';

use ArielMagbanua\PhpWebflowApi\DataApi\Versions\V2\Cms\CollectionItems\LiveItems;
use ArielMagbanua\PhpWebflowApi\DataApi\Versions\V2\Cms\CollectionItems\StagedItems;
use ArielMagbanua\PhpWebflowApi\DataApi\Versions\V2\Token\Info;

// retrieved via OAuth or this can be a provided workspace or site access token
$accessToken = 'access_token';

$liveItems = new LiveItems(
    accessToken: $accessToken,
    collectionId: 'live_collection_id' // use the correct collection id from CMS
);
$stagedItems = new StagedItems(
    accessToken: $accessToken,
    collectionId: 'staged_collection_id'
);
$tokenInfo = new Info(
    accessToken: $accessToken
);

// information about the Authorized User
$tokenInfo->getAuthorizationUserInfo();

// information about the authorization token
$tokenInfo->getAuthorizationInfo();

// retrieve live collection items
$liveItems = $liveItems->listItems();

// retrieve staged collection items
$stagedItems = $stagedItems->listItems();
```

###  Health Score

42

—

FairBetter than 88% of packages

Maintenance98

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity41

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~2 days

Total

18

Last Release

7d ago

PHP version history (2 changes)v0.1.0PHP ^8.1

v0.3.0PHP &gt;=8.1

### Community

Maintainers

![](https://www.gravatar.com/avatar/595fccfe5310bb9418fd757f84402a1c1c7dd1302c8c0c18d02a67837113b49c?d=identicon)[arielmagbanua](/maintainers/arielmagbanua)

---

Top Contributors

[![arielmagbanua](https://avatars.githubusercontent.com/u/2193300?v=4)](https://github.com/arielmagbanua "arielmagbanua (134 commits)")

---

Tags

phpapisdkcmsdata apiwebflow

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/arielmagbanua-webflow-php-sdk/health.svg)

```
[![Health](https://phpackages.com/badges/arielmagbanua-webflow-php-sdk/health.svg)](https://phpackages.com/packages/arielmagbanua-webflow-php-sdk)
```

###  Alternatives

[openai-php/laravel

OpenAI PHP for Laravel is a supercharged PHP API client that allows you to interact with the Open AI API

3.7k8.8M83](/packages/openai-php-laravel)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[resend/resend-php

Resend PHP library.

596.2M34](/packages/resend-resend-php)[checkout/checkout-sdk-php

Checkout.com SDK for PHP

563.5M10](/packages/checkout-checkout-sdk-php)[clicksend/clicksend-php

351.6M11](/packages/clicksend-clicksend-php)[mozex/anthropic-laravel

Laravel integration for the Anthropic API: facade, config publishing, install command, testing fakes, messages, streaming, tool use, thinking, and batches.

74287.1k1](/packages/mozex-anthropic-laravel)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
