PHPackages                             weebly/weebly\_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. weebly/weebly\_client

ActiveLibrary[API Development](/categories/api)

weebly/weebly\_client
=====================

PHP client for Weebly Platform API

1.1.0(8y ago)95.1k4[2 issues](https://github.com/Weebly/weebly-client-php/issues)[1 PRs](https://github.com/Weebly/weebly-client-php/pulls)MITPHPPHP &gt;=5.4.0

Since May 6Pushed 8y ago22 watchersCompare

[ Source](https://github.com/Weebly/weebly-client-php)[ Packagist](https://packagist.org/packages/weebly/weebly_client)[ RSS](/packages/weebly-weebly-client/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (3)DependenciesVersions (9)Used By (0)

Weebly Client
=============

[](#weebly-client)

Weebly Client is a basic PHP class that simplifies interactions with the Weebly REST API.

You can find more details about how to get set-up with your Weebly project at .

You can find details about the various endpoints that you may access with the Weebly Client at .

Usage
-----

[](#usage)

### Instantiating the Client

[](#instantiating-the-client)

You may insantiate a new Weebly Client as such:

```
$client = new \Weebly\WeeblyClient($client_id, $client_secret, $user_id, $site_id, $access_token);
```

The only mandatory options that you must provide to the constructor are `$client_id` and `$client_secret`. You can find them both in your dev dashboard at  once you have registered a developer account with Weebly. Please store these credentials securely on your server, and do not expose them publically. The `$user_id`, `site_id` and `$access_token` are made accessible to you when a user grants your app permissions through the App OAuth flow. You do not need to provide these parameters unless you are accessing the OAuth methods. (i.e. **Store APIs**, **Site APIs**)

You can find more information about the OAuth flow at .

#### Authorizing through the OAuth Flow

[](#authorizing-through-the-oauth-flow)

The WeeblyClient provides a few helper methods to aid you through the OAuth flow. \* `getAuthorizationUrl` Returns a properly formatted authorization URL that you should respond with after our servers initiate the OAuth flow. \* `getAccessToken` Retrieves the access token once you have obtained the necessary authorization code in OAuth.

You can find about how to configure the OAuth flow and how to obtain the `$user_id`, `site_id` and `$access_token` at .

### Making API Calls

[](#making-api-calls)

We have provided simplified functions to make requests with the GET, POST, DELETE, PATCH and PUT methods.

#### Examples:

[](#examples)

Get Site Details:

```
$endpoint = '/user/sites/' . $site_id;
$response = $client->get($endpoint);
```

Mark a product as shipped:

```
$endpoint = '/user/sites/' . $site_id . '/store/orders/' . $order_id . '/shipments/' . $order_shipment_id;
$product = ['tracking_number' => '1234567810abcde']; //Modifying the tracking_number on an unshipped product will mark it as shipped as well!
$response = $client->put($endpoint, $product);
```

You can find details about the various endpoints that you may access with the Weebly Client at .

### Questions?

[](#questions)

If you have any questions or feature requests pertaining to the Weebly Client, please open up a new issue. For general API questions, please contact us at , and we'll be happy to lend a hand!

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance16

Infrequent updates — may be unmaintained

Popularity26

Limited adoption so far

Community23

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor3

3 contributors hold 50%+ of commits

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 ~360 days

Total

4

Last Release

2950d ago

Major Versions

0.1 → 1.0.02017-07-17

### Community

Maintainers

![](https://www.gravatar.com/avatar/c065c37399d317e2453cdd736a20a497a2e203bfe6c403159e92e45b72429127?d=identicon)[bryanashley](/maintainers/bryanashley)

![](https://www.gravatar.com/avatar/1b44c93f76570a3abbdc87f9c34bda2be7a4b86ea5523bdec2b726fb4099f0b2?d=identicon)[caitscarberry](/maintainers/caitscarberry)

---

Top Contributors

[![dogekeykong](https://avatars.githubusercontent.com/u/20135051?v=4)](https://github.com/dogekeykong "dogekeykong (7 commits)")[![bryanashley](https://avatars.githubusercontent.com/u/1095642?v=4)](https://github.com/bryanashley "bryanashley (5 commits)")[![mr-feek](https://avatars.githubusercontent.com/u/5747667?v=4)](https://github.com/mr-feek "mr-feek (5 commits)")[![sroussey](https://avatars.githubusercontent.com/u/127349?v=4)](https://github.com/sroussey "sroussey (3 commits)")[![M-Porter](https://avatars.githubusercontent.com/u/2313263?v=4)](https://github.com/M-Porter "M-Porter (3 commits)")[![tjsnyder](https://avatars.githubusercontent.com/u/228377?v=4)](https://github.com/tjsnyder "tjsnyder (3 commits)")[![puddi](https://avatars.githubusercontent.com/u/5195030?v=4)](https://github.com/puddi "puddi (2 commits)")[![kiastu](https://avatars.githubusercontent.com/u/7764070?v=4)](https://github.com/kiastu "kiastu (1 commits)")[![wormbytes](https://avatars.githubusercontent.com/u/931260?v=4)](https://github.com/wormbytes "wormbytes (1 commits)")[![databyss](https://avatars.githubusercontent.com/u/58189?v=4)](https://github.com/databyss "databyss (1 commits)")

---

Tags

weebly

### Embed Badge

![Health badge](/badges/weebly-weebly-client/health.svg)

```
[![Health](https://phpackages.com/badges/weebly-weebly-client/health.svg)](https://phpackages.com/packages/weebly-weebly-client)
```

###  Alternatives

[stripe/stripe-php

Stripe PHP Library

4.0k143.3M480](/packages/stripe-stripe-php)[twilio/sdk

A PHP wrapper for Twilio's API

1.6k92.9M272](/packages/twilio-sdk)[knplabs/github-api

GitHub API v3 client

2.2k15.8M187](/packages/knplabs-github-api)[facebook/php-business-sdk

PHP SDK for Facebook Business

90121.9M34](/packages/facebook-php-business-sdk)[meilisearch/meilisearch-php

PHP wrapper for the Meilisearch API

73813.7M114](/packages/meilisearch-meilisearch-php)[google/gax

Google API Core for PHP

263103.1M454](/packages/google-gax)

PHPackages © 2026

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