PHPackages                             slash-dw/tagging-kit - 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. slash-dw/tagging-kit

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

slash-dw/tagging-kit
====================

SlashDw shared tagging infrastructure for Laravel projects (Spatie laravel-tags based, multi-tenant + multi-locale + config-driven)

v0.0.3(1mo ago)08MITPHPPHP ^8.5CI passing

Since May 29Pushed 1w agoCompare

[ Source](https://github.com/slash-dw/tagging-kit)[ Packagist](https://packagist.org/packages/slash-dw/tagging-kit)[ RSS](/packages/slash-dw-tagging-kit/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (11)Versions (4)Used By (0)

slash-dw/tagging-kit
====================

[](#slash-dwtagging-kit)

> Generic tagging infrastructure for Laravel. Spatie laravel-tags based, multi-tenant + multi-locale + config-driven. Mixed system/user tag model.

[![CI](https://github.com/slash-dw/tagging-kit/actions/workflows/ci.yml/badge.svg)](https://github.com/slash-dw/tagging-kit/actions/workflows/ci.yml)[![Latest Version](https://camo.githubusercontent.com/2c56c606671786df344d91b2c437035a46537e71932c466f14b5daf8da8141ff/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f736c6173682d64772f74616767696e672d6b69742e737667)](https://packagist.org/packages/slash-dw/tagging-kit)[![License](https://camo.githubusercontent.com/b142edf9ed206a690d90a459ed7a735e178daf265ee60c0cfdb27ed6bd5cb2a1/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f6c2f736c6173682d64772f74616767696e672d6b69742e737667)](LICENSE)

Status
------

[](#status)

🚧 **Active development — `v0.0.x`**. Public API may change between minor versions. SemVer applies from `v0.1.0`.

This is a **monorepo**: the PHP backend lives at the root (Packagist: `slash-dw/tagging-kit`) and the React frontend in [`js/`](js/) (npm: `@slash-dw/tagging-ui`). See [Frontend](#frontend--slash-dwtagging-ui) below.

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

[](#installation)

```
composer require slash-dw/tagging-kit
```

Publish config (optional — defaults work out of the box):

```
php artisan vendor:publish --tag="tagging-kit-config"
```

Documentation
-------------

[](#documentation)

Detailed documentation is in progress. For now, see:

- [`config/tagging-kit.php`](config/tagging-kit.php) — all configuration options with inline comments
- [`src/Contracts/`](src/Contracts/) — public API interfaces (`TagTypeContract`, `ActorContextContract`, `TenantContextContract`, `SharedTypesResolverContract`)

Full README will be published with `v0.1.0` (Faz 6).

Frontend — @slash-dw/tagging-ui
-------------------------------

[](#frontend--slash-dwtagging-ui)

React/TypeScript companion in [`js/`](js/), published to npm as `@slash-dw/tagging-ui`. Headless `` + hooks (debounce, Fuse.js local-first, LRU cache, AbortController). Styling is host-owned via `data-tagging-*` attributes + `className`.

### Install

[](#install)

```
npm install @slash-dw/tagging-ui
npm install react @tanstack/react-query   # peer deps
```

### Bootstrap (once, at app entry)

[](#bootstrap-once-at-app-entry)

```
import { configureTaggingUi, useTaggingBootstrap } from '@slash-dw/tagging-ui';

// Optional host overrides (win over backend /tagging/config defaults).
configureTaggingUi({
  baseUrl: '/api',                  // → {base}/tagging/{suggest,config,tags/:id}
  fetch: myCsrfAwareFetch,          // optional auth-aware fetch wrapper
  i18n: { placeholder: 'Etiket ekle…' },
  hooks: { onUserTagDeleted: (t) => analytics.track('tag_deleted', t) },
});

function TaggingBootstrap() {
  useTaggingBootstrap();            // GET /api/tagging/config → internal store
  return null;
}
```

### Use the component

[](#use-the-component)

```
import { TagAutocomplete, type Tag } from '@slash-dw/tagging-ui';

function Form() {
  const [tags, setTags] = useState([]);
  return ;
}
```

### Public API

[](#public-api)

KindExportsComponents`TagAutocomplete`, `TagChip`, `TagSuggestionItem`Hooks`useTagAutocomplete`, `useTaggingBootstrap`, `useDeleteUserTag`Config`configureTaggingUi`, `getTaggingConfig`Low-level API`suggestTags`, `deleteUserTag`, `fetchTaggingConfig`Types`Tag`, `TagAutocompleteProps`, `TaggingConfig`, `TaggingDefaults`, …**Config precedence** (low → high): hardcoded → backend `/tagging/config` → `configureTaggingUi` → per-component prop.

### Develop the frontend

[](#develop-the-frontend)

```
cd js
npm install
npm run ci        # typecheck + vitest + vite build (ESM + CJS + d.ts)
```

Development (backend)
---------------------

[](#development-backend)

```
composer install
composer ci   # runs lint + analyse + test
```

Individual scripts:

- `composer format` — Pint auto-format
- `composer lint` — Pint check (no fix)
- `composer analyse` — PHPStan level 8 (no baseline)
- `composer test` — PHPUnit feature + unit + contract tests

License
-------

[](#license)

MIT. See [LICENSE](LICENSE).

Related packages
----------------

[](#related-packages)

Part of the SlashDw kit ecosystem:

- [`slash-dw/core-kit`](https://github.com/slash-dw/core-kit) — Repository + API response helpers
- [`slash-dw/error-kit`](https://github.com/slash-dw/error-kit) — Exception handling
- [`slash-dw/filter-kit`](https://github.com/slash-dw/filter-kit) — Eloquent filter/sort DSL
- [`slash-dw/idempotency-kit`](https://github.com/slash-dw/idempotency-kit) — Per-route idempotency middleware
- **`slash-dw/tagging-kit`** — This package (PHP backend)
- **`@slash-dw/tagging-ui`** — React frontend companion (NPM)

###  Health Score

39

—

LowBetter than 84% of packages

Maintenance94

Actively maintained with recent releases

Popularity5

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity43

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

Total

3

Last Release

56d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/0541792c880c46a9d5eee49504ad45c4191d4a1c89c111a959d71268c83b61f8?d=identicon)[slash-dw](/maintainers/slash-dw)

---

Top Contributors

[![slash-dw](https://avatars.githubusercontent.com/u/279771030?v=4)](https://github.com/slash-dw "slash-dw (2 commits)")

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StyleLaravel Pint

### Embed Badge

![Health badge](/badges/slash-dw-tagging-kit/health.svg)

```
[![Health](https://phpackages.com/badges/slash-dw-tagging-kit/health.svg)](https://phpackages.com/packages/slash-dw-tagging-kit)
```

###  Alternatives

[psalm/plugin-laravel

Psalm plugin for Laravel

3345.3M347](/packages/psalm-plugin-laravel)[api-platform/laravel

API Platform support for Laravel

58174.6k17](/packages/api-platform-laravel)[pressbooks/pressbooks

Pressbooks is an open source book publishing tool built on a WordPress multisite platform. Pressbooks outputs books in multiple formats, including PDF, EPUB, web, and a variety of XML flavours, using a theming/templating system, driven by CSS.

45444.2k1](/packages/pressbooks-pressbooks)[aedart/athenaeum

Athenaeum is a mono repository; a collection of various PHP packages

255.2k](/packages/aedart-athenaeum)[spatie/laravel-export

Create a static site bundle from a Laravel app

674146.0k6](/packages/spatie-laravel-export)[simplestats-io/laravel-client

Server-side analytics for Laravel that follows the full funnel from visit to registration to payment, attributed to the channel that drove it. Revenue, MRR, churn and ad-spend profit (ROAS/CAC) per channel. GDPR compliant, ad-blocker proof.

5022.6k](/packages/simplestats-io-laravel-client)

PHPackages © 2026

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