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
Dummy Provider

Dummy Provider Laravel Package

yiisoft/dummy-provider

A small dummy provider package for Yii, useful for testing, prototyping, and demonstrating provider behavior without real integrations.

View on GitHub
Deep Wiki
Context7

yiisoft/dummy-provider is a small YiiSoft utility package that supplies a dummy provider for tests, examples, and prototyping. It helps satisfy provider dependencies without wiring real data sources, keeping setups simple and deterministic.

  • Lightweight dummy implementation of the provider contract
  • Returns predictable, predefined data for repeatable tests
  • Minimal API with no production data-access logic
  • Useful as a test double or placeholder in Yii applications
  • Intended for development and testing, not production use
Frequently asked questions about Dummy Provider
What is yiisoft/dummy-provider used for?
It is a dummy implementation provider for testing packages that require implementations. It gives you a simple placeholder provider you can wire into provider-based services and dependency injection setups. Use it to keep development and test environments lightweight until real implementations are available.
Is yiisoft/dummy-provider a Laravel package?
No, the package is part of the Yiisoft ecosystem and is described for Yii applications and tests. Laravel developers can install it with Composer, but it does not provide Laravel-specific service provider integration. In a Laravel app you would usually use Laravel's container bindings or test fakes instead.
How do I install yiisoft/dummy-provider with Composer?
Install it with Composer from your project root, typically as a development dependency because it is a dummy provider for tests. Run composer require --dev yiisoft/dummy-provider and confirm the version constraints against the repository. Check the package's README and Packagist metadata for the exact supported PHP and dependency requirements.
Can I use yiisoft/dummy-provider for dependency injection testing?
Yes, that is its primary purpose: providing placeholder implementations so you can exercise dependency injection and provider-based service wiring. It helps tests run without pulling in real services or heavy dependencies. You should replace the dummy provider with real implementations when testing production behavior.
Does yiisoft/dummy-provider work with Laravel's service container?
There is no documented Laravel service container integration in the provided context. The package is aimed at Yii-style provider setups, while Laravel uses its own service providers and bindings. You could adapt it manually, but a Laravel-native fake or container binding is usually simpler.
What are common use cases for a dummy provider?
Common uses include testing packages that expect an implementation provider, bootstrapping provider-based services before real code exists, and keeping local or CI setups lightweight. It is also useful for exercising dependency injection paths without external services. It is not meant to deliver real business behavior.
Should I use yiisoft/dummy-provider in production?
No, it is a dummy implementation provider intended for testing and lightweight development setups. Production code should wire real implementations that provide the required behavior. Treat it as a temporary or test-only dependency.
Does yiisoft/dummy-provider support Laravel 10 or Laravel 11?
The package is not described as a Laravel package, so there is no stated Laravel 10 or Laravel 11 support. Laravel version compatibility would depend on whether its dependencies can coexist with your app, which you should verify with Composer. For Laravel-specific testing, prefer Laravel's own fakes, mocks, and container bindings.
How is yiisoft/dummy-provider different from Mockery or Laravel fakes?
yiisoft/dummy-provider supplies a concrete placeholder provider for provider-based dependency injection, while Mockery and Laravel fakes create test doubles for classes and services. It is more about wiring a dummy implementation into a provider slot than asserting interactions. Choose the tool that matches your framework and testing goal.
Where can I check maintenance and PHP version requirements for yiisoft/dummy-provider?
Check the GitHub repository and Packagist page for the latest release, PHP version constraint, and dependency requirements. The provided overview does not list specific Laravel or PHP support versions. Reviewing composer.json and recent commits is the safest way to assess maintenance before adopting it.
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.
middlewares/firewall
qubiqx/montapacking
nyoncode/laravel-package-console
pnscripts/filament-broadquill-lite
pnscripts/laravel-sentfold-lite
vleap/mx-sdk-laravel-internal
twidpay/utils
htetmyathlaing/scout-elasticsearch-driver
artisan-toolbox/front-awesome
ls/client-assistant
users-au/laravel-client
cgv/localized-resource
noith/settings
kda/laravel-package
kda/filament-dynamic-navigation
bypersoft/signbox
pairus/product-data
fayne/laravel-filament-cms-core
nodisrupt/laravel-agent
sierratecnologia/media-manager