drteam/pcrecruiter

PHP library for work with PCRecruiter RESTful API

1.2.2.1 2017-10-29 14:36 UTC

This package is auto-updated.

Last update: 2024-10-29 04:42:04 UTC


README

PCRecruiter PHP API Logo

PCRecruiter PHP

Latest Stable Version Build Status Total Downloads License PHP 7 ready

PHP library for work with PCRecruiter RESTful API

composer require drteam/pcrecruiter

Examples

Get AccessToken for work with PCR

// Enable autoload
require_once __DIR__ . "/vendor/autoload.php";

// Create the Token object
$pcr_token = new PCRecruiter\Token();
$pcr_token->setConfig(__DIR__ . "/pcr.php");

// Get the token
$token = $pcr_token->get()['message']->SessionId;

// Return the json
header('Content-Type: application/json');
echo json_encode($token);

Get all jobs (positions) from PCR

// Enable autoload
require_once __DIR__ . "/vendor/autoload.php";

// Get the token
$pcr_token = new PCRecruiter\Token();
$pcr_token->setConfig(__DIR__ . "/pcr.php");

// Get the token
$token = $pcr_token->get()['message']->SessionId;

// Get all positions
$pcr_positions = new PCRecruiter\Positions($token);
$positions = $positions->get()['message']->Results;

// Return the json
header('Content-Type: application/json');
echo json_encode($positions);

Any other examples you can find on "examples" page.

Where to get help

If you need help with this project, you can read more about API Methods.

If you found the bug, please report about this on GitHub Issues page.

About PHP Unit Tests

  • Candidates.php
  • Companies.php
  • Client.php
  • Interviews.php
  • Placements.php
  • Positions.php
  • RollupLists.php
  • Token.php
  • Users.php

You can run tests by hands from source directory via vendor/bin/phpunit command.

Developers

What inspired and some links

Created under the influence the lack of such a project on the Internet 😄

  • PCRecruiter - This company provides a lots of services that can be useful for recruitment agencies.
  • PCRecruiter API - Official documentation about all API calls.
  • Guzzle - An extensible PHP HTTP client, what i very like.