keven/jobijoba-client

Simple API client for JobiJoba API

1.0.1 2024-10-07 20:03 UTC

This package is auto-updated.

Last update: 2025-03-10 21:50:19 UTC


README

Installation

$ composer install keven/jobijoba-client

You can view the client working locally by running the following command line with your own API credentials from the root of the package:

$ JOBIJOBA_CLIENT_ID=xxx JOBIJOBA_CLIENT_SECRET=xxx php -S localhost:8080 ./demo

Then go to http://localhost:8080 in your browser.

Usage

<?php

use Keven\JobiJoba\ApiClient;

$jobijoba = new ApiClient($clientId, $clientSecret);
$page = $jobijoba->search("chauffeur", "Amiens");
foreach ($page->jobs as $job) {
    echo $job->title;
    
    // Available properties:
    //    "id": "",
    //    "link": "",
    //    "title": "",
    //    "description": "",
    //    "publicationDate": "",
    //    "coordinates": "",
    //    "city": "",
    //    "postalCode": "",
    //    "department": "",
    //    "region": "",
    //    "sector": "",
    //    "jobtitle": "",
    //    "company": "",
    //    "contractType": [],
    //    "salary": ""
 }

That's it.