PHP code example of lotos / builder
1. Go to this page and download the library: Download lotos/builder library. Choose the download type require. 2. Extract the ZIP file and open the index.php. 3. Add this code to the index.php.
<?php
require_once('vendor/autoload.php');
/* Start to develop here. Best regards https://php-download.com/ */
lotos / builder example snippets
$collection = CollectionFactory::createCollection();
$builder = BuilderFactory::createBuilder(
repository: RepositoryFactory::createRepository($collection->newInstance()),
collection: $collection
);
$entity = $builder->build(Lotos\TestClass::class);