{"id":15286548,"url":"https://github.com/youwegit/pimcorefixtures","last_synced_at":"2025-04-13T03:32:39.033Z","repository":{"id":57088093,"uuid":"65541197","full_name":"YouweGit/PimcoreFixtures","owner":"YouweGit","description":"Generator objects from a template for Pimcore. This with use of faker.","archived":false,"fork":false,"pushed_at":"2019-11-27T18:21:25.000Z","size":116,"stargazers_count":7,"open_issues_count":1,"forks_count":6,"subscribers_count":10,"default_branch":"master","last_synced_at":"2025-03-26T20:49:31.521Z","etag":null,"topics":["fixtures","pimcore-bundle","yml"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/YouweGit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-08-12T09:27:32.000Z","updated_at":"2020-03-25T20:50:12.000Z","dependencies_parsed_at":"2022-08-20T15:30:22.453Z","dependency_job_id":null,"html_url":"https://github.com/YouweGit/PimcoreFixtures","commit_stats":null,"previous_names":[],"tags_count":39,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YouweGit%2FPimcoreFixtures","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YouweGit%2FPimcoreFixtures/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YouweGit%2FPimcoreFixtures/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/YouweGit%2FPimcoreFixtures/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/YouweGit","download_url":"https://codeload.github.com/YouweGit/PimcoreFixtures/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248659743,"owners_count":21141169,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["fixtures","pimcore-bundle","yml"],"created_at":"2024-09-30T15:16:23.610Z","updated_at":"2025-04-13T03:32:39.011Z","avatar_url":"https://github.com/YouweGit.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Pimcore YML fixtures\n\nBased on [Alice](https://github.com/nelmio/alice)\n\n### How to install\n\n```sh\ncomposer require youwe/pimcore-fixtures\n```\n*This plugin is only for DEV, do NOT install on a production server*\n\n### How to load fixtures\nYou must enable the bundle as followed `php bin/console pimcore:bundle:enable FixtureBundle`. To check if the bundle is installed correctly `php bin/console  pimcore:bundle:list`.\nPlace your fixtures in `/var/bundles/FixtureBundle/fixtures` named \"001_object_name.yml\", \"002_object_name.yml\" etc.\n\nExample fixture for creating a folder\n```yaml\n# 001_folders.yml\n# Object folders\nPimcore\\Model\\Object\\Folder:\n    products_folder:\n        key: products\n        path: /\n        parentId: 1\n```\nLoad them with:\n#### Console\n```sh\nphp bin/console fixture:load --with-cache\n```\nLoad individual files with --files comma separated files without yml extension:\n#### Console\n```sh\nphp bin/console fixture:load --files filename1,filename2\n```\n\n#### Backend\nGo to Extensions \\ PimcoreFixtures \\ plugin settings \\ Load fixtures\n\n### Fixtures generator (still beta)\n\n#### Backend\nGo to Extensions \\ PimcoreFixtures \\ plugin settings\n\n1. Object path: the root where to start generating fixtures\n2. Object name: Recommended would be the object class ex. product, will translate into at [PIMCORE_ROOT]/website/var/plugins/PimcoreFixtures/fixtures/000_product.yml\n3. Max level deep: Will stop at the specified level (default 1) and if greater then 1 then level will be appended to filename\n4. Click generate. The generated files should be at [PIMCORE_ROOT]/website/var/plugins/PimcoreFixtures/fixtures/*.yml\n\n#### Console\n```sh\nphp bin/console fixtures:generate\n```\n\n### Delete object/assets/documents\n\n```sh****\nphp bin/console fixtures:delete-path  -t object -p /products\n```\n\n\n### Useful links \n* [Alice documentation](https://github.com/nelmio/alice)\n* [Faker documentation](https://github.com/fzaninotto/Faker)\n* [Yml documentation](http://symfony.com/doc/current/components/yaml/yaml_format.html)\n\n\nTodo:\n* Support for following fields one fixtures:generate\n    * Object\\ClassDefinition\\Data\\Classificationstore\n    * Object\\ClassDefinition\\Data\\Fieldcollection\n    * Object\\ClassDefinition\\Data\\ObjectsMetadata\n    * Object\\ClassDefinition\\Data\\MultihrefMetadata\n    * Object\\ClassDefinition\\Data\\Objectbricks\n\n* security checks / user restrictions\n* better error handling in ext-js interface\n* live progress when loading fixtures\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyouwegit%2Fpimcorefixtures","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fyouwegit%2Fpimcorefixtures","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fyouwegit%2Fpimcorefixtures/lists"}