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↓100%[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 2mo ago

READMEChangelogDependenciesVersions (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

Community5

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

1254d 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

---

Top Contributors

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

### 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

[webmozart/assert

Assertions to validate method input/output with nice error messages.

7.6k894.0M1.2k](/packages/webmozart-assert)[bensampo/laravel-enum

Simple, extensible and powerful enumeration implementation for Laravel.

2.0k15.9M104](/packages/bensampo-laravel-enum)[swaggest/json-schema

High definition PHP structures with JSON-schema based validation

48612.5M73](/packages/swaggest-json-schema)[stevebauman/purify

An HTML Purifier / Sanitizer for Laravel

5325.6M19](/packages/stevebauman-purify)[ashallendesign/laravel-config-validator

A package for validating your Laravel app's config.

217905.3k5](/packages/ashallendesign-laravel-config-validator)[crazybooot/base64-validation

Laravel validators for base64 encoded files

1341.9M8](/packages/crazybooot-base64-validation)

PHPackages © 2026

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