PHPackages                             wakers/nette-propel2 - 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. wakers/nette-propel2

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

wakers/nette-propel2
====================

Propel 2 ORM integration for Nette 2.4 with Tracy debugger panel

0.9.4(6y ago)113311MITPHP

Since Oct 4Pushed 6y ago1 watchersCompare

[ Source](https://github.com/wakerscz/nette-propel2)[ Packagist](https://packagist.org/packages/wakers/nette-propel2)[ Docs](http://www.wakers.cz/cms)[ RSS](/packages/wakers-nette-propel2/feed)WikiDiscussions master Synced 1mo ago

READMEChangelog (4)Dependencies (5)Versions (5)Used By (1)

Propel 2 ORM in Nette 2.4
=========================

[](#propel-2-orm-in-nette-24)

Propel 2 ORM integration for Nette 2.4 **with Tracy debugger panel**.

[![Tracy Debugger](docs/tracy-debugger.png)](docs/tracy-debugger.png)

Installation
------------

[](#installation)

1. Install this **nette-extensions** via `composer require wakers/nette-propel2:v0.9`
2. Register this extensions in your application `config.neon`

    ```
    extensions:
        wakers-propel: Wakers\Propel\DI\PropelExtension
    ```
3. Add propel configuration file in `./app/config/db.local.neon`

    ```
    wakers-propel:
        propel:

            general:
                project: Wakers CMS 5
                version: 5

            database:
                connections:
                    wakers_cms:
                        adapter: mysql
                        classname: Propel\Runtime\Connection\ProfilerConnectionWrapper
                        dsn: 'mysql:host=mariadb;dbname=wakers_cms_db'
                        user: root
                        password: root
                        attributes:
                        settings:
                            charset: utf8

            runtime:
                defaultConnection: wakers_cms
                connections:
                    - wakers_cms

            generator:
                defaultConnection: wakers_cms
                connections:
                    - wakers_cms
                tablePrefix: wakers_
                dateTime:
                    dateTimeClass: \Nette\Utils\DateTime

            paths:
                schemaDir: './app/schema'
                outputDir: './app/schema'
                phpDir: './app/schema/model'
                migrationDir: './app/schema/migration'
                sqlDir: './app/schema/sql'

            reverse:
                connection: wakers_cms

            migrations:
                tableName: 1_propel_migration
    ```

Example
-------

[](#example)

### Create schema

[](#create-schema)

```

```

### Use commands

[](#use-commands)

Commands are same as official but without aliases.

```
# Compare DB with schema (eventually create migration)
./vendor/bin/wpropel migration:diff

# Run migration
./vendor/bin/wpropel migration:migrate

# Create model classes
./vendor/bin/wpropel model:build

# Show all allowed commands
./vendor/bin/wpropel
```

### Create PHP code

[](#create-php-code)

```
$con = Propel\Runtime\Propel::getConnection();

$con->beginTransaction();

try
{
    $book = new Wakers\Module\MyModule\Book;
    $book->setName('Any book name');
    $book->save();

    // Do something else

    $con->commit();
}
catch (Propel\Runtime\Exception\PropelException $exception)
{
    $con->rollBack();
}

$books = Wakers\Module\MyModule\BookQuery::create()->find();

foreach ($books as $book)
{
    bdump($book->getName());
}
```

About Propel 2
--------------

[](#about-propel-2)

Please think about using Propel 2 before you start, because actually Propel 2 is not maintained.

If you still want to use Propel2 in Nette, this extension is the right way.

**We're welcome pull requests and issues.**

###  Health Score

26

—

LowBetter than 43% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity12

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity54

Maturing project, gaining track record

 Bus Factor1

Top contributor holds 100% 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 ~86 days

Total

4

Last Release

2515d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/1b48b74251a86c4daeda4177aec702410218ccf9f71a719a11cb39cfb4b381f6?d=identicon)[Wakers](/maintainers/Wakers)

---

Top Contributors

[![jzaplet](https://avatars.githubusercontent.com/u/4992367?v=4)](https://github.com/jzaplet "jzaplet (13 commits)")

---

Tags

nettenette-extensionormpropel2tracytracy-debugger-panel

### Embed Badge

![Health badge](/badges/wakers-nette-propel2/health.svg)

```
[![Health](https://phpackages.com/badges/wakers-nette-propel2/health.svg)](https://phpackages.com/packages/wakers-nette-propel2)
```

###  Alternatives

[spatie/laravel-backup

A Laravel package to backup your application

6.0k21.8M186](/packages/spatie-laravel-backup)[kimai/kimai

Kimai - Time Tracking

4.6k7.4k1](/packages/kimai-kimai)[bolt/core

🧿 Bolt Core

585142.5k54](/packages/bolt-core)[worksome/foggy

Foggy is a tool for making database dumps with some data removed/changed.

26571.7k1](/packages/worksome-foggy)[psx/sql

Generate type-safe PHP classes from your database

1773.4k4](/packages/psx-sql)[linkorb/haigha

Alice fixtures for database tables

2411.2k3](/packages/linkorb-haigha)

PHPackages © 2026

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