Skip to content

Bender is inspired by the Laravel's factories, it is meant to be a quick and clean way to create to persist and your Doctrine entities. It relies heavily on reflection class providing a fluent api.

License

Notifications You must be signed in to change notification settings

PanosCodes/Bnder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

40 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status

🤖 Bnder


Bnder is inspired by the Laravel factories, it is meant to be a quick and clean way to create and persist and your Doctrine entities. It relies heavily on reflection class providing a fluent api.

Installation

composer require bnder/bnder

Example

$properties = [
    'user' => new User(),
    'email' => '[email protected]',
];

Bnder::registerFactory(Factory::create(SampleEntity::class, $properties));

// This will create an array of 3 
$entities = Bnder::load(SampleEntity::class)->create(['email' => '[email protected]'], 3);

About

Bender is inspired by the Laravel's factories, it is meant to be a quick and clean way to create to persist and your Doctrine entities. It relies heavily on reflection class providing a fluent api.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages