berthott / laravel-hrworks
An HRWorks API Integration for Laravel
1.0.0
2024-01-18 10:33 UTC
Requires
- guzzlehttp/guzzle: ^7.8
Requires (Dev)
- orchestra/testbench: ^8.0
- phpunit/phpunit: ^10.0
This package is auto-updated.
Last update: 2025-03-11 11:18:53 UTC
README
Laravel-HRWorks
An HrWorks API Integration for Laravel.
Requirements
For a connection to HrWorks, it is necessary, to obtain an API token. More information can be found on the HRWorks API Documentation.
Installation
$ composer require berthott/laravel-hrworks
Usage
This package only provides a generic HrWorksApiService
which an be used to conveniently interact with the HrWorks API. The package will take care of authentication and will store an auth token inside the database.
Options
To change the default options use
$ php artisan vendor:publish --provider="berthott\HrWorks\HrWorksServiceProvider" --tag="config"
cache_enabled
: HrWorks will cache it's responses by default. This package disables this by default. Defaults tofalse
.auth
: Array to defineaccessKey
andsecretAccessKey
which can be obtained from within the HrWorks application. Defaults to'accessKey' => env('HRWORKS_ACCESS_KEY'), 'secretAccessKey' => env('HRWORKS_SECRET_ACCESS_KEY'),
api
: Defines the endpoints to the HrWorks Api. Default seeconfig/config.php
.
Compatibility
Tested with Laravel 10.x.
License
See License File. Copyright © 2024 Jan Bladt.