jobbrander/jobs-simplyhired

This package is abandoned and no longer maintained. No replacement package was suggested.

Making it simple to integrate your application with SimplyHired Jobs API.

0.4.0 2015-10-16 00:46 UTC

This package is not auto-updated.

Last update: 2022-02-01 12:46:55 UTC


README

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.