Weave Code
Code Weaver
Helps Laravel developers discover, compare, and choose open-source packages. See popularity, security, maintainers, and scores at a glance to make better decisions.
Feedback
Share your thoughts, report bugs, or suggest improvements.
Subject
Message

Php Text Analysis Laravel Package

yooper/php-text-analysis

PHP Text Analysis provides Information Retrieval and NLP tools in PHP: tokenization, normalization, stemming, frequency and n-gram analysis, document comparison, sentiment and classification, collocations (PMI), lexical diversity, corpus analysis, and summarization.

View on GitHub
Deep Wiki
Context7

Technical Evaluation

Architecture fit: The package is PHP-based and compatible with Laravel's ecosystem, but relies on global function helpers (TextAnalysis\Functions) which conflict with Laravel's dependency injection patterns. Core components (tokenizers, stemmers) are class-based but require manual instantiation, leading to potential tight coupling if not wrapped in service containers.
Integration feasibility: Composer installation is straightforward, but the stateful nature of classifiers (e.g., Naive Bayes) requires careful management of instance lifecycles in Laravel's request-response cycle. Some functions (e.g., vader()) have documented edge cases (e.g., short token inputs), which would need validation layers in Laravel middleware or controllers.
Technical risk: Low community adoption (0 dependents), minimal recent activity (last release Dec 2024—note: this date seems future-dated, but as given), and incomplete documentation (book in progress). The Vader implementation's instability in v1.4.1 suggests potential hidden bugs. No tests or CI pipelines visible in repo (Travis badge shows build status, but might be outdated).
Key questions:

  • How to persist trained classifiers (e.g., Naive Bayes) across requests without serialization overhead?
  • Is the package compatible with modern PHP versions (e.g., PHP 8.0+) required by current Laravel?
  • What is the maintenance status given the 0 dependents and future-dated release?

Integration Approach

Stack fit: Laravel's service container can

Weaver

How can I help you explore Laravel packages today?

Conversation history is not saved when not logged in.
Prompt
Add packages to context
No packages found.
davejamesmiller/laravel-breadcrumbs
artisanry/parsedown
christhompsontldr/phpsdk
enqueue/dsn
bunny/bunny
enqueue/test
enqueue/null
enqueue/amqp-tools
milesj/emojibase
bower-asset/punycode
bower-asset/inputmask
bower-asset/jquery
bower-asset/yii2-pjax
laravel/nova
spatie/laravel-mailcoach
spatie/laravel-superseeder
laravel/liferaft
nst/json-test-suite
danielmiessler/sec-lists
jackalope/jackalope-transport