reksakarya / hc-sync
There is no license information available for the latest version (v1.12.0) of this package.
Human Capital Bootstrap
v1.12.0
2024-12-12 09:07 UTC
Requires
- php: ^8.1.0
- guzzlehttp/guzzle: ^7.2
Requires (Dev)
- php: ^8.1.0
- guzzlehttp/guzzle: ^7.2
README
Introduction
HC Sync will help you to share human capital data based on event
Requirements
At this time, Laravel Signature only support:
- Laravel ^8.x.
- PHP ^8.1.0
Installation
-
run
composer require reksakarya/hc-sync
. -
add autoload to
composer.json
...
"autoload": {
"psr-4": {
...
"HcSync\\": "vendor/reksakarya/hc-sync/src",
...
}
}
...
-
run command
composer dump-autoload
-
add provider to `config/app.php
"providers" => [
...
/*
* Package Service Providers...
*/
HcSync\ServiceProvider::class,
...
]
- To publish signature config into application, run:
$ php artisan vendor:publish
- Choose
HcSync\ServiceProvider
How to use
to sync Human Capital data, you just need to run php artisan hc:sync
. you can run command by cron every 2 minutes for daily, but if you integrate your app with HcSync in firt time, you need to run command by nohup.
List Of Event
ENTITY |
EVENT |
---|---|
Organization | organizationCreated |
Organization | organizationUpdated |
Employee | employeeCreated |
Employee | employeeUpdated |
Employee | changeOrganization |
Employee | changePosition |
Employee | updatePosition |
Employee | employeeActivated |
Employee | employeeDisabled |
Teamwork | teamworkCreated |
Teamwork | teamworkUpdated |
Teamwork | teamworkActivated |
Teamwork | teamworkDeactivated |
Teamwork | teamleaderActivated |
Teamwork | teamleaderDeactivate |
Teamwork | teammemberActivated |
Teamwork | teammemberDeactivate |