2017 © Pedro Peláez
 

library laravel5-sqlanywhere

Laravel 5.0^ Driver for the SAP SQLAnywhere database

image

josueneo/laravel5-sqlanywhere

Laravel 5.0^ Driver for the SAP SQLAnywhere database

  • Tuesday, December 19, 2017
  • by josueneo
  • Repository
  • 1 Watchers
  • 3 Stars
  • 114 Installations
  • PHP
  • 0 Dependents
  • 0 Suggesters
  • 0 Forks
  • 0 Open issues
  • 9 Versions
  • 4 % Grown

The README.md

This project was abandoned as of 2022, it was developed as part of my job at SAP for an internal Laravel app. Development for SQL Anywhere PDO driver seems to be stopped, however, there is support for PHP 8.2, 8.1, 8.0, 7.4, 7.3, 7.2 for prebuilt binaries, and source code is available at: https://help.sap.com/docs/SUPPORT_CONTENT/sqlany/3362971282.html, (*1)

laravel5-sqlanywhere 0.2.3

A driver for SAP SQLAnywhere 17 for use with the laravel framework version 5.x

Pre-requisites

  1. You need the SQL Anywhere libraries installed in your server, fortunately there is a developer version available at https://www.sap.com/cmp/syb/crm-xu15-int-sqldevft/index.html, (*2)

  2. Build and install the PDO_SQLANYWHERE module from the PECL repo., (*3)

wget https://pecl.php.net/get/PDO_SQLANYWHERE -O PDO_SQLANYWHERE.tgz
phpize
./configure
make
make install
  1. If using apache http server, the SQL Anywhere libraries path must exist in LD_LIBRARY_PATH.

For Fedora/CentOS 7/RHEL 7

Override your httpd systemd script with, (*4)

systemctl edit httpd

This will open your text editor, just add the below:, (*5)

[Service]
Environment=LD_LIBRARY_PATH=/opt/sqlanywhere17/lib64

For SLES 11 SP4 and below

Edit your sysconfig file and add it there, (*6)

To be written., (*7)

For SLES 12 GA and newer versions (Currently SLES 12 SP2)

Same strategy as Fedora, Centos or RHEL 7., (*8)

To be written., (*9)

Installing driver

Install it via composer, (*10)

composer require josueneo/laravel5-sqlanywhere

Add service provider, open config/app.php, (*11)

josueneo\laravel5sqlanywhere\SQLAnywhereServiceProvider::class

Edit configuration at config/database.php, (*12)

'sqlanywhere' => [
            'driver' => 'sqlanywhere',
            'dsn' => 'sqlanywhere:',
            'username' => env('DB_USERNAME', 'root'),
            'password' => env('DB_PASSWORD', 'yourpassword'),
            'database' => env('DB_DATABASE_NAME', ''),
            'databasefile' => env('DB_DATABASE', ''),
            'host' => env('DB_HOST', 'localhost'),
            'port' => env('DB_PORT', '2638'),
            'options' => 'ASTOP=no'
        ]

Most of grammar files are based on the cgartner driver written for laravel 4., (*13)

The Versions

19/12 2017

dev-master

9999999-dev

Laravel 5.0^ Driver for the SAP SQLAnywhere database

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

  • php >=5.6.0

database laravel eloquent model sybase sqlanywhere

19/12 2017

v0.2.5

0.2.5.0

Laravel 5.0^ Driver for the SAP SQLAnywhere database

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

database laravel eloquent model sybase sqlanywhere

19/12 2017

v0.2.4

0.2.4.0

Laravel 5.0^ Driver for the SAP SQLAnywhere database

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

database laravel eloquent model sybase sqlanywhere

31/08 2017

v0.2.3

0.2.3.0

Laravel 5.0^ Driver for the SAP SQLAnywhere database

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

database laravel eloquent model sybase sqlanywhere

12/07 2017

v0.2.2

0.2.2.0

Laravel 5.0^ Driver for the SAP SQLAnywhere database

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

database laravel eloquent model sybase sqlanywhere

26/06 2017

v0.2.1

0.2.1.0

Driver for the SAP SQLAnywhere database

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

  • php >=5.6.0

database laravel eloquent model sybase sqlanywhere

14/06 2017

v0.2.0

0.2.0.0

Driver for the SAP SQLAnywhere database

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

  • php >=5.6.0

database laravel eloquent model sybase sqlanywhere

31/01 2017

v0.1.0a

0.1.0.0-alpha

Driver for the SAP SQLAnywhere database

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

  • php >=5.6.0

database laravel eloquent model sybase sqlanywhere

27/01 2017

v0.1.0

0.1.0.0

Driver for the SAP SQLAnywhere database

  Sources   Download

MIT

The Requires

  • php >=5.6.0

 

The Development Requires

  • php >=5.6.0

database laravel eloquent model sybase sqlanywhere