PHP code example of ogrre / laravel-pole-emploi

1. Go to this page and download the library: Download ogrre/laravel-pole-emploi library. Choose the download type require.

2. Extract the ZIP file and open the index.php.

3. Add this code to the index.php.
    
        
<?php
require_once('vendor/autoload.php');

/* Start to develop here. Best regards https://php-download.com/ */

    

ogrre / laravel-pole-emploi example snippets


# config/app.php

'providers' => [
    // ...
    Ogrre\PoleEmploi\PoleEmploiServiceProvider::class,
];


use Namespace\Path\PoleEmploiClient;

$client = new PoleEmploiClient(/* configuration parameters */);

use Namespace\Path\Metier;

$metier = new Metier($client);
$professionData = $metier->getProfessionInfo(/* parameters */);

use Namespace\Path\Competence;

$competence = new Competence($client);
$skillData = $competence->getSkillInfo(/* parameters */);

use Namespace\Path\PoleEmploiFacade;

$data = PoleEmploiFacade::get(/* parameters */);
shell
php artisan vendor:publish --provider="Ogrre\\PoleEmploi\\PoleEmploiServiceProvider"