{"id":21400324,"url":"https://github.com/oefenweb/cakephp-edexml","last_synced_at":"2025-09-10T18:38:30.191Z","repository":{"id":13026801,"uuid":"15706403","full_name":"Oefenweb/cakephp-edexml","owner":"Oefenweb","description":"An Edexml parser / validator Plugin for CakePHP","archived":false,"fork":false,"pushed_at":"2020-03-03T09:48:24.000Z","size":100,"stargazers_count":2,"open_issues_count":1,"forks_count":3,"subscribers_count":3,"default_branch":"master","last_synced_at":"2023-07-28T09:03:37.175Z","etag":null,"topics":["cakephp","cakephp2","edexml","php","plugin","user-management"],"latest_commit_sha":null,"homepage":"","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/Oefenweb.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2014-01-07T14:19:38.000Z","updated_at":"2020-03-03T09:47:47.000Z","dependencies_parsed_at":"2022-07-15T13:24:32.019Z","dependency_job_id":null,"html_url":"https://github.com/Oefenweb/cakephp-edexml","commit_stats":null,"previous_names":[],"tags_count":15,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-edexml","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-edexml/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-edexml/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Oefenweb%2Fcakephp-edexml/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Oefenweb","download_url":"https://codeload.github.com/Oefenweb/cakephp-edexml/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225917934,"owners_count":17544982,"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":["cakephp","cakephp2","edexml","php","plugin","user-management"],"created_at":"2024-11-22T15:21:05.806Z","updated_at":"2024-11-22T15:21:06.604Z","avatar_url":"https://github.com/Oefenweb.png","language":"PHP","readme":"# Edexml plugin for CakePHP\n\n[![Build Status](https://travis-ci.org/Oefenweb/cakephp-edexml.png?branch=master)](https://travis-ci.org/Oefenweb/cakephp-edexml)\n[![PHP 7 ready](http://php7ready.timesplinter.ch/Oefenweb/cakephp-edexml/badge.svg)](https://travis-ci.org/Oefenweb/cakephp-edexml)\n[![Coverage Status](https://codecov.io/gh/Oefenweb/cakephp-edexml/branch/master/graph/badge.svg)](https://codecov.io/gh/Oefenweb/cakephp-edexml)\n[![Packagist downloads](http://img.shields.io/packagist/dt/Oefenweb/cakephp-edexml.svg)](https://packagist.org/packages/oefenweb/cakephp-edexml)\n[![Code Climate](https://codeclimate.com/github/Oefenweb/cakephp-edexml/badges/gpa.svg)](https://codeclimate.com/github/Oefenweb/cakephp-edexml)\n[![Scrutinizer Code Quality](https://scrutinizer-ci.com/g/Oefenweb/cakephp-edexml/badges/quality-score.png?b=master)](https://scrutinizer-ci.com/g/Oefenweb/cakephp-edexml/?branch=master)\n\n## Requirements\n\n* CakePHP 2.9.0 or greater.\n* PHP 7.0.0 or greater.\n\n## Installation\n\nClone/Copy the files in this directory into `app/Plugin/Edexml`\n\n## Configuration\n\nEnsure the plugin is loaded in `app/Config/bootstrap.php` by calling:\n\n```\nCakePlugin::load('Edexml');\n```\n\n## Usage\n\n### Validating Edexml file upload from a controller\n\nFirst include the plugin model in your controller:\n\n```\npublic $uses = ['Edexml.Edexml'];\n```\n\nValidate Edexml file:\n\n```\n$this-\u003eEdexml-\u003esaveAll($this-\u003erequest-\u003edata, ['validate' =\u003e 'only']);\n```\n\nAnd in the corresponding view:\n\n```\necho $this-\u003eForm-\u003ecreate('Edexml.Edexml', ['type' =\u003e 'file']);\necho $this-\u003eForm-\u003einput('file', ['type' =\u003e 'file']);\necho $this-\u003eForm-\u003eend(__('Submit'));\n```\n\n### Parse Edexml file to a normalized array\n\nFirst include the plugin model in your controller:\n\n```\npublic $uses = ['Edexml.Edexml'];\n```\n\nConvert the Edexml file:\n\n```\n$filename = $this-\u003erequest-\u003edata('Edexml.file.tmp_name');\n$data = $this-\u003eEdexml-\u003eparseToArray($filename);\n$data = $this-\u003eEdexml-\u003econvert($data);\n```\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fcakephp-edexml","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foefenweb%2Fcakephp-edexml","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foefenweb%2Fcakephp-edexml/lists"}