PHPackages                             hsvisus/attendance - 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. hsvisus/attendance

ActiveLibrary

hsvisus/attendance
==================

华视后台项考勤功能组件

v1.0.6(4y ago)019MITPHP

Since Aug 14Pushed 4y ago1 watchersCompare

[ Source](https://github.com/lizhufei/Attendance)[ Packagist](https://packagist.org/packages/hsvisus/attendance)[ RSS](/packages/hsvisus-attendance/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependenciesVersions (5)Used By (0)

### 考勤系统功能

[](#考勤系统功能)

- 发布`php artisan vendor:publish --provider="Hsvisus\Attendance\AttendProvider"`
- 数据库迀移`php artisan migrate`
- 添加服务和门面别名 在app.config里 `Hsvisus\Attendance\AttendProvider::class; 'Attend' => Hsvisus\Attendance\FacadeService::class,`
- 总共分两个模块 考勤打卡模块和考勤统计模块
- 编写打卡事件订阅者

```
    / 处理上班打卡事件
    public function handleOnduty($event)
    {
        ww(['OndutyEvent'], 'event_on.txt');
    }
     // 处理离岗事件
    public function handleUndergo($event)
    {
        ww(['UndergoEvent'], 'event_un.txt');
    }
    // 处理下班打卡事件
    public function handleOffduty($event)
    {
        ww(['OffdutyEvent'], 'event_off.txt');
    }

```

- 门面方法:

```
  /**
    * 判断打卡时间状态(上班 ,迟到, 旷工, 下班)
    * @param Model $person
    * @param Model $face
    * @return array
    */
      public function auditClock(Model $person, Model $face):array
   /**
     * 获取法定节假日
     * @return array
     */
    public function getLegal()
  /**
     * 获取考勤数据
     * @param string $type
     * @param array $params
     * @return array
     */
    public function getAttendanceData($type='today', array $params=[])
  /**
     * 生成考勤统计表
     * @param string $month
     * @param int|null $company_id
     * @return mixed
     */
    public function generateStatistics(string $month='', int $company_id=null)

```

###  Health Score

24

—

LowBetter than 32% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity6

Limited adoption so far

Community7

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

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 ~5 days

Total

4

Last Release

1720d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/13811386?v=4)[lizhufei](/maintainers/lizhufei)[@lizhufei](https://github.com/lizhufei)

---

Top Contributors

[![lizhufei](https://avatars.githubusercontent.com/u/13811386?v=4)](https://github.com/lizhufei "lizhufei (7 commits)")

### Embed Badge

![Health badge](/badges/hsvisus-attendance/health.svg)

```
[![Health](https://phpackages.com/badges/hsvisus-attendance/health.svg)](https://phpackages.com/packages/hsvisus-attendance)
```

PHPackages © 2026

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