hossammonir/pioneer

Pioneer ERP Integration

v1.0.2 2023-08-31 11:28 UTC

This package is auto-updated.

Last update: 2024-12-30 02:23:18 UTC


README

This package is a wrapper for the Pioneer ERP API.

Installation

You can install the package via composer:

composer require hossammonir/pioneer

Publish repository configurations

php artisan vendor:publish --provider="HossamMonir\Pioneer\PioneerServiceProvider"

This will publish msegat.php configurations to config/pioneer.php

Usage

Get Superior Information

use Hossammonir\Pioneer\Pioneer;

Pioneer::setNationalityNumber('xxxxxxxxxx')
->superior();

Get Superior Students

use Hossammonir\Pioneer\Pioneer;

Pioneer::setNationalityNumber('xxxxxxxxxx')
->students();

Get Superior Students Statements for each Student

use Hossammonir\Pioneer\Pioneer;

Pioneer::setNationalityNumber('xxxxxxxxxx')
->studentsStatement();

Optional Parameters

setEducationalYear($id) : set the educational year to get the statement for it

Get Superior Summarized Statement

use Hossammonir\Pioneer\Pioneer;

Pioneer::setNationalityNumber('xxxxxxxxxx')
->summarizedStatement();

Get Superior Payments

use Hossammonir\Pioneer\Pioneer;

Pioneer::setNationalityNumber('xxxxxxxxxx')
->payments();

Optional Parameters

setReceiptType($id) : set the receipt type to get the payments for it ( 0 for refunds Receipts , 1 for payments Receipts)

Get Nationalities List

use Hossammonir\Pioneer\Pioneer;

Pioneer::nationalities();

Get Educational Years List

use Hossammonir\Pioneer\Pioneer;

Pioneer::educationalYears();

Get branches List

use Hossammonir\Pioneer\Pioneer;

Pioneer::branches();