PHPackages                             hwacom/personnel-info - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. hwacom/personnel-info

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

hwacom/personnel-info
=====================

HRepository Package

v1.2.0(8mo ago)04231MITPHPPHP ^8.3

Since Aug 25Pushed 8mo ago1 watchersCompare

[ Source](https://github.com/HwacomService/Personnel-Info)[ Packagist](https://packagist.org/packages/hwacom/personnel-info)[ RSS](/packages/hwacom-personnel-info/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (10)DependenciesVersions (16)Used By (1)

Personnel Info Package via Hwacom HRepository
=============================================

[](#personnel-info-package-via-hwacom-hrepository)

[![Total Downloads](https://camo.githubusercontent.com/d48c4853070e2d3d6f7112e68254760d5686994ce472454ba3682e3cc5dc1060/687474703a2f2f706f7365722e707567782e6f72672f687761636f6d2f506572736f6e6e656c2d496e666f2f646f776e6c6f616473)](https://packagist.org/packages/hwacom/personnel-info)[![Latest Stable Version](https://camo.githubusercontent.com/37a5c6b47349629bbfe454cdc0724ad3175df0311ac79809c740bd122f7d91bb/687474703a2f2f706f7365722e707567782e6f72672f687761636f6d2f506572736f6e6e656c2d496e666f2f76)](https://packagist.org/packages/hwacom/personnel-info)

前言
--

[](#前言)

要使用同步user，請先確定Users表格式與EIP相同。

安裝說明
----

[](#安裝說明)

```
composer require hwacom/personnel-info
```

Service Provider設定 (Laravel 5.5^ 會自動掛載)
---------------------------------------

[](#service-provider設定-laravel-55-會自動掛載)

Composer安裝完後要需要修改 `config/app.php` 找到 providers 區域並添加:

```
\Hwacom\PersonnelInfo\PersonnelInfoServiceProvider::class,
```

Config設定檔發佈
-----------

[](#config設定檔發佈)

用下列指令會建立HR\_DB設定檔，需要在 `.env` 檔案中增加設定。

```
php artisan vendor:publish
```

下列設定會自動增加在 `config/database.php(全域設定不會修改原本檔案)`

```
    'hr'       => [
        'driver'         => 'mysql',
        'host'           => env('HR_DB_HOST', '127.0.0.1'),
        'port'           => env('HR_DB_PORT', '3306'),
        'database'       => env('HR_DB_DATABASE', 'forge'),
        'username'       => env('HR_DB_USERNAME', 'forge'),
        'password'       => env('HR_DB_PASSWORD', ''),
        'charset'        => 'utf8mb4',
        'collation'      => 'utf8mb4_unicode_ci',
        'prefix'         => '',
        'prefix_indexes' => true,
        'strict'         => false,
        'engine'         => null,
        'options'        => extension_loaded('pdo_mysql') ? array_filter([
            PDO::MYSQL_ATTR_SSL_CA     => env('MYSQL_ATTR_SSL_CA'),
            PDO::ATTR_EMULATE_PREPARES => true,
            PDO::MYSQL_ATTR_COMPRESS   => true,
        ]) : [],
    ],
```

在`.env` 中增加設定

```
HR_DB_HOST     =
HR_DB_PORT     =
HR_DB_DATABASE =
HR_DB_USERNAME =
HR_DB_PASSWORD =
```

指令建立相關檔案

```
php artisan personnel:install

```

如有產生Update User Migration

```
php artisan migrate

```

調整User Model

```
/**
 * The attributes that are mass assignable.
 *
 * @var array
 */
protected $guarded = [];

```

###  Health Score

41

—

FairBetter than 89% of packages

Maintenance60

Regular maintenance activity

Popularity13

Limited adoption so far

Community6

Small or concentrated contributor base

Maturity70

Established project with proven stability

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~79 days

Recently: every ~274 days

Total

15

Last Release

253d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/76101f5a95034572964a49b9cb2032caeaac4526b9f418afadfc34a3952853b5?d=identicon)[HwacomService](/maintainers/HwacomService)

### Embed Badge

![Health badge](/badges/hwacom-personnel-info/health.svg)

```
[![Health](https://phpackages.com/badges/hwacom-personnel-info/health.svg)](https://phpackages.com/packages/hwacom-personnel-info)
```

###  Alternatives

[craftcms/phpstan

PHPStan configuration for Craft CMS projects

12265.0k522](/packages/craftcms-phpstan)[eps/jqgridbundle

JqGrid integration for Symfony2

113.1k](/packages/eps-jqgridbundle)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
