Project Overview
Use the Government Jobs Provider to connect your PHP application with the Government job board API.
Installation
Use composer: composer require jobapis/jobs-govt
Usage
Create a Query object and add all the parameters you’d like via the constructor.
|
|
Or via the “set” method. All of the parameters documented in the API’s documentation can be added.
|
|
You can even chain them if you’d like.
|
|
Note: The government jobs API doesn’t support adding location as a parameter, but their keyword or lat_lon parameters can be used for this purpose.
Then inject the query object into the provider.
|
|
And call the “getJobs” method to retrieve results.
|
|
This will return a Collection of Job objects.
For more detailed usage and documentation, see this project’s readme