Weave 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

Testing Laravel Package

spiral/testing

Spiral Testing SDK provides a TestCase and custom TestApp implementation for testing Spiral Framework applications and packages. Configure bootloaders and root directory to run tests without building extra app classes. Requires PHP 8.1+ and Spiral 3.15+.

View on GitHub
Deep Wiki
Context7

Product Decisions This Supports

  • Test strategy for Spiral-based PHP services/packages: Decide whether to standardize on a Spiral-native testing harness instead of maintaining custom TestCase scaffolding, bootloader setup, and fake HTTP/event helpers.
  • Build vs. buy for internal test tooling: Adopting an MIT-licensed SDK can replace bespoke test utilities for package-level testing, HTTP fakes, event assertions, config assertions, console/scaffolder assertions, and scoped middleware tests.
  • Package extraction and reuse roadmap: If the team is splitting a Spiral application into reusable packages/modules, this SDK directly supports testing packages without bootstrapping a full application.
  • Quality gates for framework upgrades: Integration-style tests around bootloaders, dispatchers, middleware, HTTP responses, events, and console commands can reduce risk when upgrading Spiral Framework or PHPUnit.
  • Release readiness for Spiral modules: Product and engineering can use the SDK to validate that package behavior—routing, config, events, commands—works as expected before publishing or deploying.
  • Not a customer-facing feature decision: This is developer productivity and release-risk infrastructure, not a product differentiator. It should be evaluated as an engineering enablement dependency.

When to Consider This Package

Consider it when:

  • The product/team is building on Spiral Framework 3.15+ with PHP 8.1+.
  • You maintain Spiral packages, modules, bootloaders, or shared internal libraries and need package-level tests without creating a full application for every test suite.
  • You need Spiral-specific test helpers such as fake HTTP requests, event dispatcher assertions, config fragment assertions, console/scaffolder assertions, middleware controls, or test scopes.
  • The team already uses PHPUnit and wants a low-cost, MIT-licensed dev dependency rather than building and maintaining equivalent fakes.
  • You are willing to pin versions and treat the package as tactical infrastructure due to its small ecosystem signal.

Look elsewhere when:

  • The stack is Laravel, Symfony, or another PHP framework. Despite being a PHP package, this is Spiral-specific and does not solve Laravel testing needs.
  • You need a broadly adopted, heavily supported testing ecosystem. With roughly 7 stars and 0 dependents, adoption risk is material; validate maintenance cadence and compatibility before standardizing.
  • You require commercial support, long-term support guarantees, or strict enterprise procurement approval for testing infrastructure.
  • The product does not use Spiral or does not maintain reusable Spiral packages; the value is much lower for simple application-only testing.
  • Your tests depend on stable behavior across frequent PHPUnit/Spiral upgrades and you cannot absorb pinning or migration effort.

How to Pitch It (Stakeholders)

Executive summary: This is a low-cost, MIT-licensed testing SDK for teams building on Spiral Framework. It is not a customer-facing capability, but it can reduce release risk and engineering waste by standardizing how Spiral packages and services are tested. Given its small community footprint, it should be adopted tactically—pilot it in one Spiral package or service, measure setup-time savings and regression coverage, and avoid making it a strategic platform dependency without broader validation.

Engineering summary: The SDK provides a Spiral-aware TestCase, package-friendly TestApp, bootloader configuration, fake HTTP helpers, event dispatcher assertions, config assertions, console/scaffolder assertions, and scoped test execution. It is most valuable when building reusable Spiral packages or testing framework integrations where custom fakes would otherwise be needed. Pin the version, monitor release notes, and keep usage isolated behind internal test base classes so it can be replaced if maintenance or compatibility becomes an issue.

Recommendation: Adopt only for Spiral-based teams with package/module testing needs. Do not position it for Laravel or general PHP teams. Treat it as a productivity and risk-reduction tool, not a product roadmap differentiator.

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.
htinlynn/genius-helper
maco-studios/hephaestus
elmogy/larafast
xeviant/laravel-paystack
gorilladash/laravel-website-sdk
martialbe/flysystem-oss
chondal/3312client
jeroen-g/flickr
opscale-co/nova-genbi
itsjustvita/laravel-retention
tequilarapido/trackit
gregsphotography/site-builder-filament
cabaoctavio/laravel-query-log
gregsphotography/site-builder-components
io-digital/clickatell
snowsoft/laravel-admin
oxygen/auth
relicsoftware/barakah-payment-gateway
tobya/work-with-composer
equipc/laravel-email-validator