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)    
Last Updated Ratings Unique User Downloads Download Rankings
2021-01-15 (1 month ago) RSS 2.0 feedNot yet rated by the usersTotal: 40 All time: 10,036 This week: 353Up
Version License PHP version Categories
sqlshim 1.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
Nominee
Vote
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
Innovation award
Innovation award
Nominee: 2x

Details

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:40
This week:0
All time:10,036
This week:353Up

For more information send a message to info at phpclasses dot org.