Download the PHP package restruct/edudex-api-client without Composer
On this page you can find all versions of the php package restruct/edudex-api-client. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Please rate this library. Is it a good library?
Informations about the package edudex-api-client
EduDex API Client
PHP client library for the EDU-DEX Data API. Framework-agnostic with optional SilverStripe integration.
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
LocalizedStringhelper 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
Install via Composer:
Quick Start
Basic Usage (Any PHP Project)
Configuration
Usage Examples
Working with Organizations
Managing Programs
Validating Data
Bulk Operations
Error Handling
SilverStripe Integration
For SilverStripe projects, use the optional integration layer:
Configuration
Add to app/_config/edudex.yml:
Usage in SilverStripe
See docs/SILVERSTRIPE_INTEGRATION.md for complete documentation.
API Reference
Endpoints
- Organizations - Manage organizations, catalogs, and webhooks
- Suppliers - Supplier management, programs, discounts, metadata
- Accreditors - Accreditor management and accreditations
- Programs - Bulk program operations
- Validations - Validate programs, metadata, and discounts
Models
Organization- Organization with roles and accreditationsSupplier- Training providerAccreditor- Accreditation organizationAccreditation- Supplier accreditation with validityStaticCatalog- Manual program catalogDynamicCatalog- Automatic catalog with filtersWebhook- Event notification endpointProgram- Training program/courseValidationResult- Validation response
Type Helpers
LocalizedString- Multi-language content handlerValidationMessage- Validation message with severity
Exceptions
EduDexException- Base exceptionAuthenticationException- 401/403 errorsValidationException- 400 validation errorsApiException- Other HTTP errors
Documentation
- Standalone Usage Guide - Complete guide for non-SilverStripe projects
- SilverStripe Integration - SilverStripe-specific setup and usage
- Implementation Details - Technical implementation overview
- Working Examples - Ready-to-run code examples
Requirements
- PHP 8.1 or higher (PHP 7.4 version in backport branch)
- GuzzleHTTP ^7.0
- PSR-3 Logger interface
Optional:
- SilverStripe Framework ^5.0 (for SilverStripe integration)
Testing
Support
- Issues: https://github.com/restruct/edudex-api-client/issues
- EDU-DEX Data API Documentation: https://api.edudex.nl/data/v1/
- EDU-DEX Data API in Swagger: https://api.edudex.nl/data/v1/openapi/swagger-ui
- EDUDOX: https://www.edudex.nl/edudox/
- API Getting started: https://mijn.edudex.nl/api-getting-started/
License
This library is open-sourced software licensed under the MIT license.
Credits
- Michael van Schaik (Restruct.nl) - development
- Bart van Irsel (Webium) - AI consultant/guru
- Claude (Anthropic) - AI co-author and code generation
- EDU-DEX API by WebHare BV
All versions of edudex-api-client with dependencies
PHP Build Version
Package Version
The package restruct/edudex-api-client contains the following files
Loading the files please wait ...