PHPackages                             csanquer/custom-base-behavior - 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. csanquer/custom-base-behavior

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

csanquer/custom-base-behavior
=============================

Propel Behavior to customize generated parent Base classes

0.1(13y ago)45831MITPHP

Since Jul 17Pushed 13y ago2 watchersCompare

[ Source](https://github.com/csanquer/CustomBaseBehavior)[ Packagist](https://packagist.org/packages/csanquer/custom-base-behavior)[ RSS](/packages/csanquer-custom-base-behavior/feed)WikiDiscussions master Synced 2mo ago

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

CustomBaseBehavior
==================

[](#custombasebehavior)

[![Build Status](https://camo.githubusercontent.com/4a0f0f8b3e469f97c95de83b949c455509a688deac2814564bac3fc5ff2f3434/68747470733a2f2f7365637572652e7472617669732d63692e6f72672f6373616e717565722f437573746f6d426173654265686176696f722e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/csanquer/CustomBaseBehavior)

License
-------

[](#license)

MIT License

copyright (c) 2012 Charles Sanquer

Functionality
-------------

[](#functionality)

Propel Behavior to customize generated Parent Base classes

The normal propel inheritance with generated base classes follow this schema :

[![Normal inheritance schema](https://github.com/csanquer/CustomBaseBehavior/raw/master/doc/normal_base.jpg)](https://github.com/csanquer/CustomBaseBehavior/raw/master/doc/normal_base.jpg)

With CustomBaseBehavior you can change the parent classes of the base generated classes and share common methods between model objects

[![Customized inheritance schema](https://github.com/csanquer/CustomBaseBehavior/raw/master/doc/custom_base.jpg)](https://github.com/csanquer/CustomBaseBehavior/raw/master/doc/custom_base.jpg)

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

[](#requirements)

This behavior requires [Propel](https://github.com/propelorm/Propel) &gt;=1.6.0

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

[](#installation)

You can use [composer](http://getcomposer.org/) and [packagist.org](http://packagist.org/) package [csanquer/custom-base-behavior](http://packagist.org/packages/csanquer/custom-base-behavior)

Or just download and copy the behavior to a specific path.

Then register the behavior class by adding the following to the bottom of the `build.properties` file in you project folder:

```
# check that you have behaviors enabled
propel.builder.addBehaviors = true

# and add the custom behavior
propel.behavior.custom_base.class = path.to.CustomBehavior
```

Enable the behavior in your schema.xml:

```

```

Base classes can use namespaces ( with , / or dot character).

Your custom Base Object class should extend Propel BaseObject and your custom Base Query class should extend Propel ModelCriteria.

Tests
-----

[](#tests)

To run tests

```
curl -s http://getcomposer.org/installer | php
php composer.phar --dev install
phpunit
```

###  Health Score

28

—

LowBetter than 54% of packages

Maintenance20

Infrequent updates — may be unmaintained

Popularity18

Limited adoption so far

Community9

Small or concentrated contributor base

Maturity53

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

Unknown

Total

1

Last Release

5049d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/05c2e278704a83b52b1279199dd99f22e74ba7e6331217d59e345ba85e5ff7d0?d=identicon)[csanquer](/maintainers/csanquer)

---

Top Contributors

[![csanquer](https://avatars.githubusercontent.com/u/372677?v=4)](https://github.com/csanquer "csanquer (1 commits)")

---

Tags

Behaviorbasepropelinheritance

### Embed Badge

![Health badge](/badges/csanquer-custom-base-behavior/health.svg)

```
[![Health](https://phpackages.com/badges/csanquer-custom-base-behavior/health.svg)](https://phpackages.com/packages/csanquer-custom-base-behavior)
```

###  Alternatives

[josegonzalez/cakephp-upload

CakePHP plugin to handle file uploading sans ridiculous automagic

5451.3M9](/packages/josegonzalez-cakephp-upload)[propel/propel-bundle

Integration of Propel in Symfony

181905.3k53](/packages/propel-propel-bundle)[nanigans/single-table-inheritance

Single Table Inheritance Trait

2512.5M3](/packages/nanigans-single-table-inheritance)[mysql-workbench-schema-exporter/mysql-workbench-schema-exporter

MySQL Workbench Schema Exporter

488188.5k10](/packages/mysql-workbench-schema-exporter-mysql-workbench-schema-exporter)[voskobovich/yii2-linker-behavior

This behavior makes it easy to maintain many-to-many and one-to-many relations in your ActiveRecord models.

80319.0k9](/packages/voskobovich-yii2-linker-behavior)[sjaakp/yii2-sortable-behavior

Sort ActiveRecords and related records in Yii2.

36144.7k](/packages/sjaakp-yii2-sortable-behavior)

PHPackages © 2026

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