PHP library for work with PCRecruiter RESTful API
composer require drteam/pcrecruiter
// 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);
// 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.
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.
- 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.
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.