1. Go to this page and download the library: Download yurich84/jobready-api 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/ */
yurich84 / jobready-api example snippets
use Yurich84\JobReadyApi\Entities\Courses;
...
$course_number = '99AUS999';
$courses = (new Courses)->find($course_number);
use Yurich84\JobReadyApi\Entities\Events;
use Yurich84\JobReadyApi\JobReady;
use \Carbon\Carbon;
...
$events = (new Events)
->where(Events::PARAMETER_DATE_FROM, Carbon::now()->format(JobReady::DATE_FORMAT))
->where(Events::PARAMETER_DATE_TO, Carbon::now()->addWeek()->format(JobReady::DATE_FORMAT))
->get(20);
use Yurich84\JobReadyApi\Entities\Trainers;
...
$data = (new Trainers)->create([
Trainers::FIELD_PARTY_ID => 'PAUS000000'
]);