Search by

apie / dataset

pjordaan

Composer package of the apie library: dataset

dev-main 2026-10-01 07:05 UTC

This package is auto-updated.

Last update: 2026-10-03 16:04:21 UTC


README

dataset

Latest Stable Version Total Downloads Latest Unstable Version License PHP Composer

PHP Composer

This package is part of the Apie library. The code is maintained in a monorepo, so PR's need to be sent to the monorepo

Documentation

Dataset is a self-contained test/fixture entity (Apie\Dataset\Dataset, identified by Apie\Dataset\DatasetIdentifier) used internally by the Apie test suite. Constructing it via Dataset::createRandom() spins up a temporary SQLite file (apie/core's SqliteFile) and a full Apie\DoctrineEntityDatalayer\DoctrineEntityDatalayer (built with apie/doctrine-entity-datalayer and apie/doctrine-entity-converter) for a single, throwaway bounded context containing the Apie\Dataset\DummyApp\Resources\DummyUser fixture entity.

Standalone usage

Install it with:

composer require apie/dataset

This package is not intended to be depended on by application code; it exists so other Apie packages and tests can exercise the complete entity/datalayer/indexing stack against a real (temporary) database without needing to configure Doctrine or a persistent bounded context themselves:

<?php
use Apie\Dataset\Dataset;

$dataset = Dataset::createRandom();
$datalayer = $dataset->toDatalayer();
// $datalayer is a fully working DoctrineEntityDatalayer backed by a temporary SQLite file