PHPackages                             net\_bazzline/php\_propel\_behavior\_create\_entity - 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. [Utility &amp; Helpers](/categories/utility)
4. /
5. net\_bazzline/php\_propel\_behavior\_create\_entity

AbandonedArchivedLibrary[Utility &amp; Helpers](/categories/utility)

net\_bazzline/php\_propel\_behavior\_create\_entity
===================================================

free as in freedom CreateEntity propel behavior to easy up entity creation

1.2.0(10y ago)1984[1 issues](https://github.com/bazzline/php_propel_behavior_create_entity/issues)LGPL-3.0PHPPHP &gt;=5.3.3

Since Aug 2Pushed 4y ago3 watchersCompare

[ Source](https://github.com/bazzline/php_propel_behavior_create_entity)[ Packagist](https://packagist.org/packages/net_bazzline/php_propel_behavior_create_entity)[ RSS](/packages/net-bazzline-php-propel-behavior-create-entity/feed)WikiDiscussions master Synced 1mo ago

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

Full Stop
=========

[](#full-stop)

I still like the idea but there is currently no use case to develop it anymore.

Create Entity Behavior for Propel
=================================

[](#create-entity-behavior-for-propel)

This free as in freedom behavior should easy up entity creation in your [propel](http://www.propelorm.org) query classes.

Thanks to the [StateMachineBehavior](https://github.com/willdurand/StateMachineBehavior) to act as such a great template.

The build status of the current master branch is tracked by Travis CI: [![Build Status](https://camo.githubusercontent.com/9f0b60fe78cce9ea7d147b6bb7165e3e5bf57fc780b1cc0e971e523372533221/68747470733a2f2f7472617669732d63692e6f72672f62617a7a6c696e652f7068705f70726f70656c5f6265686176696f725f6372656174655f656e746974792e706e673f6272616e63683d6d6173746572)](http://travis-ci.org/bazzline/php_propel_behavior_create_entity)[![Latest stable](https://camo.githubusercontent.com/aa5cd91ceed9c91db6fe8b73a11cdc0f9fa1bffa148e5e5ad5df487bf0db5d1f/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f6e65745f62617a7a6c696e652f7068705f70726f70656c5f6265686176696f725f6372656174655f656e746974792e737667)](https://packagist.org/packages/net_bazzline/php_propel_behavior_create_entity)

The scrutinizer status are: [![code quality](https://camo.githubusercontent.com/1e8a89032591c1cd54d8ec76b193cf1d7f0b31ef0cd0932ee61a1d2a56a5570c/68747470733a2f2f7363727574696e697a65722d63692e636f6d2f672f62617a7a6c696e652f7068705f70726f70656c5f6265686176696f725f6372656174655f656e746974792f6261646765732f7175616c6974792d73636f72652e706e673f623d6d6173746572)](https://scrutinizer-ci.com/g/bazzline/php_propel_behavior_create_entity/)

The versioneye status is: [![dependencies](https://camo.githubusercontent.com/8dfc79f3c1384a0154e775a574c7ff4324bae0ea133fb9254581cc64c20dc0d7/68747470733a2f2f7777772e76657273696f6e6579652e636f6d2f757365722f70726f6a656374732f3535626537393563363533373632303032303030323039612f62616467652e7376673f7374796c653d666c6174)](https://www.versioneye.com/user/projects/55be795c653762002000209a)

Downloads: [![Downloads this Month](https://camo.githubusercontent.com/e0ee5a9f5628b1fd329906e0823f76940c8b8b4cb11c77f76e6decbfc7bab1a2/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f646d2f6e65745f62617a7a6c696e652f7068705f70726f70656c5f6265686176696f725f6372656174655f656e746974792e737667)](https://packagist.org/packages/net_bazzline/php_propel_behavior_create_entity)

It is available at [openhub.net](https://openhub.net/p/php_propel_behavior_create_entity).

Why
===

[](#why)

- no `new` in your code anymore
- eases up writing test code (`createEntity` can be mocked)

Usage
=====

[](#usage)

- make sure you have `extension=pdo_sqlite.so` enabled if you want to run phpunit
- the behavior adds a `createEntity` method to the table query class

```
$query = DemoQuery::create();
//create a new instance of class "Demo" without using new
$entity = $query->createEntity();
```

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

[](#installation)

By Hand
-------

[](#by-hand)

```
mkdir -p vendor/net_bazzline/php_propel_behavior_create_entity
cd vendor/net_bazzline/php_propel_behavior_create_entity
git clone https://github.com/bazzline/php_propel_behavior_create_entity

```

With [Packagist](https://packagist.org/packages/net_bazzline/php_propel_behavior_create_entity)
-----------------------------------------------------------------------------------------------

[](#with-packagist)

```
"net_bazzline/php_propel_behavior_create_entity": "dev-master"

```

Enable Behavior in Propel
-------------------------

[](#enable-behavior-in-propel)

- add the following to your propel.ini

```
propel.behavior.create_entity.class = lib.vendor.net_bazzline.php_propel_behavior_create_entity.source.CreateEntityBehavior

```

- add usage in your `schema.xml`

```

```

API
===

[](#api)

[API](http://bazzline.net/2eafe1bfd5db29029fbe3c3fc94eddeaa6433b47/index.html) available at [bazzline.net](http://www.bazzline.net)

History
=======

[](#history)

- upcoming
    - @todo
    - added "why" section
    - optimized reading
- [1.2.0](https://github.com/bazzline/php_propel_behavior_create_entity/tree/1.2.0) - released at 06.03.2016
    - added support for php 7.0
    - removed support for php 5.3.3
- [1.1.4](https://github.com/bazzline/php_propel_behavior_create_entity/tree/1.1.4) - released at 06.03.2016
    - updated dependencies
- [1.1.3](https://github.com/bazzline/php_propel_behavior_create_entity/tree/1.1.3) - released at 11.01.2015
    - fixed dependency handling for phpunit 4.8.\*
- [1.1.2](https://github.com/bazzline/php_propel_behavior_create_entity/tree/1.1.2) - released at 11.12.2015
    - updated dependency
- [1.1.1](https://github.com/bazzline/php_propel_behavior_create_entity/tree/1.1.1) - released at 07.11.2015
    - updated dependency
- [1.1.0](https://github.com/bazzline/php_propel_behavior_create_entity/tree/1.1.0) - released at 17.09.2015
    - fixed issue when dealing with namespaces
- [1.0.1](https://github.com/bazzline/php_propel_behavior_create_entity/tree/1.0.1) - released at 19.08.2015
    - updated dependency
- [1.0.0](https://github.com/bazzline/php_propel_behavior_create_entity/tree/1.0.0) - released at 02.08.2015
    - initial release

Final Words
===========

[](#final-words)

Star it if you like it :-). Add issues if you need it. Pull patches if you enjoy it. Write a blog entry if you use it. [Donate something](https://gratipay.com/~stevleibelt) if you love it :-\].

###  Health Score

25

—

LowBetter than 37% of packages

Maintenance0

Infrequent updates — may be unmaintained

Popularity15

Limited adoption so far

Community10

Small or concentrated contributor base

Maturity63

Established project with proven stability

 Bus Factor1

Top contributor holds 95% 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 ~30 days

Total

8

Last Release

3725d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/58451b041f6f5a38c7e62762c96d01f5e2bcac30e322707fe4760a82bccb6856?d=identicon)[artodeto](/maintainers/artodeto)

---

Top Contributors

[![stevleibelt](https://avatars.githubusercontent.com/u/2287220?v=4)](https://github.com/stevleibelt "stevleibelt (19 commits)")[![tworzenieweb](https://avatars.githubusercontent.com/u/741378?v=4)](https://github.com/tworzenieweb "tworzenieweb (1 commits)")

---

Tags

phpentityBehaviorbazzlinelgplfree as in freedompropelcreate

###  Code Quality

TestsPHPUnit

### Embed Badge

![Health badge](/badges/net-bazzline-php-propel-behavior-create-entity/health.svg)

```
[![Health](https://phpackages.com/badges/net-bazzline-php-propel-behavior-create-entity/health.svg)](https://phpackages.com/packages/net-bazzline-php-propel-behavior-create-entity)
```

PHPackages © 2026

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