cleentfaar/tissue
Laravel package to speed up building UI and pages with reusable “tissue” components, helper utilities, and starter structure. Aims to simplify common app scaffolding and keep views consistent across projects with minimal setup.
register()/boot() separation).AppServiceProvider).config() helpers).array → array<int, string>).create_function, call_user_func_array with variadic args).phpunit/phpunit@^9 with --strict-types in tests to catch issues early.Request facade, View composers) may break across versions.Tissue\Helper methods), increasing technical debt.Event facade) may mislead teams using newer patterns.TissueAdapter) suffice?make:test for critical paths).spatie/laravel-package-tools, nunomaduro/collision)?app/Helpers/RequestHelper.php) that could be consolidated.spatie/laravel-query-builder).Str::slug() clones, custom logging wrappers).composer require cleentfaar/tissue:dev-main (if forked) or pin to a specific commit.app/Facades/Tissue.php) to isolate version-specific code:
namespace App\Facades;
use Illuminate\Support\Facades\Facade;
class Tissue extends Facade {
protected static function getFacadeAccessor() { return 'tissue'; }
}
array_to_object() helper).Tissue\Collection vs. native Collection).config('features.tissue_enabled')) to toggle usage.app/Services/TissueAdapter) to retain benefits without coupling.| Laravel Feature | Risk Level | Mitigation |
|---|---|---|
| Service Container | High | Manually rebind interfaces in AppServiceProvider. |
| Blade Directives | Medium | Avoid or replace with custom directives. |
| Eloquent Relationships | Low | Package likely doesn’t interact deeply. |
| API Resources | High | Test with Illuminate\Http\Resources. |
| PHP 8.2+ Attributes | High | Use phpstan/extension-installer for polyfills. |
Helper::pluck() → Tissue\Collection::pluck()).Tissue\Request::validate()).Tissue\* classes may obscure root causes.App::make() vs. DI container) may cause silent failures.docs/tissue.md with:
Str methods").Tissue\Logger, extend the class in app/Services/").Tissue calls with Sentry/LogRocket to catch usage patterns.Tissue\Collection are likely wrappers around native PHP/Laravel functions.Tissue\Cache::store()) could cause race conditions in multi-server deployments.Tissue\Array::flatten() vs. native array_walk_recursive()).Tissue\Session::put() should be replaced with Laravel’s session() helper).| Scenario | Impact | Detection | Recovery |
|---|---|---|---|
| Package breaks on Laravel upgrade | High (app crashes) | CI failure on composer update |
Fork and patch or remove dependency. |
| Undocumented dependency on deprecated Laravel internals | Medium |
How can I help you explore Laravel packages today?