PHPackages                             unloc/shipping-class-restrictions - 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. unloc/shipping-class-restrictions

ActiveWordpress-plugin[API Development](/categories/api)

unloc/shipping-class-restrictions
=================================

Restrict WooCommerce shipping method availability by the shipping classes in the cart, per method instance and zone.

014↑2685.7%PHP

Since Jun 1Pushed 1w agoCompare

[ Source](https://github.com/unlocnl/shipping-class-restrictions)[ Packagist](https://packagist.org/packages/unloc/shipping-class-restrictions)[ RSS](/packages/unloc-shipping-class-restrictions/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (1)Used By (0)

```
=== Shipping Class Restrictions ===
Contributors: unloc
Tags: woocommerce, shipping, shipping class, shipping zones
Requires at least: 6.5
Tested up to: 7.0
Requires PHP: 8.2
Stable tag: 1.0.0
License: GPLv2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html

Restrict WooCommerce shipping methods by the shipping classes in the cart, per method instance and zone. Works with any third-party method.

== Description ==

Adds two fields to every shipping method's settings (in the zone editor):

* Availability: a single rule choosing when the method shows, based on the classes in the cart
* Shipping classes: which classes the rule applies to (including "No shipping class")

Availability options:

* Show only if cart contains only these classes
* Show if cart contains any of these classes
* Hide if cart contains any of these classes
* Hide if cart contains only these classes

For example, a letterbox-only method can be set to "Show only if cart contains only [letterbox]", while the default parcel method is set to "Hide if cart contains only [letterbox]" — so the parcel method disappears for an all-letterbox cart but returns as soon as a parcel item is added. Because configuration is per method instance, it is inherently scoped to the shipping zone the instance belongs to.

== Changelog ==

= 1.0.0 =
* Initial release.
```

###  Health Score

23

—

LowBetter than 26% of packages

Maintenance64

Regular maintenance activity

Popularity8

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity11

Early-stage or recently created project

 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.

### Community

Maintainers

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

---

Top Contributors

[![unlocdavid](https://avatars.githubusercontent.com/u/75703724?v=4)](https://github.com/unlocdavid "unlocdavid (3 commits)")

### Embed Badge

![Health badge](/badges/unloc-shipping-class-restrictions/health.svg)

```
[![Health](https://phpackages.com/badges/unloc-shipping-class-restrictions/health.svg)](https://phpackages.com/packages/unloc-shipping-class-restrictions)
```

###  Alternatives

[facebook/php-business-sdk

PHP SDK for Facebook Business

90923.5M35](/packages/facebook-php-business-sdk)[exsyst/swagger

A php library to manipulate Swagger specifications

35916.3M7](/packages/exsyst-swagger)[hubspot/api-client

Hubspot API client

24015.5M18](/packages/hubspot-api-client)[botman/driver-telegram

Telegram driver for BotMan

93452.6k6](/packages/botman-driver-telegram)

PHPackages © 2026

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