Download the PHP package jeffersongoncalves/laravel-topic-normalizer without Composer
On this page you can find all versions of the php package jeffersongoncalves/laravel-topic-normalizer. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download jeffersongoncalves/laravel-topic-normalizer
More information about jeffersongoncalves/laravel-topic-normalizer
Files in jeffersongoncalves/laravel-topic-normalizer
Package laravel-topic-normalizer
Short Description A tiny Laravel helper that merges raw topic/keyword lists (GitHub topics, composer.json + package.json keywords, Packagist keywords, …) into one slugged, deduplicated, length-filtered and capped list.
License MIT
Homepage https://github.com/jeffersongoncalves/laravel-topic-normalizer
Informations about the package laravel-topic-normalizer
Laravel Topic Normalizer
Merge raw topic / keyword lists from several sources — GitHub topics, composer.json + package.json keywords, Packagist keywords — into one clean list: slugged, deduplicated, length-filtered and capped.
Installation
Usage
Pass any number of lists. Non-strings are skipped; values are Str::slug()-ed, empties and out-of-range slugs dropped, duplicates removed (first occurrence wins, order preserved), and the result capped.
Per-call overrides
The config defaults can be overridden per call with named arguments (each falls back to its config value):
max_length / min_length are accepted as snake_case aliases. A max of 0 (or less) returns an empty list.
Configuration
| Key | Default | Description |
|---|---|---|
max |
20 |
Maximum number of topics returned (0 or less returns nothing). |
max_length |
50 |
Slugs longer than this are dropped as junk. |
min_length |
0 |
Slugs shorter than this are dropped as junk (0 disables the check). |
Testing
Changelog
Please see CHANGELOG for more information on what has changed recently.
Contributing
Please see CONTRIBUTING for details.
Security Vulnerabilities
Please review our security policy on how to report security vulnerabilities.
Credits
- Jefferson Gonçalves
- All Contributors
License
The MIT License (MIT). Please see License File for more information.
All versions of laravel-topic-normalizer with dependencies
illuminate/contracts Version ^11.0|^12.0|^13.0
illuminate/support Version ^11.0|^12.0|^13.0
spatie/laravel-package-tools Version ^1.14