Download the PHP package uepg/laravel-sybase without Composer
On this page you can find all versions of the php package uepg/laravel-sybase. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Informations about the package laravel-sybase
Sybase ASE based Eloquent module extension for Laravel
- Enables use of multiple kinds of fields.
- Use default eloquent: works with odbc and dblib!
- Migrations! (WIP - Work in Progress)
Install
Add the following in the require section of your composer.json:
Laravel >=7.x
Update the package dependencies executing:
Add the following entry to your providers array in config/app.php file, optional in Laravel 5.5 or above:
Add the following entry to your aliases array in config/app.php file, optional in Laravel 5.5 or above:
Update your config/database.php's default driver with the settings for the sybase or your custom odbc. See the following example:
Update your .env with the settings for the sybase or your custom odbc. See the following example:
Configuration of freetds driver
In Linux systems the driver version must be set in freetds.conf file to the right use of charset pages.
The file is usualy found in /etc/freetds/freetds.conf. Set the configuration at global section as the following example:
Configuring the charset conversion
This package offers to method to charset conversion, it can be converted in application layer or in database layer, we offered both methods because it can be useful for debugging, to config the application layer conversion you need to set up the following entries on the database.php
file. You can view an example of the application encoding setup below:
To use the database layer conversion add the property charset to connection configuration on the sybase configuration array
Configuring the cache
As the library consults table information whenever it receives a request, caching can be used to avoid excessive queries
To use the cache, add the property cache_tables
to the database.php connection configuration, you can customize the time of the cache with the property cache_time
in the same configuration
Setting to use numeric data type
In the migration file you must replace use Illuminate\Database\Schema\Blueprint;
with use Uepg\LaravelSybase\Database\Schema\Blueprint;
. See the following example:
All versions of laravel-sybase with dependencies
doctrine/dbal Version ^3.5.1
illuminate/database Version >=v12.0.0
illuminate/support Version >=v12.0.0
ext-pdo Version *