承接 allboo/propel-laravel 相关项目开发

从需求分析到上线部署,全程专人跟进,保证项目质量与交付效率

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

allboo/propel-laravel

最新稳定版本:v1.0.0

Composer 安装命令:

composer require allboo/propel-laravel

包简介

Propel integration for Laravel framework.

README 文档

README

Propel2 integration for Laravel framework 4

Usage

Require this package with composer using the following command:

composer require allboo/propel-laravel

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

'Allboo\PropelLaravel\GeneratorServiceProvider',
'Allboo\PropelLaravel\RuntimeServiceProvider',

Create Propel configuration file app/config/propel.php Note: See example config in example/config/propel.php Within provided config schemas files are located into app/database/ folder, models are generated into app/models, migrations into app/database/migrations

You can now use Propel commands via artisan, ex

php artisan propel:build

etc.

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

propel:convert-conf

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

See also

Make Propel models work with Laravel Form::model() without making it an array

统计信息

  • 总下载量: 456
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 6
  • 点击次数: 5
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 5
  • Watchers: 1
  • Forks: 3
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2014-11-04