2017 © Pedro Peláez
 

library jobs-common

Making it simple to integrate your application with job api providers.

image

jobbrander/jobs-common

Making it simple to integrate your application with job api providers.

  • Sunday, January 22, 2017
  • by stevenmaguire
  • Repository
  • 4 Watchers
  • 12 Stars
  • 1,338 Installations
  • PHP
  • 14 Dependents
  • 0 Suggesters
  • 4 Forks
  • 1 Open issues
  • 16 Versions
  • 0 % Grown

The README.md

Jobs Common

Standardizing job board API clients

Latest Version Software License Build Status Coverage Status Quality Score Total Downloads, (*1)

This package makes it makes it easy to integrate job board APIs into your application. Whether you want to aggregate job board data, or supplement your site's job listings with listings from third party providers, or anything else you can dream up, this package (and the api clients listed below) can help., (*2)

This package is compliant with PSR-1, PSR-2, PSR-4, and PSR-7. If you notice compliance oversights, please send a patch via pull request., (*3)

Requirements

The following versions of PHP are supported., (*4)

  • PHP 5.5
  • PHP 5.6
  • PHP 7.0
  • HHVM

Usage

This package is not meant to be used on its own, but rather it is used by the providers listed below to access job board APIs and gather results in a standard data format. For details on creating your own job board provider, read on!, (*5)

Providers

Each job board supported has a provider that must extend this package's AbstractProvider, and implement the declared abstract methods., (*6)

The following providers are available:, (*7)

Official providers

There are many job board services we support officially., (*8)

Gateway Composer Package Maintainer
Authentic Jobs jobapis/jobs-authenticjobs Steven Maguire
CareerBuilder jobapis/jobs-careerbuilder Karl Hughes
Careercast jobapis/jobs-careercast Karl Hughes
Dice jobapis/jobs-dice Karl Hughes
Elance jobapis/jobs-elance Steven Maguire
Github Jobs jobapis/jobs-github Steven Maguire
Govt jobapis/jobs-govt Karl Hughes
Indeed jobapis/jobs-indeed Steven Maguire
Jobs2Careers jobapis/jobs-jobs2careers Karl Hughes
Muse jobapis/jobs-muse Karl Hughes
JuJu jobapis/jobs-juju Karl Hughes
SimplyHired jobapis/jobs-simplyhired Karl Hughes
ZipRecruiter jobapis/jobs-ziprecruiter Karl Hughes

Third party providers

If you would like to support other providers, please make them available as a Composer package, then link to them below., (*9)

These providers allow integration with other providers not supported by jobs-common. They may require an older version so please help them out with a pull request if you notice this., (*10)

Gateway Composer Package Maintainer
Job Crank yourname/jobs-jobcrank You!

Build your own providers

New providers can be created by cloning the layout of an existing package. When choosing a name for your package, please don’t use the joabpis vendor prefix, as this implies that it is officially supported., (*11)

You should use your own username as the vendor prefix, and prepend jobs- to the package name to make it clear that your package works with Jobs Common. For example, if your GitHub username were prometheus, and you were implementing the Dice.com job listing API, a good name for your composer package would be prometheus/jobs-dice., (*12)

Implementing your own provider

If you are working with a job board service not supported out-of-the-box or by an existing package, it is quite simple to implement your own. Simply extend JobApis\Jobs\Client\Providers\AbstractProvider and JobApis\Jobs\Client\Queries\AbstractQuery and implement the required abstract methods in each:, (*13)


// JobApis\Jobs\Client\Providers\AbstractProvider abstract public function createJobObject($payload); abstract public function getDefaultResponseFields(); abstract public function getListingsPath(); // JobApis\Jobs\Client\Queries\AbstractQuery abstract public function getBaseUrl(); abstract public function getKeyword();

Each of these abstract methods contain a docblock defining their expectations and typical behavior. Once you have extended these classes, you can simply follow the example above using your new Provider., (*14)

Each job object that is created will automatically set source and query based on the criteria passed into the provider. If you would like to customize this source value, your provider must implement a getSource method that returns a string to identify your provider's source., (*15)

For an example of each of the concrete classes you'll need to implement, see the /tests/fixtures folder in this repository., (*16)

Make your provider official

If you want to transfer your provider to the jobapis GitHub organization and add it to the list of officially supported providers, please open a pull request on the jobapis/jobs-common package. Before new providers will be accepted, they must have 100% unit test code coverage, and follow the conventions and code style used in other Jobs Client providers., (*17)

Install

Via Composer, (*18)

``` bash $ composer require jobapis/jobs-common, (*19)


## Testing ``` bash $ ./vendor/bin/phpunit

Contributing

Please see CONTRIBUTING for details., (*20)

Credits

License

The Apache 2.0. Please see License File for more information., (*21)

The Versions

22/01 2017

dev-master

9999999-dev http://jobapis.com

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client job boards

22/01 2017

2.1.2

2.1.2.0 http://jobapis.com

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client job boards

23/12 2016

2.1.1

2.1.1.0 http://jobapis.com

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client job boards

01/12 2016

2.1.0

2.1.0.0 http://jobapis.com

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client job boards

01/11 2016

2.0.2

2.0.2.0 http://jobapis.com

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client job boards

29/10 2016

2.0.1

2.0.1.0 http://jobapis.com

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client job boards

03/09 2016

2.0.0

2.0.0.0 http://jobapis.com

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client job boards

02/09 2016

2.0.0-beta1

2.0.0.0-beta1 http://jobapis.com

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client job boards

02/09 2016

2.0.0-beta2

2.0.0.0-beta2 http://jobapis.com

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client job boards

02/09 2016

2.0.0-beta.3

2.0.0.0-beta3 http://jobapis.com

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client job boards

02/09 2016

2.0.0-beta

2.0.0.0-beta http://jobapis.com

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client job boards

28/10 2015

1.0.4

1.0.4.0 https://github.com/JobBrander/jobs-common

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client

06/08 2015

1.0.3

1.0.3.0 https://github.com/JobBrander/jobs-common

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client

27/07 2015

1.0.2

1.0.2.0 https://github.com/JobBrander/jobs-common

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client

27/07 2015

1.0.1

1.0.1.0 https://github.com/JobBrander/jobs-common

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client

07/06 2015

1.0.0

1.0.0.0 https://github.com/JobBrander/jobs-common

Making it simple to integrate your application with job api providers.

  Sources   Download

Apache-2.0

The Requires

 

The Development Requires

jobs object api client