PHPackages                             shedeza/sybase-orm-bundle - 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. shedeza/sybase-orm-bundle

ActiveSymfony-bundle[Database &amp; ORM](/categories/database)

shedeza/sybase-orm-bundle
=========================

Symfony Bundle integration for shedeza/sybase-orm

2.1.4(1mo ago)019↓90%MITPHPPHP ^8.1CI passing

Since Jun 3Pushed 1mo agoCompare

[ Source](https://github.com/shedeza/sybase-orm-bundle)[ Packagist](https://packagist.org/packages/shedeza/sybase-orm-bundle)[ RSS](/packages/shedeza-sybase-orm-bundle/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (20)Versions (14)Used By (0)

shedeza/sybase-orm-bundle
=========================

[](#shedezasybase-orm-bundle)

[![CI](https://github.com/shedeza/sybase-orm-bundle/actions/workflows/ci.yml/badge.svg)](https://github.com/shedeza/sybase-orm-bundle/actions/workflows/ci.yml)[![PHP Version](https://camo.githubusercontent.com/04744bae0a61d2ffe29c26f07a9612eae20445fc6feaeb77b3af1f0e9be6447c/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d253345253344382e312d3838393242462e737667)](https://php.net/)[![Symfony Version](https://camo.githubusercontent.com/48e587f3aad66da2138d07cc9264ff9317ff417d69d90ec48bf9cfa3ad70c88a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f73796d666f6e792d362e78253230253743253230372e782d3030303030302e737667)](https://symfony.com/)[![License](https://camo.githubusercontent.com/8bb50fd2278f18fc326bf71f6e88ca8f884f72f179d3e555e20ed30157190d0d/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c6963656e73652d4d49542d677265656e2e737667)](LICENSE)[![Packagist](https://camo.githubusercontent.com/375f0f5e88274c4663b517bdf900310d206fa969361d0b4989350679b4ddc44a/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73686564657a612f7379626173652d6f726d2d62756e646c652e737667)](https://packagist.org/packages/shedeza/sybase-orm-bundle)

Symfony bundle providing full framework integration for the [shedeza/sybase-orm](https://github.com/shedeza/sybase-orm) library. It registers ORM services in the dependency injection container, provides console commands, Symfony Profiler integration, automatic repository autowiring, and Flex recipe support.

Features
--------

[](#features)

- **Full DI Integration** — All ORM services registered and autowireable out of the box
- **Multi-Connection Support** — Configure multiple named Sybase ASE connections
- **13 Console Commands** — Install, migrations (generate, execute, rollback, reset, fresh, preview, status), proxy generation, cache clear, schema validation, entity scaffolding, ORM info
- **Web Profiler** — Native ORM instrumentation with detailed metrics: queries, hydrations, identity map hits/misses, lazy loads, cache hits/misses, transactions, rollbacks, flush time
- **Redis Second-Level Cache** — Redis-based cache with circuit breaker pattern for fault tolerance
- **Repository Autowiring** — Custom repositories auto-registered via compiler pass
- **Symfony Flex** — Automatic bundle registration and configuration scaffolding
- **PHP 8.1+ Attributes** — Modern attribute-based command configuration

Requirements
------------

[](#requirements)

RequirementVersionPHP&gt;= 8.1Symfony6.x or 7.xshedeza/sybase-orm^3.6PHP Extensionpdo\_dblibDatabaseSybase ASEInstallation
------------

[](#installation)

```
composer require shedeza/sybase-orm-bundle
```

### Symfony Flex (automatic)

[](#symfony-flex-automatic)

If your project uses Symfony Flex, the bundle is registered automatically and configuration files are created. No manual steps needed.

### Without Flex (manual)

[](#without-flex-manual)

Add the bundle to `config/bundles.php`:

```
return [
    // ...
    SybaseORM\Bundle\SybaseORMBundle::class => ['all' => true],
];
```

Then run the install command to scaffold configuration:

```
php bin/console sybase:install
```

Quick Start
-----------

[](#quick-start)

### 1. Configure your connection

[](#1-configure-your-connection)

Set the `DATABASE_URL` environment variable in your `.env` file:

```
DATABASE_URL="sybase://sa:password@127.0.0.1:5000/my_database?charset=UTF-8"
```

### 2. Create your configuration file

[](#2-create-your-configuration-file)

```
# config/packages/sybase_orm.yaml
sybase_orm:
    connection:
        url: '%env(DATABASE_URL)%'
    entity_directories:
        - '%kernel.project_dir%/src/Entity'
```

### 3. Create and use a repository

[](#3-create-and-use-a-repository)

```
