wpstarter/c-sushi
Use Eloquent models backed by in-memory arrays instead of a database. Add the Sushi trait and a $rows dataset, then query, relate, eager load, and even validate with exists rules—great for fixture data like states, roles, and settings.
c-sushi) designed for WpStarter (a WordPress starter theme/framework). Laravel and WordPress operate on fundamentally different architectures (MVC vs. template-driven, dependency injection vs. hooks/actions), creating potential integration friction if not abstracted properly.c-sushi relies on Laravel’s service container, Eloquent, Blade, or other core features, it may require significant adaptation to work within WordPress’s ecosystem (e.g., replacing Laravel’s DI with WordPress’s WP_Hooks or Services_Registry).Illuminate\Container) will cause autoload failures.laravel-wordpress-polyfill) or conditional loading (e.g., if (class_exists('Illuminate\Container'))) may be needed.Illuminate, Laravel, etc., while WordPress uses WP_, Automattic, etc. Namespace clashes are likely if the package isn’t namespaced carefully.wpdb) are preferred.What is the core functionality of c-sushi?
How tightly coupled is it to Laravel?
Illuminate\* classes?What is the migration path for WordPress integration?
spatie/laravel-wordpress for Laravel-WP interop)?Who maintains this package?
What are the performance implications?
c-sushi is a standalone PHP utility (e.g., a collection of helper classes for theme development), it can be seamlessly integrated into WordPress via Composer.
ThemeHelper class for WpStarter that doesn’t depend on Laravel.wpstarter_active() checks).WP_Hooks instead of events, wpdb instead of Eloquent).composer why-not <laravel-class>).add_action() instead of Laravel events).WP_Dependency_Injector).c-sushi only when WpStarter is active.composer require in the plugin’s composer.json.composer.json with replace or conflict rules to avoid Laravel conflicts."require": {
"wpstarter/c-sushi": "^1.0"
},
"replace": {
"illuminate/support": "wordpress/wp-illuminate-polyfill"
}
composer dump-autoload --optimize).laravel-wordpress).c-sushi in isolation.sensiolabs/security-checker).APP_ENV) will require deep PHP knowledge.c-sushi only when needed (e.g., on specific admin pages).Illuminate\Foundation\Application) could increase PHP memory limits.opcache and optimized autoloading.app() singleton).| Failure Scenario | Impact | Mitigation |
|---|---|---|
| Laravel dependency missing | Autoload errors, white screen | Polyfills, conditional loading |
| Namespace collisions | Plugin/theme conflicts | Unique prefixes, |
How can I help you explore Laravel packages today?