API Reference
This section provides detailed API documentation for the Oxygen Ergani package.
Package Structure
OxygenSuite\OxygenErgani
├── Ergani # Main facade class
├── Enums/ # Enum definitions
├── Exceptions/ # Exception classes
├── Http/
│ ├── Client # Base HTTP client
│ ├── Documents/ # Document submission classes
│ │ ├── WorkCard/ # Work card submissions
│ │ ├── WorkTime/ # Work time declarations
│ │ ├── Hiring/ # E3 hiring forms
│ │ ├── Termination/ # E5/E7 termination forms
│ │ ├── Dismissal/ # E6 dismissal forms
│ │ ├── Modification/ # MA modification forms
│ │ ├── Construction/ # E12 construction forms
│ │ ├── SixthDay/ # Sixth day declarations
│ │ ├── PreAnnouncement/ # Pre-announcement exemptions
│ │ └── Internship/ # E3.5 internship forms
│ └── Services/ # Query services
├── Models/ # Data models
├── Responses/ # Response wrappers
└── Storage/ # Token managementCore Classes
Ergani Facade
The Ergani class provides a simplified interface for common operations.
php
use OxygenSuite\OxygenErgani\Ergani;
use OxygenSuite\OxygenErgani\Enums\Environment;
$ergani = new Ergani($accessToken, Environment::PRODUCTION);See Ergani Facade for full documentation.
Documents
Documents handle submissions to the ERGANI API:
| Class | Action | Description |
|---|---|---|
WorkCard | - | Employee check-ins/check-outs |
DailyWorkTime | WTODaily | Daily work time declarations |
WeeklyWorkTime | WTOWeek | Weekly work time declarations |
Overtime | OVT | Overtime declarations |
Hiring Documents (E3)
| Class | Action | Description |
|---|---|---|
HiringNew | WebE3N | New employee hiring |
HiringModification | WebE3M | Transfer from another company |
HiringDeletion | WebE3D | Employee lending FROM employer |
HiringWithLending | WebE3PD | Hiring TO indirect employer |
Termination Documents (E5)
| Class | Action | Description |
|---|---|---|
VoluntaryResignation | WebE5N | Standard resignation |
ResignationNotification | WebE5O | Notification of possible resignation |
ResignationAfterNotification | WebE5AO | Confirmed resignation after E5O |
TerminationByDeath | WebE5D | Termination due to death |
VoluntaryExitCompensation | WebE5E | Voluntary exit with severance |
RetirementVoluntary | WebE5S | Voluntary retirement |
RetirementMandatory | WebE5DS | Mandatory retirement |
Dismissal Documents (E6)
| Class | Action | Description |
|---|---|---|
DismissalWithoutNotice | WebE6NXP | Immediate dismissal |
DismissalWithNotice | WebE6NMP | Dismissal with notice |
RetirementDismissal | WebE6SXP | Retirement dismissal |
EndOfLoan | WebE6LD | End of loan arrangement |
TrialPeriodTermination | WebE6LT | Trial period termination |
Transfer | WebE6M | Employee transfer |
Fixed-Term Documents (E7)
| Class | Action | Description |
|---|---|---|
FixedTermTermination | WebE7N | Fixed-term contract termination |
Modification Documents (MA)
| Class | Action | Description |
|---|---|---|
EmploymentModification | WebMA | Modify regular employee |
BorrowedEmploymentModification | WebMAD | Modify borrowed employee |
Construction Documents (E12)
| Class | Action | Description |
|---|---|---|
ConstructionWorkDeclaration | E12 | Construction work personnel declaration |
ConstructionWorkCensus | E12Apogr | Construction work census |
Other Documents
| Class | Action | Description |
|---|---|---|
SixthDay | SixthDay | Sixth day / extra shift declaration |
PreAnnouncementExemption | ExProan | Pre-announcement exemption |
Internship | 57 | E3.5 internship declaration |
Services
Services query ERGANI data:
| Class | Code | Description |
|---|---|---|
EmployerInfo | EX_BASE_01 | Employer details |
BranchInfo | EX_BASE_02 | Branch details |
ParameterLookup | EX_BASE_03 | Parameter lists |
MonthlyStatus | EX_BASE_04 | Monthly employee status |
WorkforceStatus | EX_BASE_05 | Workforce status |
AcceptanceStatus | EX_BASE_06 | Acceptance status |
API Reference Pages
- Ergani Facade - Main facade class methods
- Enums - Enumeration classes with values
- Responses - Response wrapper classes
- Exceptions - Exception classes