PHPackages                             scif/propel-laravel - 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. scif/propel-laravel

Abandoned → [propel/propel-laravel](/?search=propel%2Fpropel-laravel)Library[Database &amp; ORM](/categories/database)

scif/propel-laravel
===================

Propel integration for Laravel framework.

v1.2(10y ago)58.1k↑171.4%1[2 issues](https://github.com/SCIF/propel-laravel/issues)[1 PRs](https://github.com/SCIF/propel-laravel/pulls)MITPHPPHP &gt;=5.5.9

Since Nov 4Pushed 10y ago3 watchersCompare

[ Source](https://github.com/SCIF/propel-laravel)[ Packagist](https://packagist.org/packages/scif/propel-laravel)[ RSS](/packages/scif-propel-laravel/feed)WikiDiscussions master Synced 2d ago

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

propel-laravel
==============

[](#propel-laravel)

Propel2 integration for Laravel framework. Only 5.x versions supported. 4.x version can be found in repo of [initial developer](https://github.com/allBoo/propel-laravel) of current package.

Usage
-----

[](#usage)

First of all: you need to understand that current package is in heavy development. We try to maintain 1.\* branch as stable and tested as it used by 1M of angry developers, which have guns. Propel2 seems pretty stable, but still in development and currently it require that your installation must have minimum stability is `alpha`. Open your `composer.json`and write after `config` section:

```
"config": {
    "preferred-install": "dist"
},
"minimum-stability": "alpha"

```

Require this package with composer using the following command:

```
composer require propel/propel-laravel

```

After updating composer, add the ServiceProviders to the providers array in `app/config/app.php`

```
Propel\PropelLaravel\GeneratorServiceProvider::class,
Propel\PropelLaravel\RuntimeServiceProvider::class,

```

Next step is copy example config to your `app/config` directory.

```
php ./artisan vendor:publish --provider 'Propel\PropelLaravel\RuntimeServiceProvider'

```

Within provided config: schemas files are located into `database/` folder, models are generated into `app/models`, migrations into `app/database/migrations`

You can now use Propel commands via artisan, for example:

```
php ./artisan propel:model:build

```

etc.

For new users of propel there is command creating sample `schema.xml` file:

```
php ./artisan propel:create-schema

```

If you are trying Propel2 on existing database — you can use [reverse database](http://propelorm.org/documentation/cookbook/working-with-existing-databases.html) command:

```
php ./artisan propel:database:reverse mysql

```

Since version 2.0.0-alpha5 there is awesome config node `exclude_tables` in config, which allows you to mix different project tables in one database.

**Small hint**: you can define namespace of all generated models in schema just as attribute of database:

```

```

Auth
----

[](#auth)

Package contains Auth driver binding which allows to store user info and fetch (`Auth::getUser()`) current logged in user as propel model. You need to change two settings in `config/auth.php`:

```
'driver' => 'propel', // custom auth provider implemented in current package
…
'model' => 'MyApp\Models\User', // classname of user entity

```

After schema creating and model generation you must enhance your model to implement all laravel Auth requirements. Generic user model seems so:

```
use MyApp\Models\Base\User as BaseUser;
use Illuminate\Auth\Authenticatable;
use Illuminate\Auth\Passwords\CanResetPassword;
use Illuminate\Contracts\Auth\Authenticatable as AuthenticatableContract;
use Illuminate\Contracts\Auth\CanResetPassword as CanResetPasswordContract;

class User extends BaseUser implements AuthenticatableContract, CanResetPasswordContract
{
    use Authenticatable, CanResetPassword;

    public function getAuthIdentifier()
    {
        return $this->id;
    }
}

```

Static Configuration
--------------------

[](#static-configuration)

By default it builds configuration from main config `app/config/propel.php` in runtime but you may build static config `app/propel/config.php` by running

```
php ./artisan propel:convert-conf

```

Services
--------

[](#services)

No service is provided.

Propel configures and manages itself by using static methods and its own service container, so no service is registered into Application. Actually, the `GeneratorServiceProvider` class injects Propel tasks into artisan tasks list with prefix `propel:``RuntimeServiceProvider` class initializes Propel runtime configuration

Known issues
------------

[](#known-issues)

- Cli command `propel:database:reverse` save reversed schema file to root of project
- There isn't schema file and command for initial user creation, but it's in our [roadmap](https://github.com/SCIF/propel-laravel/issues/4) and will arrive soon

Authors
-------

[](#authors)

[First version written by Alex Kazynsky](https://github.com/allBoo). Now maintained by [Alexander Zhuralvev](https://github.com/SCIF) and [Maxim Solovyev](https://github.com/Big-Shark). Thanks a lot to each [author](https://github.com/propelorm/PropelLaravel/graphs/contributors)! Any bug reports and pull requests are appreciated!

See also
--------

[](#see-also)

[Make Propel models work with Laravel Form::model() without making it an array](https://github.com/stephangroen/propel-laravel)

###  Health Score

32

—

LowBetter than 69% of packages

Maintenance12

Infrequent updates — may be unmaintained

Popularity28

Limited adoption so far

Community13

Small or concentrated contributor base

Maturity62

Established project with proven stability

 Bus Factor1

Top contributor holds 57.5% 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 ~62 days

Total

5

Last Release

4010d ago

PHP version history (2 changes)v1.0.0PHP &gt;=5.4.0

v1.2PHP &gt;=5.5.9

### Community

Maintainers

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

---

Top Contributors

[![SCIF](https://avatars.githubusercontent.com/u/671925?v=4)](https://github.com/SCIF "SCIF (23 commits)")[![Big-Shark](https://avatars.githubusercontent.com/u/646054?v=4)](https://github.com/Big-Shark "Big-Shark (14 commits)")[![allBoo](https://avatars.githubusercontent.com/u/9552850?v=4)](https://github.com/allBoo "allBoo (3 commits)")

---

Tags

laravelormactive-recordpropel

### Embed Badge

![Health badge](/badges/scif-propel-laravel/health.svg)

```
[![Health](https://phpackages.com/badges/scif-propel-laravel/health.svg)](https://phpackages.com/packages/scif-propel-laravel)
```

###  Alternatives

[anourvalar/eloquent-serialize

Laravel Query Builder (Eloquent) serialization

11223.5M33](/packages/anourvalar-eloquent-serialize)[statamic-rad-pack/runway

Eloquently manage your database models in Statamic.

135224.7k7](/packages/statamic-rad-pack-runway)[biiiiiigmonster/hasin

Laravel framework relation has in implement

154588.1k](/packages/biiiiiigmonster-hasin)[mostafaznv/laracache

LaraCache is a customizable cache trait to cache queries on model's events

27250.9k2](/packages/mostafaznv-laracache)[sofa/model-locking

Pseudo pessimistic model locking with broadcasted events for Laravel Eloquent ORM.

5048.2k](/packages/sofa-model-locking)[wayofdev/laravel-cycle-orm-adapter

🔥 A Laravel adapter for CycleORM, providing seamless integration of the Cycle DataMapper ORM for advanced database handling and object mapping in PHP applications.

3535.8k3](/packages/wayofdev-laravel-cycle-orm-adapter)

PHPackages © 2026

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