hossammonir / pioneer
Pioneer ERP Integration
Installs: 72
Dependents: 0
Suggesters: 0
Security: 0
Stars: 0
Watchers: 1
Forks: 0
Open Issues: 0
Type:project
Requires
- php: >=8.1
- laravel/framework: ^10.0
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();