apie / dataset
Composer package of the apie library: dataset
Requires
- php: >=8.4
- apie/core: dev-main
- apie/doctrine-entity-datalayer: dev-main
- symfony/cache: ^7.4
Requires (Dev)
- apie/faker: dev-main
- apie/fixtures: dev-main
- phpspec/prophecy-phpunit: ^2.5
- phpunit/phpunit: ^11.5.2
Suggests
None
Provides
None
Conflicts
None
Replaces
None
This package is auto-updated.
Last update: 2026-10-03 16:04:21 UTC
README
dataset
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