drteam / pcrecruiter
PHP library for work with PCRecruiter RESTful API
1.2.2.1
2017-10-29 14:36 UTC
Requires
- php: >=5.4 || >=7.0
- ext-curl: *
- guzzlehttp/guzzle: ~6.0
Requires (Dev)
- phpunit/phpunit: ~6.0
README
PCRecruiter PHP
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.