Github Jobs now available in Jobs Common v2

2016-09-07

The Github Jobs API provider has hit a version 1.0 release, which is now compatible with Jobs Common v2.

If you’re not sure what that means, basically it just means you can access jobs from Github’s job board as described below.

1. Install the package via Composer

composer require jobapis/jobs-github

2. Create a query object with all API parameters

1
2
3
4
5
$query = new JobApis\Jobs\Client\Queries\GithubQuery([
'search' => 'engineering',
'location' => 'chicago',
'page' => '1',
]);

3. Inject the query object and get jobs

1
2
$client = new JobApis\Jobs\Client\Provider\GithubProvider($query);
$jobs = $client->getJobs();

This will return a Collection of Job objects.

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