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

Ellison Laravel Package

assertchris/ellison

Laravel package providing Ellison helpers/utilities: lightweight PHP functions and conveniences to streamline common app tasks, reduce boilerplate, and keep code consistent across projects. Designed for easy drop-in use and straightforward configuration.

View on GitHub
Deep Wiki
Context7

Simple library that helps identify complex sentences and poor word choices

Frequently asked questions about Ellison
How do I integrate assertchris/ellison into a Laravel project?
Start by requiring the package via Composer: `composer require assertchris/ellison`. Register it as a service provider in `config/app.php` or use Laravel’s native attributes for dependency injection. For example, inject the `Ellison` class into a controller or artisan command. No Eloquent or Blade integrations are included, so manual setup is required.
Does this package work with Laravel 9 or 10?
Yes, assertchris/ellison is compatible with Laravel 9 and 10, assuming your project uses PHP 8.1 or higher. The package leverages modern PHP features like native attributes and enums, which align well with these Laravel versions. Test thoroughly if using older PHP versions, as the package drops support for PHP 7.4 and below.
What kind of readability metrics does this package analyze?
The package focuses on identifying complex sentences (e.g., length, nested clauses) and suboptimal word choices (e.g., jargon, passive voice). It doesn’t provide full NLP features like sentiment analysis or entity recognition, but it excels at flagging text that may confuse readers. Think of it as a lightweight alternative to tools like Hemingway Editor for programmatic use.
Can I use this in a production environment with high traffic?
While the package is lightweight, NLP processing adds latency—typically 50–200ms per analysis, depending on text length. For high-traffic apps, consider caching results (e.g., Redis) or offloading analysis to a queue worker. Avoid real-time APIs under heavy load unless you’ve benchmarked performance with your expected input size.
Is there a way to customize the readability rules or thresholds?
The package doesn’t expose built-in configuration for thresholds, but you can extend its functionality by wrapping it in a decorator or service class. For example, create a custom service that adjusts scoring logic or adds domain-specific rules (e.g., blocking industry jargon). The core library is designed to be simple and self-contained.
Will this package work with PHP 8.0 or lower?
No, assertchris/ellison requires PHP 8.1 or higher due to its use of modern PHP features. If your project uses PHP 8.0 or lower, you’ll need to either upgrade your PHP version or isolate the package in a Docker container running PHP 8.1+. There are no plans to support older PHP versions.
How accurate are the readability scores compared to tools like Grammarly?
The package provides basic readability checks (e.g., sentence complexity, word choice) but lacks the depth of commercial tools like Grammarly. For validation, compare its output against labeled datasets (e.g., Flesch-Kincaid scores) or manual reviews. It’s best suited for lightweight, programmatic checks rather than enterprise-grade writing assistance.
Can I use this package in a non-Laravel PHP project?
Yes, the package is framework-agnostic and can be used in any PHP 8.1+ project. For Laravel-like integration, wrap it in a PSR-15 middleware or Symfony HTTP client. The lack of Laravel-specific features (e.g., service providers, Blade directives) means you’ll need to handle dependency injection manually.
Are there any alternatives to assertchris/ellison for Laravel?
For Laravel-specific solutions, consider Symfony’s `StringUtil` component for basic text processing or commercial APIs like Grammarly’s API for deeper analysis. If you need a lightweight, self-hosted option, PHP-CLI tools like `php-readability` or custom implementations using NLP libraries (e.g., PHP-ML) could be alternatives. However, none offer the same simplicity for readability-focused checks.
How do I test this package in my Laravel application?
Start by writing unit tests for the `Ellison` class using PHPUnit. Mock text inputs and validate outputs against expected readability scores. For integration tests, create artisan commands or controllers that use the package and test them in a Laravel test environment. Since the package has no Laravel-specific dependencies, focus on testing its core functionality in isolation first.
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.
hamzi/corewatch
minionfactory/raw-hydrator
hexters/coinpayment
rjcodes/rjcms
act-training/laravel-permissions-manager
alimarchal/laravel-chart-of-accounts
babenkoivan/elastic-scout-driver
mkwebdesign/filament-watchdog-v5
renatomarinho/laravel-page-speed
zedmagdy/filament-business-hours
renatovdemoura/blade-elements-ui
devgeek/beacon-admin
benjamin-rqt/data-watcher-bundle
atriumphp/atrium
sandermuller/package-boost-laravel
sandermuller/boost-skills
redaxo/core
yusufgenc/filament-api-forge
l3aro/rating-star-for-filament
leek/filament-subtenant-scope