PHPackages                             faslet/faslet - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. faslet/faslet

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

faslet/faslet
=============

The Faslet Size Me Up Widget

v0.2.1(3y ago)019.4k↓50%MITPHP

Since Feb 24Pushed 3y ago3 watchersCompare

[ Source](https://github.com/Faslet/widget_php_module)[ Packagist](https://packagist.org/packages/faslet/faslet)[ Docs](https://github.com/Faslet/widget_php_module)[ RSS](/packages/faslet-faslet/feed)WikiDiscussions main Synced 1mo ago

READMEChangelog (3)Dependencies (1)Versions (4)Used By (0)

Faslet Widget Composer Plugin
=============================

[](#faslet-widget-composer-plugin)

### Usage

[](#usage)

To use this project in your own, pull down this plugin with

```
composer require faslet/faslet
```

#### Widget (Product page)

[](#widget-product-page)

Example usage with shop id `Faslet Demo`

```
use Faslet\Widget;

// GET THIS FROM YOUR FASLET REPRESENTITIVE
$widget = new Widget("Faslet Demo");

$widget
    ->withBrand("Faslet Demo Brand")
    ->withProductId("id123")
    ->withProductImage("https://placekitten.com/100")
    ->withProductName("Jacket")
    // GET THIS FROM YOUR FASLET REPRESENTITIVE
    ->withFasletProductTag("Faslet_Jacket_Male");

$widget
    ->addColor("red", "Magnificent Red")
    ->addColor("blue", "Dashing Blue");

$widget
    ->addVariant("var_1", "S", true, "sku_1", "red", 59.99, 'https://placekitten.com')
    ->addVariant("var_2", "S", true, "sku_2", "blue", 59.99, 'https://placekitten.com')
    ->addVariant("var_3", "M", true, "sku_3", "red", 49.99, 'https://placekitten.com')
    ->addVariant("var_4", "M", false, "sku_4", "blue", 49.99, 'https://placekitten.com')
    ->addVariant("var_5", "L", false, "sku_5", "red", 59.99, 'https://placekitten.com')
    ->addVariant("var_6", "L", false, "sku_6", "blue", 59.99, 'https://placekitten.com');

$widget->withAddToCartRedirect("https://example.com/add-to-cart?variantId=%id%", "%id%");
```

and then to render the HTML

```
echo $widget->buildWidget();
```

#### Order Tracking (After checkout/Thank You page)

[](#order-tracking-after-checkoutthank-you-page)

Example usage with shop id `Faslet Demo`

```
use Faslet\OrderTracking;

// GET THIS FROM YOUR FASLET REPRESENTITIVE
$orderTracking = new OrderTracking("Faslet Demo");

$orderTracking
    ->withOrderNumber("order-123")
    ->withPaymentStatus("paid");

$orderTracking
    ->addProduct("product-1", "variant-1-1", "Jacket", "Medium/Blue", 400, 2, "sku1")
    ->addProduct("product-2", "variant-2-1", "T-Shirt", "Medium/Blue", 100, 1, "sku2");
```

and then to render the HTML

```
echo $orderTracking->buildOrderTracking();
```

### Examples

[](#examples)

To run the built in examples, the easiest way is to run the following command in the root project folder:

```
php -S localhost:5002
```

And then navigate to:

for the Widget example and

for the Order Tracking example. Note that Order tracking only sends events, which you would see in the network tab of your browser's dev-tools.

### Development

[](#development)

This project uses composer. First run install before starting development:

```
composer install
```

While developing, you may need to regenerate the autoload:

```
composer dump-autoload
```

### Testing

[](#testing)

This project uses PHP Unit for testing. To run, simply run the following command:

```
./vendor/bin/phpunit --testdox tests
```

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community8

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

Total

3

Last Release

1266d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/4238423?v=4)[David Goemans](/maintainers/dgoemans)[@dgoemans](https://github.com/dgoemans)

---

Top Contributors

[![dgoemans](https://avatars.githubusercontent.com/u/4238423?v=4)](https://github.com/dgoemans "dgoemans (17 commits)")

---

Tags

composerlaravelmagentophp

###  Code Quality

TestsPHPUnit

### Embed Badge

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

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

###  Alternatives

[ferdiunal/nova-editable-field

A Laravel Nova package to make fields editable.

104.6k](/packages/ferdiunal-nova-editable-field)

PHPackages © 2026

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