CareersInGovernment.com RSS API Client

Project Overview

Use the Jobs Common Careers in Government Provider to connect your PHP application with the job board’s RSS feed.

Installation

To install, use composer:

1
composer require jobapis/jobs-careersingov

Usage

Careers in Government provides no search parameters, just a feed of all their latest jobs via RSS.

In order to grab jobs, first create a query object:

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

Then inject the query object into the provider.

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

And call the “getJobs” method to retrieve results.

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

The getJobs method will return a Collection of Job objects.

For more detailed usage and documentation, see this project’s readme