PHP Classes

PHP SQLSRV Linux: Access Microsoft SQL Server databases in Linux

Recommend this page to a friend!
  Info   View files Documentation   View files View files (15)   DownloadInstall with Composer Download .zip   Reputation   Support forum   Blog (1)    
Ratings Unique User Downloads Download Rankings
Not yet rated by the usersTotal: 53 This week: 1All time: 10,590 This week: 560Up
Version License PHP version Categories
sqlshim 1.0.0Custom (specified...5PHP 5, Databases
Description 

Author

This package can be used to access Microsoft SQL Server databases in Linux.

It provides a class that can access Microsoft SQL server databases using PDO dblib driver.

The package also provides global functions that wrap around the class that emulate functions of the sqlsrv PHP extension that is available on Windows.

Innovation Award
PHP Programming Innovation award nominee
January 2021
Number 6


Prize: One official elePHPant Plush Mascott
The Microsoft SQL Server is a popular database server often used by many companies that prefer to use Microsoft based products.

The sqlsrv PHP extension is the usual means to access a Microsoft SQL Server database under Windows. However this extension does not exist for the Linux operating system.

This package provides a solution based dblib driver for the PDO extension to access Microsoft SQL Server databases from a Linux installation.

It also provides functions that emulate the sqlsrv extension functions on Linux, so the same PHP application code can run either in Windows and Linux.

Manuel Lemos
Picture of Owen Hester
  Performance   Level  
Name: Owen Hester <contact>
Classes: 2 packages by
Country: United States United States
Age: 40
All time rank: 4315547 in United States United States
Week rank: 411 Up48 in United States United States Up
Innovation award
Innovation award
Nominee: 2x

Winner: 1x

Documentation

sqlshim &bull; sqlsrv for Linux/OS X

sqlshim replicates sqlsrv (Microsoft SQL Server Driver for PHP) functionality on Linux/OS X.

It began as a small set of spoofed sqlsrv functions and has since evolved into a full-on sqlsrv replacement.

It is currently in alpha and is primarily intended for use in dev environments or non-mission-critical applications. But I can't tell you what to do.

Getting Started

  1. `$ composer require "radsectors/sqlshim:dev-master"`
  2. `<?php require 'vendor/autoload.php';`
  3. ???
  4. _Profit!_

See the wiki for more detailed documentation and support.

Contributing

See CONTRIBUTING.md for contribution info.

? sqlshim? Send ?!

License

See LICENSE for license info.


  Files folder image Files  
File Role Description
Files folder image.vscode (3 files)
Files folder imagesrc (2 files)
Files folder imagetests (3 files)
Accessible without login Plain text file .markdownlint.json Data Auxiliary data
Accessible without login Plain text file CHANGELOG.md Data Auxiliary data
Accessible without login Plain text file composer.json Data Auxiliary data
Accessible without login Plain text file CONTRIBUTING.md Data Auxiliary data
Accessible without login Plain text file LICENSE Lic. License text
Accessible without login Plain text file phpunit.xml Data Auxiliary data
Accessible without login Plain text file README.md Doc. Documentation

  Files folder image Files  /  .vscode  
File Role Description
  Accessible without login Plain text file launch.json Data Auxiliary data
  Accessible without login Plain text file settings.json Data Auxiliary data
  Accessible without login Plain text file tasks.json Data Auxiliary data

  Files folder image Files  /  src  
File Role Description
  Accessible without login Plain text file globals.php Aux. sqlsrv wrapper functions
  Plain text file sqlshim.php Class Class source

  Files folder image Files  /  tests  
File Role Description
  Accessible without login Plain text file bootstrap.php Aux. Auxiliary script
  Accessible without login Plain text file config-sample.php Aux. Auxiliary script
  Plain text file GeneralTest.php Class Class source

 Version Control Unique User Downloads Download Rankings  
 100%
Total:53
This week:1
All time:10,590
This week:560Up