b2pweb/bdf-instantiator
b2pweb/bdf-instantiator is a small PHP utility for instantiating objects, useful in factories, DI containers, and testing. It focuses on creating class instances with minimal boilerplate, helping streamline object construction in Laravel and other PHP apps.
Adopt if:
Factory class.Look Elsewhere if:
Factory or Seeder classes).Faker or Mockaroo).For Executives: "This package cuts the time to spin up realistic test data from weeks to minutes—critical for accelerating feature development and reducing QA bottlenecks. For example, launching a new marketplace category? Instead of manually creating 100+ test products, we auto-generate them with configurable attributes (prices, images, inventory) in seconds. It’s a force multiplier for engineering velocity, especially for data-heavy products like [Product X]."
For Engineering:
*"BDF Instantiator lets us define reusable data templates (e.g., User::withRole('admin')->withPermissions(['dashboard'])) and instantiate them dynamically. It’s like Laravel’s Factory on steroids—supports nested relationships, custom validation, and even data transformations (e.g., hashing passwords). Perfect for:
How can I help you explore Laravel packages today?