{"id":17226833,"url":"https://github.com/dantleech/spryker-fixtures","last_synced_at":"2026-06-27T23:31:09.058Z","repository":{"id":66290777,"uuid":"103902415","full_name":"dantleech/spryker-fixtures","owner":"dantleech","description":"Spryker Fixtures Loader","archived":false,"fork":false,"pushed_at":"2017-12-05T08:23:40.000Z","size":22,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-25T17:51:02.053Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dantleech.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-09-18T06:41:16.000Z","updated_at":"2020-12-06T19:23:54.000Z","dependencies_parsed_at":"2023-02-21T21:00:26.253Z","dependency_job_id":null,"html_url":"https://github.com/dantleech/spryker-fixtures","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/dantleech/spryker-fixtures","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fspryker-fixtures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fspryker-fixtures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fspryker-fixtures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fspryker-fixtures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dantleech","download_url":"https://codeload.github.com/dantleech/spryker-fixtures/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dantleech%2Fspryker-fixtures/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":34872279,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-06-27T02:00:06.362Z","response_time":126,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-15T04:17:21.574Z","updated_at":"2026-06-27T23:31:09.041Z","avatar_url":"https://github.com/dantleech.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"Spryker Fixture Loader\n======================\n\nFixtures for Spryker\n\n## Fixtures\n\n```yaml\nOrm\\Zed\\Customer\\Persistence\\SpyCustomer:\n    customer_1:\n        email: customer_1@example.com\n        customerReference: \"customer_1\"\n\nOrm\\Zed\\Product\\Persistence\\SpyProductAbstract:\n    product_1:\n        sku: 1234-1234-1234\n        attributes: \"{}\"\n```\n\nReferences can be specified with `@`:\n\n```yaml\nAcme\\Address:\n    address_1:\n        name: One\nAcme\\Person:\n    person_1:\n        address: @address_1\n```\n\nIf a scalar value is required from a reference, a property can be specified\nafter `:`:\n\n```yaml\nAcme\\Address:\n    address_1:\n        name: One\nAcme\\Person:\n    person_1:\n        address_id: @address_1:idAddress\n```\n\nFixtures can be included relative to the current fixture file:\n\n```\n_include:\n    - \"common/lookuptables.yml\"\n\nFixtureOne:\n    fixture_one:\n        # ...\n```\n\nIncluded fixtures will be included before loading the rest of the file.\n\n### Special Types\n\nSpecial cases can be handled by using an array synxtax, currently only\nconstants are supported:\n\n```\n_include:\n    - \"common/lookuptables.yml\"\n\nFixtureOne:\n    fixture_one:\n        state_machine_name:\n            type: constant\n            constant: \"Acme\\\\StateMachine::NAME\"\n```\n\n### Installation\n\n```diff\n+++ b/src/Pyz/Zed/Console/ConsoleDependencyProvider.php\n@@ -63,6 +63,7 @@ use Spryker\\Zed\\Transfer\\Communication\\Console\\ValidatorConsole;\n use Spryker\\Zed\\Twig\\Communication\\Console\\CacheWarmerConsole;\n use Spryker\\Zed\\ZedNavigation\\Communication\\Console\\BuildNavigationConsole;\n use Stecman\\Component\\Symfony\\Console\\BashCompletion\\CompletionCommand;\n+use DTL\\Spryker\\Fixtures\\Console\\FixtureConsole;\n\n /**\n  * @SuppressWarnings(PHPMD.ExcessiveMethodLength)\n@@ -146,6 +147,7 @@ class ConsoleDependencyProvider extends SprykerConsoleDependencyProvider\n         $commands = array_merge($commands, $propelCommands);\n\n         if (Environment::isDevelopment() || Environment::isTesting()) {\n+            $commands[] = new FixtureConsole();\n```\n\n### Loading\n\n```bash\n$ ./vendor/bin/console inviqa:fixture:load path/to/fixtures.yml\n```\n\n### ID resolution\n\nThe console returns a JSON list of fixture names =\u003e ids, use `--no-progress-\nto supress (most) other output:\n\n```bash\n$ ./vendor/bin/console inviqa:fixture:load tests/test.yml --no-progress\nStore: DE | Environment: devtest\n{\"customer_1\":56,\"product_1\":101}\n```\n\nThis is useful when you have to load the fixtures from a remote process (e.g.\nan Yves context) and have no access to the database.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantleech%2Fspryker-fixtures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdantleech%2Fspryker-fixtures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdantleech%2Fspryker-fixtures/lists"}