PHPackages                             restruct/edudex-api-client - 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. [API Development](/categories/api)
4. /
5. restruct/edudex-api-client

ActiveLibrary[API Development](/categories/api)

restruct/edudex-api-client
==========================

PHP client library for the EDU-DEX Data API. Framework-agnostic with optional SilverStripe integration.

1.0.0(7mo ago)024MITPHPPHP ^8.1

Since Oct 9Pushed 7mo agoCompare

[ Source](https://github.com/restruct/edudex-api-client)[ Packagist](https://packagist.org/packages/restruct/edudex-api-client)[ Docs](https://github.com/restruct/edudex-api-client)[ RSS](/packages/restruct-edudex-api-client/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (5)Versions (6)Used By (0)

EduDex API Client
=================

[](#edudex-api-client)

[![License: MIT](https://camo.githubusercontent.com/fdf2982b9f5d7489dcf44570e714e3a15fce6253e0cc6b5aa61a075aac2ff71b/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f4c6963656e73652d4d49542d79656c6c6f772e737667)](https://opensource.org/licenses/MIT)[![PHP Version](https://camo.githubusercontent.com/acffb6ae1962992d26e4466782832787e79504a6250f80d732c4283458b9f497/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253545382e312d626c75652e737667)](https://php.net)

PHP client library for the [EDU-DEX Data API](https://api.edudex.nl/data/v1/). Framework-agnostic with optional SilverStripe integration.

Features
--------

[](#features)

- 🎯 **Complete API Coverage** - All endpoints from the EDU-DEX OpenAPI specification
- 🔌 **Framework Agnostic** - Works with any PHP 8.1+ project
- 🔧 **Optional SilverStripe Integration** - Full Config API, Extensions, and Injector support
- 🎨 **Clean Architecture** - PSR-4 autoloading, typed models, endpoint classes
- 🛡️ **Type Safe** - PHP 8.1+ with strict type hints and return types
- 📦 **Smart Models** - Automatic hydration, serialization, and type casting
- 🌍 **Localization** - Built-in `LocalizedString` helper for multi-language content
- ✅ **Validation** - Pre-submission validation for programs, metadata, and discounts
- 🔐 **Secure** - Bearer token authentication with environment variable support
- 📝 **Well Documented** - Comprehensive PHPDoc blocks and usage examples

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

[](#installation)

Install via Composer:

```
composer require restruct/edudex-api-client
```

Quick Start
-----------

[](#quick-start)

### Basic Usage (Any PHP Project)

[](#basic-usage-any-php-project)

```
