Skip to content

jobapis/jobs-simplyhired

Repository files navigation

Simplyhired Jobs Client

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads

This package provides Simplyhired Jobs API support for the JobBrander's Jobs Client.

Installation

To install, use composer:

composer require jobbrander/jobs-simplyhired

Usage

Usage is the same as Job Branders's Jobs Client, using \JobBrander\Jobs\Client\Provider\Simplyhired as the provider.

$client = new JobBrander\Jobs\Client\Provider\Simplyhired([
    'auth' => 'YOUR SIMPLYHIRED AUTHORIZATION KEY'
    'pshid' => 'YOUR SIMPLYHIRED PUBLISHER ID',
    'clip' => 'YOUR IP ADDRESS',
]);

// Search for 200 job listings for 'project manager' in Chicago, IL
$jobs = $client
    // SimplyHired API path Setters
    ->setQ()        // Query
    ->setL()        // Location
    ->setMi()       // Miles (optional)
    ->setSb()       // Sort by (optional)
    ->setWs()       // Window Size (optional)
    ->setPn()       // Page Number (optional)
    ->setSi()       // Start index (optional)
    ->setFdb()      // Date Posted (optional)
    ->setFjt()      // Job type (optional)
    ->setFsr()      // Job source (optional)
    ->setFem()      // Employer (optional)
    ->setFrl()      // Special filters (optional)
    ->setFed()      // Education requirements (optional)
    // SimplyHired API query setters
    ->setPshid()    // Publisher id (required)
    ->setAuth()     // Authentication Key (required)
    ->setSsty()     // Search style (required)
    ->setCflg()     // Configuration flag (required)
    ->setClip()     // Client IP (required)
    ->setFrag()     // Description fragment, defaults to display clip, not whole description (optional)
    // More
    ->setKeyword('project manager') //
    ->setLocation('Chicago, IL')    //
    ->setCount(200)                 //
    ->getJobs();

The getJobs method will return a Collection of Job objects.

Testing

$ ./vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details.

Credits

License

The Apache 2.0. Please see License File for more information.