PHP code example of jobapis / jobs-careersingov

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


// Instantiate the query object
$query = new JobApis\Jobs\Client\Queries\CareersInGovQuery();

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

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