PHP code example of family-office / fixtures-library
1. Go to this page and download the library: Download family-office/fixtures-library 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/ */
family-office / fixtures-library example snippets
namespace FamilyOffice\FixturesLibrary\Example\Basic\Fixtures;
use FamilyOffice\FixturesLibrary\FixtureInterface;
final class EarFixture implements FixtureInterface
{
public function getDependencies(): array
{
return [];
}
public function load(): void
{
// todo: implement data loading
}
}
namespace FamilyOffice\FixturesLibrary\Example\Basic\Fixtures;
use FamilyOffice\FixturesLibrary\FixtureInterface;
final class ElephantFixture implements FixtureInterface
{
public function getDependencies(): array
{
return [EarFixture::class];
}
public function load(): void
{
// todo: implement data loading
}
}