PHP code example of jobbrander / jobs-indeed

1. Go to this page and download the library: Download jobbrander/jobs-indeed 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/ */

    

jobbrander / jobs-indeed example snippets


// Add parameters to the query via the constructor
$query = new JobApis\Jobs\Client\Queries\IndeedQuery([
    'publisher' => YOUR_PUBLISHER_ID
]);

// Add parameters via the set() method
$query->set('q', 'engineering');

// Add parameters via the set() method
$query->set('l', 'Chicago, IL')
    ->set('highlight', '1')
    ->set('latlong', '1');

// Instantiating an IndeedProvider with a query object
$client = new JobApis\Jobs\Client\Provider\IndeedProvider($query);

// Get a Collection of Jobs
$jobs = $client->getJobs();