PHP code example of folivaresrios / chileanvacation

1. Go to this page and download the library: Download folivaresrios/chileanvacation library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

folivaresrios / chileanvacation example snippets


new Certificate($quotedYears, $documentDeliveryDate);

new Holiday($holidays);

new Job(string $startDate, string $endDate = null, ChileanHoliday $holiday, Document $certificate = null)

new Person(Employment $job)

new Vacation (string $requestedDate = null, int $requestedDays = 0, int $vacationDaysTaken = 0, int $progressiveDaysTaken = 0)

$this->getReturnDate(Holiday $holiday);

$this->getProportionalDays(NaturalPerson $person);

$this->getWorkedDays(NaturalPerson $person)

$this->getProgressiveVacations(NaturalPErson $person)

$this->getRemainingProgressiveVacations(NaturalPErson $person)

$this->getRemainingVacations(NaturalPErson $person)