Download the PHP package tristanward/laravel-workable without Composer
On this page you can find all versions of the php package tristanward/laravel-workable. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download tristanward/laravel-workable
More information about tristanward/laravel-workable
Files in tristanward/laravel-workable
Package laravel-workable
Short Description A Laravel wrapper for the Workable API. Easily access and cache Workable vacancies from your Workable account using the official Workable API.
License MIT
Informations about the package laravel-workable
Laravel Workable
A Laravel wrapper for the Workable API. Easily access and cache Workable vacancies from your Workable account using the official Workable API.
Installation
Install via composer:
Configuration
Laravel Workable requires your Workable account subdomain
and an access token
for your account. For help finding these details please refer to the official Workable API documentation:
https://workable.readme.io/docs/generate-an-access-token
The Workable subdomain
and access token
should be configured in the Laravel .env
file:
Cache Workable Vacancies
Workable vacancies can be cached to limit calls to the Workable API. To do this a workable_vacancies
table must first be created using the included migration:
To cache all Workable vacancies use the laravel-workable:cache
console command. This command will remove all previously cached vacancies and replace them with the current published vacancies.
This command can be used in Laravel's default scheduler, for example to cache all published Workable vacancies at 03:00 on Sundays:
Using cached Workable vacancies
Once Workable vacancies have been cached they can be used like a normal Laravel eloquent model:
Direct API Usage
Laravel Workable also provides a Laravel facade to use the Workable API wrapper if needed. These functions use the Workable API directly so you need to consider API access rate limitations.