PHPackages                             chance-fyi/hyperf-database-sqlserver - 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. [Database &amp; ORM](/categories/database)
4. /
5. chance-fyi/hyperf-database-sqlserver

ActiveLibrary[Database &amp; ORM](/categories/database)

chance-fyi/hyperf-database-sqlserver
====================================

Add SqlServer support to Hyperf

v3.0.3(3w ago)24.7k↓28.9%1[1 issues](https://github.com/Chance-fyi/hyperf-database-sqlserver/issues)MITPHPPHP &gt;=8.0

Since May 19Pushed 3w ago1 watchersCompare

[ Source](https://github.com/Chance-fyi/hyperf-database-sqlserver)[ Packagist](https://packagist.org/packages/chance-fyi/hyperf-database-sqlserver)[ RSS](/packages/chance-fyi-hyperf-database-sqlserver/feed)WikiDiscussions master Synced today

READMEChangelog (4)Dependencies (14)Versions (5)Used By (0)

Hyperf ORM's SqlServer driver.
==============================

[](#hyperf-orms-sqlserver-driver)

[![Latest Stable Version](https://camo.githubusercontent.com/b3d83afaa6c5709d01de2b871e5dbb31629c0bd768e6e01394944cfad102ea67/687474703a2f2f706f7365722e707567782e6f72672f6368616e63652d6679692f6879706572662d64617461626173652d73716c7365727665722f76)](https://packagist.org/packages/chance-fyi/hyperf-database-sqlserver)[![Total Downloads](https://camo.githubusercontent.com/feb063460957c5c8ffb70223a00730e62c95ac9b921d2ec4bca1ca14d90cb200/687474703a2f2f706f7365722e707567782e6f72672f6368616e63652d6679692f6879706572662d64617461626173652d73716c7365727665722f646f776e6c6f616473)](https://packagist.org/packages/chance-fyi/hyperf-database-sqlserver)[![License](https://camo.githubusercontent.com/2b7a43377a88d6976b46026556c7a93d663107509af17886a15e3637998172a2/687474703a2f2f706f7365722e707567782e6f72672f6368616e63652d6679692f6879706572662d64617461626173652d73716c7365727665722f6c6963656e7365)](https://packagist.org/packages/chance-fyi/hyperf-database-sqlserver)

Extending the SqlServer driver for Hyperf ORM through AOP and simulating coroutines using the Task component.

Installation
------------

[](#installation)

```
composer require chance-fyi/hyperf-database-sqlserver
```

Configuration
-------------

[](#configuration)

Configure a SQL Server connection in `config/autoload/databases.php` as usual. Every query is dispatched to a task worker (to simulate coroutines over the blocking PDO/ODBC driver), and that task has an execute timeout.

### Task timeout

[](#task-timeout)

By default the task execute timeout is **10 seconds** (the Hyperf Task default). A heavy query that legitimately runs longer than 10s would otherwise fail with `Task [N] execute timeout`. Raise it per connection with the `task_timeout`option (in seconds):

```
// config/autoload/databases.php
return [
    'sqlsrv' => [
        'driver'       => 'sqlsrv',
        // host / database / username / password / ...
        'task_timeout' => 60, // optional, seconds, default 10
    ],
];
```

###  Health Score

46

↑

FairBetter than 92% of packages

Maintenance85

Actively maintained with recent releases

Popularity25

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity53

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 84.6% 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 ~372 days

Total

4

Last Release

24d ago

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/37658940?v=4)[Chance](/maintainers/Chance-fyi)[@Chance-fyi](https://github.com/Chance-fyi)

---

Top Contributors

[![Chance-fyi](https://avatars.githubusercontent.com/u/37658940?v=4)](https://github.com/Chance-fyi "Chance-fyi (11 commits)")[![nirolee](https://avatars.githubusercontent.com/u/13505462?v=4)](https://github.com/nirolee "nirolee (2 commits)")

---

Tags

hyperfsqlserverphpsqlserverhyperf

###  Code Quality

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/chance-fyi-hyperf-database-sqlserver/health.svg)

```
[![Health](https://phpackages.com/badges/chance-fyi-hyperf-database-sqlserver/health.svg)](https://phpackages.com/packages/chance-fyi-hyperf-database-sqlserver)
```

###  Alternatives

[eftec/pdoone

Minimaist procedural PDO wrapper library

1116.3k9](/packages/eftec-pdoone)[hyperf/database-pgsql

A pgsql handler for hyperf/database.

12321.2k21](/packages/hyperf-database-pgsql)[jonas-elias/hyperf-oracle

A oracle handler for hyperf/database.

102.5k](/packages/jonas-elias-hyperf-oracle)

PHPackages © 2026

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