PHP code example of bluelightco / lever-php

1. Go to this page and download the library: Download bluelightco/lever-php 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/ */

    

bluelightco / lever-php example snippets


Lever::opportunities()
    ->, 'stages'])
    ->expand('posting')
    ->fetch();

 Lever::opportunities()
     ->addParameter('origin', 'applied')
     ->addParameter('posting_id', 'f2f01e16-27f8-4711-a728-7d49499795a0')
     ->fetch();
 
bash
composer 
 bash
php artisan vendor:publish --provider="Bluelightco\LeverPhp\Providers\LeverServiceProvider" --tag="config"
 php
Lever::opportunities()->fetch();
 php
 Lever::opportunities()->fetch();
 php
Lever::opportunities('250d8f03-738a-4bba-a671-8a3d73477145')->fetch();
 php
$application = [
                   'customQuestions' => [...],
                   'personalInformation' => [...],
                   'ipAddress' => '184.23.195.146',
                    ...
                  ];

Lever::opportunities('730e37db-93d3-4acf-b9de-7cfc397cef1d')
    ->sendConfirmationEmail()
    ->apply($application);
 php
$posting = [
             'text' => 'Infrastructure Engineer',
             'state' => 'published',
             ...
           ];

Lever::postings('730e37db-93d3-4acf-b9de-7cfc397cef1d')
    ->performAs('8d49b010-cc6a-4f40-ace5-e86061c677ed')
    ->update($posting);
 php
Lever::opportunities('250d8f03-738a-4bba-a671-8a3d73477145')->offers()->fetch();
 php
 $opportunities = Lever::opportunities()->fetch();

 foreach ($opportunities as $opportunity) {
     echo $opportunity['name];
 }