PHPackages                             harmbandstra/edexmllib - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Validation &amp; Sanitization](/categories/validation)
4. /
5. harmbandstra/edexmllib

ActiveLibrary[Validation &amp; Sanitization](/categories/validation)

harmbandstra/edexmllib
======================

PHP Library for validating and importing Edexml files.

2.0.0(3y ago)12.6k[1 issues](https://github.com/harmbandstra/edexmllib/issues)GPL-3.0PHPPHP ^7.2 || ^8.0CI failing

Since Jun 20Pushed 3y ago1 watchersCompare

[ Source](https://github.com/harmbandstra/edexmllib)[ Packagist](https://packagist.org/packages/harmbandstra/edexmllib)[ RSS](/packages/harmbandstra-edexmllib/feed)WikiDiscussions master Synced yesterday

READMEChangelogDependencies (3)Versions (7)Used By (0)

Edexml library
==============

[](#edexml-library)

PHP Library for validating and importing [Edexml](https://www.edustandaard.nl/standaarden/afspraken/afspraak/edexml/2.0/) files.

Installation
------------

[](#installation)

Install with composer:

`$ composer require harmbandstra/edexmllib`

Usage
-----

[](#usage)

```
    $xml = file_get_contents('path_to_file');
    try {
        $edex = EdexmlFactory::load($xml);
    } catch (ValidationException $exception) {
        // Handle exception
    }

    foreach ($edex->getGroepen()->getGroep() as $groep) {
        echo $groep->getNaam();
    }

    foreach ($edex->getLeerlingen() as $leerling) {
        echo $leerling->getGebruikersnaam();
    }
```

If the Edexml file contains elements with a type defined in a non-public XSD, you can strip the block before loading the XML.

```
    $xml = file_get_contents('path_to_file');
    try {
        $edex = EdexmlFactory::load(
            EdexmlFactory::stripToevoegingen($xml)
        );
    } catch (ValidationException $exception) {
        // Handle exception
    }
```

To skip validation, set strict to `false`

```
    $xml = file_get_contents('path_to_file');
    $edex = EdexmlFactory::load($xml, false);
```

Development
===========

[](#development)

The library uses [xsd2php](https://github.com/goetas-webservices/xsd2php) for creating [JMS Serializer](http://jmsyst.com/libs/serializer) definition files. These files are used to deserialize the XML into bite-sized PHP objects.

Generate classes
----------------

[](#generate-classes)

To generate new classed and JMS Serializer configuration based on the XSD files, run:

`php vendor/bin/xsd2php convert config.yml src/Resources/xsd/*.xsd`

This is only needed when the specification changes.

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity72

Established project with proven stability

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~398 days

Recently: every ~491 days

Total

6

Last Release

1258d ago

Major Versions

0.1.1 → 1.0.02019-10-29

1.2.0 → 2.0.02022-12-01

PHP version history (2 changes)0.1PHP &gt;=7.0

2.0.0PHP ^7.2 || ^8.0

### Community

Maintainers

![](https://www.gravatar.com/avatar/0245b843d54c55af6bc127abdf6b794af7b093abef515e339e4d2a67eea643d7?d=identicon)[harmbandstra](/maintainers/harmbandstra)

---

Top Contributors

[![harmbandstra](https://avatars.githubusercontent.com/u/9076844?v=4)](https://github.com/harmbandstra "harmbandstra (10 commits)")

---

Tags

phplibraryedexml

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/harmbandstra-edexmllib/health.svg)

```
[![Health](https://phpackages.com/badges/harmbandstra-edexmllib/health.svg)](https://phpackages.com/packages/harmbandstra-edexmllib)
```

###  Alternatives

[runz0rd/mapper-php

Model mapping, unmapping and validation

17451.9k2](/packages/runz0rd-mapper-php)[eftec/validationone

It's a php library for fetch and validate fields

113.8k4](/packages/eftec-validationone)[rodrigojavornik/php-cleanup

A PHP Sanitation Library

121.6k](/packages/rodrigojavornik-php-cleanup)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
