weisl/efront-php-sdk

This is a maintained version of the efrontPRO-SDK repository.

2.0.3 2023-05-12 15:30 UTC

This package is auto-updated.

Last update: 2024-09-12 18:20:33 UTC


README

Latest Stable Version PHP Version Require License

This is an unofficial composer package of the original eFrontPRO-SDK from Epignosis. It aims to improve simplicity as well as maintaining/adding endpoints from the official documentation provided on Swaggerhub page.

Installation

This package can be installed with composer require weisl/efront-php-sdk.

Usage

use Weisl\EFrontSDK\EFrontAPI;

...

$api = new EFrontAPI("1.0", "https://your-efront-domain.com/API", "your-api-key");
$api->GetAPI('System')->GetInfo();
$api->GetAPI('CourseUser')->AddRelation($userId, $courseId);

Contributing

You can contribute to this project in every way you like. If you encounter any errors or spot missing endpoints, feel free to contact me.

Testing

In order to test the application, you need to set apiVersion, apiLocation and apiKey accordingly. See /tests/SimpleApiTest.php for an example.

Run the tests with: vendor/bin/phpunit

Documentation

The authors provided the following documentation via GitHub.

License

GNU GENERAL PUBLIC LICENSE

Supported Endpoints