{"id":46286014,"url":"https://github.com/eticeo/moodle-tool_customfields_exportimport","last_synced_at":"2026-03-04T07:01:41.788Z","repository":{"id":296886424,"uuid":"994857657","full_name":"Eticeo/moodle-tool_customfields_exportimport","owner":"Eticeo","description":"Export and import the structure of user profile fields and custom fields (course, cohort) in JSON format. Includes CLI support.","archived":false,"fork":false,"pushed_at":"2025-11-24T10:59:35.000Z","size":69,"stargazers_count":0,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-11-27T23:14:13.030Z","etag":null,"topics":["cli-tool","import-export","moodle-plugin","profile-fields"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Eticeo.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null}},"created_at":"2025-06-02T15:31:46.000Z","updated_at":"2025-11-24T10:59:03.000Z","dependencies_parsed_at":"2025-06-03T05:13:44.589Z","dependency_job_id":"6cb47587-6dca-4fd9-89ed-1cde91c7433c","html_url":"https://github.com/Eticeo/moodle-tool_customfields_exportimport","commit_stats":null,"previous_names":["eticeo/moodle-tool_customfields_exportimport"],"tags_count":3,"template":false,"template_full_name":null,"purl":"pkg:github/Eticeo/moodle-tool_customfields_exportimport","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eticeo%2Fmoodle-tool_customfields_exportimport","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eticeo%2Fmoodle-tool_customfields_exportimport/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eticeo%2Fmoodle-tool_customfields_exportimport/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eticeo%2Fmoodle-tool_customfields_exportimport/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Eticeo","download_url":"https://codeload.github.com/Eticeo/moodle-tool_customfields_exportimport/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Eticeo%2Fmoodle-tool_customfields_exportimport/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":30075425,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-03-04T05:31:57.858Z","status":"ssl_error","status_checked_at":"2026-03-04T05:31:38.462Z","response_time":59,"last_error":"SSL_connect returned=1 errno=0 peeraddr=140.82.121.5:443 state=error: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"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":["cli-tool","import-export","moodle-plugin","profile-fields"],"created_at":"2026-03-04T07:01:41.206Z","updated_at":"2026-03-04T07:01:41.787Z","avatar_url":"https://github.com/Eticeo.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# moodle–tool_customfields_exportimport\n\nThis Moodle admin tool allows administrators to **export and import the structure** of custom fields in JSON format for the following components:\n\n- **User profile fields**\n- **Course custom fields**\n- **Cohort custom fields**\n\nThe tool is available through both a **command-line interface (CLI)** and a **simple web interface**.\n\n---\n\n## Features\n\n- Export user, course, or cohort custom fields to JSON\n- Import fields from a previously exported JSON file\n- CLI commands for automation and scripting\n- Basic web interface for manual operations\n- Multilingual support (English and French)\n\n---\n\n## Important Notes\n\n⚠️ This tool exports and imports **only the field structure** (categories and fields), not the data associated with these fields.\n\n---\n\n## How it works\n\n### Exporting custom fields\n\nYou can export custom fields by type (`profile`, `course`, `cohort`) and by category.\n\n**Command examples**:\n\nExport all fields from category 1 in user profile fields:\n\n```bash\nphp export.php --type=profile --categoryid=1\n```\n\nExport a specific field (ID 4) from course custom fields:\n\n```bash\nphp export.php --type=course --categoryid=2 --fieldid=4 --destination=/path/to/save\n```\n\nExport all cohort fields from category 3:\n\n```bash\nphp export.php -t=cohort -c=3\n```\n\nThe file is saved as `export_{type}_category{ID}.json` in the destination folder (current folder by default)\n\n### Importing custom fields\n\nYou can import a previously exported JSON file:\n\n```bash\nphp import.php --file=/path/to/export_profile_category1.json\n```\n\nThe plugin will validate the type and insert/update the category and fields accordingly.\n\n---\n\n## Web Interface\n\nYou can use a basic page in the admin tool interface at:\n\n```\n/admin/tool/customfields_exportimport/index.php\n```\n\nIt lets you:\n\n- Upload a JSON file for import\n- See confirmation or error messages after processing\n\n---\n\n## Installation\n\n### Via ZIP\n\n- Log in as admin\n- Go to *Site administration \u003e Plugins \u003e Install plugins*\n- Upload the ZIP of this plugin\n- Complete installation steps\n\n### Manual installation\n\n- Unzip in:\n\n```\n/admin/tool/customfields_exportimport/\n```\n\n- Visit *Site administration \u003e Notifications* to complete installation\n\nOr use CLI:\n\n```bash\nphp admin/cli/upgrade.php\n```\n\n---\n\n## License\n\nGNU GPL v3 or later \n\nDeveloped by Serge Touvoli\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feticeo%2Fmoodle-tool_customfields_exportimport","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feticeo%2Fmoodle-tool_customfields_exportimport","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feticeo%2Fmoodle-tool_customfields_exportimport/lists"}