PHP code example of jobbrander / jobs-jobs2careers
1. Go to this page and download the library: Download jobbrander/jobs-jobs2careers 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/ */
// Add parameters to the query via the constructor
$query = new JobApis\Jobs\Client\Queries\J2cQuery([
'id' => YOUR_PUBLISHER_ID,
'pass' => YOUR_PUBLISHER_PASSWORD,
]);
// Add parameters via the set() method
$query->set('q', 'engineering');
// Add parameters via the set() method
$query->set('l', 'Chicago, IL')
->set('start', 10)
->set('limit', 20);
// Instantiating the Provider with a query object
$client = new JobApis\Jobs\Client\Providers\J2cProvider($query);
// Get a Collection of Jobs
$jobs = $client->getJobs();
Loading please wait ...
Before you can download the PHP files, the dependencies should be resolved. This can take some minutes. Please be patient.