PHP code example of jobapis / jobs-adzuna

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

    

jobapis / jobs-adzuna example snippets


// Add parameters to the query via the constructor
$query = new JobApis\Jobs\Client\Queries\AdjunaQuery([
    'app_key' => YOUR_KEY,
    'app_id' => YOUR_ID,
    'country' => 'gb',
]);

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

// Add parameters via the set() method
$query->set('where', 'London, UK')
    ->set('page', '2');

// Instantiating the provider with a query object
$client = new JobApis\Jobs\Client\Providers\AdzunaProvider($query);

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