PHPackages                             swis/database-extra-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. swis/database-extra-bundle

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

swis/database-extra-bundle
==========================

This bundle extends the behaviour of a SQLite database in a Symfony2 project.

1.0.0(12y ago)332.1k1[1 issues](https://github.com/swis/DatabaseExtraBundle/issues)MITPHPPHP &gt;=5.4

Since Jul 27Pushed 12y ago1 watchersCompare

[ Source](https://github.com/swis/DatabaseExtraBundle)[ Packagist](https://packagist.org/packages/swis/database-extra-bundle)[ RSS](/packages/swis-database-extra-bundle/feed)WikiDiscussions master Synced 2mo ago

READMEChangelogDependencies (3)Versions (2)Used By (0)

SwisDatabaseExtraBundle
=======================

[](#swisdatabaseextrabundle)

This bundle provides additional features for databases in any Symfony 2 project.

Core features
-------------

[](#core-features)

- Trigonometric and other additional functions for SQLite (ACOS, COS, RADIANS, SIN, SQRT, MOD, LOCATE)
- DQL definitions of trigonometric functions for their usage with Doctrine (ACOS, COS, RADIANS, SIN)

Instructions
------------

[](#instructions)

1. Include the bundle in your `composer.json`

```
    "require": {
        ...
        "swis/database-extra-bundle": "dev-master",
        ...
    }

```

2. Enable it in your `AppKernel.php`

```
    $bundles = array(
        ...
        new Swis\Bundle\DatabaseExtraBundle\SwisDatabaseExtraBundle(),
        ...
    );

```

3a) For enabling the SQLite driver, edit your `config.yml`:

```
doctrine:
    dbal:
        connections:
            default:
                driver_class:                 \Swis\Bundle\DatabaseExtraBundle\Driver\Sqlite

```

3b) For enabling the DQL functions, edit your `config.yml`:

```
doctrine:
    orm:
        entity_managers:
            default:
                dql:
                    numeric_functions:
                        acos:         Swis\Bundle\DatabaseExtraBundle\DQL\Acos
                        cos:          Swis\Bundle\DatabaseExtraBundle\DQL\Cos
                        radians:      Swis\Bundle\DatabaseExtraBundle\DQL\Radians
                        sin:          Swis\Bundle\DatabaseExtraBundle\DQL\Sin

```

###  Health Score

29

—

LowBetter than 59% of packages

Maintenance13

Infrequent updates — may be unmaintained

Popularity25

Limited adoption so far

Community5

Small or concentrated contributor base

Maturity58

Maturing project, gaining track record

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

Unknown

Total

1

Last Release

4678d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/b87a013f297d7fd0d9bf9fb80b27cbf03deadc8edf039d4cca970f1fc9996d75?d=identicon)[swis](/maintainers/swis)

---

Tags

SQLite database behaviour

### Embed Badge

![Health badge](/badges/swis-database-extra-bundle/health.svg)

```
[![Health](https://phpackages.com/badges/swis-database-extra-bundle/health.svg)](https://phpackages.com/packages/swis-database-extra-bundle)
```

###  Alternatives

[scienta/doctrine-json-functions

A set of extensions to Doctrine that add support for json query functions.

58523.9M36](/packages/scienta-doctrine-json-functions)[laravel-doctrine/orm

An integration library for Laravel and Doctrine ORM

8425.3M87](/packages/laravel-doctrine-orm)[damienharper/auditor-bundle

Integrate auditor library in your Symfony projects.

4542.8M](/packages/damienharper-auditor-bundle)[sonata-project/entity-audit-bundle

Audit for Doctrine Entities

644989.8k1](/packages/sonata-project-entity-audit-bundle)[bartlett/php-compatinfo-db

Reference Database of all functions, constants, classes, interfaces on PHP standard distribution and about 110 extensions

1183.0k1](/packages/bartlett-php-compatinfo-db)[heymoon/doctrine-psql-enum

Store PHP native enums as PostgeSQL custom enum types

254.9k](/packages/heymoon-doctrine-psql-enum)

PHPackages © 2026

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