1. Go to this page and download the library: Download deror/cfdams 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/ */
deror / cfdams example snippets
use Deror\Cfdams;
$api = new Cfdams([
'sToken' => "{你取得的網站TOKEN}",# '必填'
'url' => "https://ams.domain.tw" # '選填'
]);
$api->getLoginUrl();
$api->updateToken();
$api->getExpireTokenInfo();
$days = 2;
$api->isNeedUpdateToken($days);
$api->getDepartment();
$api->getEmployeesAll();
$api->getEmployeesResign();
$api->getBoss();
$api->getEmployeesIT();
$api->getEmployeesPlanning();
$api->getEmployeesPersonnel();
bash
$ php composer.phar
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.