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 5.1, 5.2, 5.3
Laravel 5.4, 5.5, 5.6, 5.7, 5.8, 6.x, 7.x, 8.x, 9.x
Laravel 10.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 between the database and the application
To configure the charset between the database and the application, add the fields DB_CHARSET
and APPLICATION_CHARSET
in .env
file, see the following example:
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 fields SYBASE_CACHE_COLUMNS
and SYBASE_CACHE_COLUMNS_TIME
to the .env
file, see the following example:
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 ^10
illuminate/support Version ^10
ext-pdo Version *