PHPackages                             aymanelarian/laravel-sqlserver-extender - 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. aymanelarian/laravel-sqlserver-extender

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

aymanelarian/laravel-sqlserver-extender
=======================================

Extend SQL Server Grammar for Laravel &amp; Lumen to fix migration

1.0.3(7y ago)1289MITPHPPHP &gt;=5.5CI failing

Since Sep 21Pushed 7y ago2 watchersCompare

[ Source](https://github.com/AymanElarian/laravel-sqlserver-extender)[ Packagist](https://packagist.org/packages/aymanelarian/laravel-sqlserver-extender)[ RSS](/packages/aymanelarian-laravel-sqlserver-extender/feed)WikiDiscussions master Synced yesterday

READMEChangelog (4)Dependencies (6)Versions (4)Used By (0)

Laravel SQL Server Extender
===========================

[](#laravel-sql-server-extender)

[![Latest Version on Packagist](https://camo.githubusercontent.com/e5cf2745016dec693ea97450b849ab8b31ddb4cb123c22a0704efb254d2a99bb/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f61796d616e656c617269616e2f6c61726176656c2d73716c7365727665722d657874656e6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aymanelarian/laravel-sqlserver-extender)[![Software License](https://camo.githubusercontent.com/55c0218c8f8009f06ad4ddae837ddd05301481fcf0dff8e0ed9dadda8780713e/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d627269676874677265656e2e7376673f7374796c653d666c61742d737175617265)](LICENSE.txt)[![Total Downloads](https://camo.githubusercontent.com/1c4800e000093fd03709e5bcbdd30cbdd03270c029fa881814267a086c42250f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f61796d616e656c617269616e2f6c61726176656c2d73716c7365727665722d657874656e6465722e7376673f7374796c653d666c61742d737175617265)](https://packagist.org/packages/aymanelarian/laravel-sqlserver-extender)

This package extend the SQL Server driver from Laravel to fix the migration error due to using custom schema name and support sql server spatial

Install
-------

[](#install)

Via Composer

```
$ composer require AymanElarian/laravel-sqlserver-extender
```

Once composer has been updated and the package has been installed, the service provider will need to be loaded.

For Laravel 5, open `config/app.php` and add following line to the providers array:

```
AymanElarian\Extensions\SqlServer\SpatialServiceProvider::class,
```

For Lumen 5, open `bootstrap/app.php` and add following line under the "Register Service Providers" section:

```
$app->register(AymanElarian\Extensions\SqlServer\SpatialServiceProvider::class);
```

For Laravel 4, open `app/config/app.php` and add following line to the providers array:

```
'AymanElarian\Extensions\SqlServer\SpatialServiceProvider',
```

TO DO : Development plan
------------------------

[](#to-do--development-plan)

- overwrite sql server grammer (compileTableExists method) to search by schema name
- refactor grimzy's Laravel mysql-spatial package to work with sql server
- support points in sql server
- support polygon in sql server
- support all other types in sql server
- fix all test cases to run with sql server

Usage
-----

[](#usage)

Once you included the service provider the Laravel/Lumen will start using the custom grammar.

Contributing
------------

[](#contributing)

Contributions are very welcome. Please see [CONTRIBUTING](CONTRIBUTING.md) for details.

License
-------

[](#license)

The MIT License (MIT). Please see [License File](LICENSE.txt) for more information.

Credits
-------

[](#credits)

Originally inspired and code refactored from [grimzy's Laravel mysql-spatial package](https://github.com/grimzy/laravel-mysql-spatial).

###  Health Score

28

—

LowBetter than 52% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity59

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

Total

3

Last Release

2839d ago

PHP version history (2 changes)1.0.0PHP &gt;=5.5.9

1.0.3PHP &gt;=5.5

### Community

Maintainers

![](https://avatars.githubusercontent.com/u/364872?v=4)[Ayman Elarian](/maintainers/AymanElarian)[@AymanElarian](https://github.com/AymanElarian)

---

Top Contributors

[![AymanElarian](https://avatars.githubusercontent.com/u/364872?v=4)](https://github.com/AymanElarian "AymanElarian (16 commits)")

---

Tags

laravelmigrationlumensqlsqlserversqlsrv

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/aymanelarian-laravel-sqlserver-extender/health.svg)

```
[![Health](https://phpackages.com/badges/aymanelarian-laravel-sqlserver-extender/health.svg)](https://phpackages.com/packages/aymanelarian-laravel-sqlserver-extender)
```

###  Alternatives

[doctrine/dbal

Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.

9.7k595.8M6.5k](/packages/doctrine-dbal)[mnabialek/laravel-sql-logger

Log SQL queries in Laravel/Lumen framework

158812.6k2](/packages/mnabialek-laravel-sql-logger)[dbout/wp-orm

WordPress ORM with Eloquent.

12910.2k1](/packages/dbout-wp-orm)[shiftonelabs/laravel-nomad

Add extra functionality to Laravel migrations.

20106.6k](/packages/shiftonelabs-laravel-nomad)

PHPackages © 2026

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