PHPackages                             cagartner/laravel-sqlanywhere - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Database &amp; ORM](/categories/database)
4. /
5. cagartner/laravel-sqlanywhere

ActiveLibrary[Database &amp; ORM](/categories/database)

cagartner/laravel-sqlanywhere
=============================

A Sybase driver based Eloquent model and Query builder for Laravel 4

v1.3.1(12y ago)51787MITPHPPHP &gt;=5.3.0

Since Aug 18Pushed 10y ago2 watchersCompare

[ Source](https://github.com/cagartner/laravel-sqlanywhere)[ Packagist](https://packagist.org/packages/cagartner/laravel-sqlanywhere)[ RSS](/packages/cagartner-laravel-sqlanywhere/feed)WikiDiscussions master Synced 1mo ago

READMEChangelogDependencies (5)Versions (29)Used By (0)

Laravel SQLAnyWhere
===================

[](#laravel-sqlanywhere)

Adds an Sybase driver to Laravel 4, usable with Fluent and Eloquent.

\#Importante! Ainda tem alguns BUGs em relação ao Schema para criar e modificar tabelas.

\#Todo - Integração com Migrate, não está 100% :/ - Testes para encontrar Bugs

Installation
============

[](#installation)

Add `cagartner\laravel-sqlanywhere` and `cagartner/sql-anywhere-client` as a requirement to composer.json:

```
{
    "require": {
        "cagartner/sql-anywhere-client": "dev-master",
        "cagartner/laravel-sqlanywhere": "dev-master"
    }
}
```

Update your packages with `composer update` or install with `composer install`.

Once Composer has installed or updated your packages you need to register LaravelODBC and the package it uses (extradb) with Laravel itself. Open up `app/config/app.php` and find the providers key towards the bottom.

Add the following to the list of providers:

```
'Cagartner\SQLAnywhere\SQLAnywhereServiceProvider',
```

You won't need to add anything to the aliases section.

Configuration
=============

[](#configuration)

There is no separate package configuration file for LaravelODBC. You'll just add a new array to the `connections` array in `app/config/database.php`.

```
		'sqlanywhere' => array(
            'host'        => 'tcpip{host=127.0.0.1;port=2638}',
            'username'    => 'teste-conexao',
            'password'    => 'teste',
            'database'    => 'teste-conexao',
            'auto_commit' => true,
            'persintent'  => false,
            'charset'     => 'utf8',
        ),

```

The ODBC driver is different from the pre-installed ones in that you're going to pass in the DSN instead of having Laravel build it for you. There are just too many ways to configure an ODBC database for this package to do it for you. Some sample configurations are at [php.net](http://php.net/manual/en/ref.pdo-odbc.connection.php).

**Don't forget to update your default database connection.**

###  Health Score

34

—

LowBetter than 77% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community20

Small or concentrated contributor base

Maturity69

Established project with proven stability

 Bus Factor1

Top contributor holds 86% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~9 days

Recently: every ~4 days

Total

27

Last Release

4389d ago

Major Versions

v1.1.2 → 4.0.x-dev2014-01-08

### Community

Maintainers

![](https://www.gravatar.com/avatar/62e7f97fccdea13b7593c4af2e06b0971fe199b402d5429e2f5df91bf5bc12fb?d=identicon)[cagartner1](/maintainers/cagartner1)

---

Top Contributors

[![jenssegers](https://avatars.githubusercontent.com/u/194377?v=4)](https://github.com/jenssegers "jenssegers (300 commits)")[![cagartner](https://avatars.githubusercontent.com/u/4007696?v=4)](https://github.com/cagartner "cagartner (16 commits)")[![alexandre-butynski](https://avatars.githubusercontent.com/u/671662?v=4)](https://github.com/alexandre-butynski "alexandre-butynski (12 commits)")[![Daveawb](https://avatars.githubusercontent.com/u/4409005?v=4)](https://github.com/Daveawb "Daveawb (6 commits)")[![duxet](https://avatars.githubusercontent.com/u/821707?v=4)](https://github.com/duxet "duxet (4 commits)")[![hannesvdvreken](https://avatars.githubusercontent.com/u/1410358?v=4)](https://github.com/hannesvdvreken "hannesvdvreken (2 commits)")[![codeclown](https://avatars.githubusercontent.com/u/211543?v=4)](https://github.com/codeclown "codeclown (2 commits)")[![dgreda](https://avatars.githubusercontent.com/u/4435227?v=4)](https://github.com/dgreda "dgreda (2 commits)")[![khamkham](https://avatars.githubusercontent.com/u/5898200?v=4)](https://github.com/khamkham "khamkham (2 commits)")[![andrewryno](https://avatars.githubusercontent.com/u/50643?v=4)](https://github.com/andrewryno "andrewryno (1 commits)")[![Gabrola](https://avatars.githubusercontent.com/u/1728215?v=4)](https://github.com/Gabrola "Gabrola (1 commits)")[![wikichua](https://avatars.githubusercontent.com/u/1870466?v=4)](https://github.com/wikichua "wikichua (1 commits)")

---

Tags

laravel-4-packagephp-librarysybaselaraveldatabasemodeleloquentmongodbmongo

### Embed Badge

![Health badge](/badges/cagartner-laravel-sqlanywhere/health.svg)

```
[![Health](https://phpackages.com/badges/cagartner-laravel-sqlanywhere/health.svg)](https://phpackages.com/packages/cagartner-laravel-sqlanywhere)
```

###  Alternatives

[mongodb/laravel-mongodb

A MongoDB based Eloquent model and Query builder for Laravel

7.1k7.2M71](/packages/mongodb-laravel-mongodb)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
