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!
Install
Add the following in the require section of your composer.json:
Laravel 7 <=
"uepg/laravel-sybase": "~2"
Laravel 8 >= and <= 10
"uepg/laravel-sybase": "~4"
Laravel 11 and 12
Laravel 13 >=
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:
charset 'charset' => 'utf8', 'application_encoding' => false, 'application_charset' => '', dotenv 'cache_tables' => true, 'cache_time' => 3600
## 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 ^13
illuminate/support Version ^13
ext-pdo Version *