PHPackages                             koalati/webflow-api-client - 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. koalati/webflow-api-client

ActiveLibrary[API Development](/categories/api)

koalati/webflow-api-client
==========================

An API client for Webflow's REST API. Manage sites, collections, ecommerce, members, and more.

v0.5.0(3y ago)2128[1 PRs](https://github.com/koalatiapp/webflow-api-client/pulls)MITPHPPHP &gt;=8.1

Since Feb 21Pushed 3y ago1 watchersCompare

[ Source](https://github.com/koalatiapp/webflow-api-client)[ Packagist](https://packagist.org/packages/koalati/webflow-api-client)[ RSS](/packages/koalati-webflow-api-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (6)Dependencies (6)Versions (9)Used By (0)

API Client for Webflow's REST API
=================================

[](#api-client-for-webflows-rest-api)

[![Latest Version](https://camo.githubusercontent.com/d5a5b62e488279df6d0a8e25fba3e90d95d61d3164bb5eaaddc8c8f9caafbae4/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6b6f616c6174692f776562666c6f772d6170692d636c69656e743f7374796c653d666c61742d737175617265)](https://github.com/koalatiapp/webflow-api-client/releases)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.md)[![Build Status](https://camo.githubusercontent.com/f19d5d6acb8397b940a98c34c223b404e9952651295270bc5afa5db066f2eacc/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b6f616c6174696170702f776562666c6f772d6170692d636c69656e742f63692e796d6c3f7374796c653d666c61742d737175617265)](https://github.com/koalatiapp/webflow-api-client/actions/workflows/ci.yml)[![Latest real-life test](https://camo.githubusercontent.com/36df5fbf80bcb081003a16d81fb657190729ad889a8e87a37675c489feebbe6c/68747470733a2f2f696d672e736869656c64732e696f2f6769746875622f616374696f6e732f776f726b666c6f772f7374617475732f6b6f616c6174696170702f776562666c6f772d6170692d636c69656e742f7265616c2d6c6966652d746573742e796d6c3f7374796c653d666c61742d737175617265266c6162656c3d4c69766525323041504925323074657374266c6f676f3d776562666c6f77)](https://github.com/koalatiapp/webflow-api-client/actions/workflows/real-life-test.yml)[![Total Downloads](https://camo.githubusercontent.com/c530433d204ec1dca1543440ccf749e30ec6f80d67540fb9a6f7d3a2c10e435d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f6b6f616c6174692f776562666c6f772d6170692d636c69656e742e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/koalati/webflow-api-client)

This package provides an API client for [Webflow's REST API](https://developers.webflow.com/reference).

Work in progress
----------------

[](#work-in-progress)

This package is still in the works.

The following issues must be completed before the API client can be considered complete and ready:

- [\#1 feat: add models and module for CMS collections](https://github.com/koalatiapp/webflow-api-client/issues/1)
- [\#2 feat: add models and module for ecommerce](https://github.com/koalatiapp/webflow-api-client/issues/2)
- [\#3 feat: add models and module for sites](https://github.com/koalatiapp/webflow-api-client/issues/3)
- [\#4 feat: add models and module for membership](https://github.com/koalatiapp/webflow-api-client/issues/4)

If you would like to help, check out the [Contributing](#contributing) section below, pick an issue and submit a pull request for it!

Requirements
------------

[](#requirements)

This package requires PHP `8.1` or above.

Installation
------------

[](#installation)

To install, use composer:

```
composer require koalati/webflow-api-client

```

Getting started
---------------

[](#getting-started)

### 1. Authenticate with Webflow

[](#1-authenticate-with-webflow)

To quote [Webflow's authentication documentation](https://developers.webflow.com/docs/authentication):

> To access the API, you will need to provide an `access_token` to authenticate with Webflow. You can acquire that token in one of two ways.
>
> - Utilize OAuth to allow your application’s users to authorize your app to access their Webflow account and data. \[...\]
> - Issue a Site API Token that grants your application full access to your personal account. [Check out our guide on Site API Tokens](https://developers.webflow.com/docs/access-token).

**We recommend you opt for OAuth authentication.** To set up the OAuth flow, we suggest you use our [`koalati/oauth2-webflow`](https://github.com/koalatiapp/oauth2-webflow) package.

If you prefer to use Webflow's Site API Token instead, follow the steps on their documentation page that is linked above to get your access token. Please note that you will likely get a more limited access to the API if you chose to go with the Site API Token.

Either way, make sure keep all access tokens secure (e.g. store them in an encrypted format).

### 2. Instanciate the API client with your access token

[](#2-instanciate-the-api-client-with-your-access-token)

```
