cekurte/eloquentbundle
最新稳定版本:v1.0.1
Composer 安装命令:
composer require cekurte/eloquentbundle
包简介
A bundle to integrate the Eloquent library on Symfony 2
关键字:
README 文档
README
- A simple bridge to use the Eloquent ORM with Symfony 2 (with all methods covered by php unit tests), contribute with this project!
If you liked of this library, give me a star =).
Installation
- The package is available on Packagist.
- The source files is PSR-2 compatible.
- Autoloading is PSR-4 compatible.
composer require cekurte/eloquentbundle
After, register the bundle in your AppKernel like this:
// app/AppKernel.php // ... public function registerBundles() { $bundles = array( // ... new Cekurte\EloquentBundle\CekurteEloquentBundle(), // ... ); // ... return $bundles; }
Configuration
All reference to configure this bundle is bellow, add this in your config file.
# app/config/config.yml # ... cekurte_eloquent: connection: driver: "mysql" # Default is mysql. Available too: postgres, sqlserver and sqlite. host: "127.0.0.1" # Required database: "dbname" # Required username: "user" # Required password: "pass" # Optional, default is "" charset: "utf8" # Optional, default is "utf8" collation: "utf8_unicode_ci" # Optional, default is "utf8_unicode_ci" prefix: "" # Optional, default is ""
How to use
See the documentation of the Eloquent ORM.
Contributing
- Give me a star =)
- Fork it
- Create your feature branch (
git checkout -b my-new-feature) - Make your changes
- Run the tests, adding new ones for your own code if necessary (
vendor/bin/phpunit) - Commit your changes (
git commit -am 'Added some feature') - Push to the branch (
git push origin my-new-feature) - Create new Pull Request
统计信息
- 总下载量: 141
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 2
- 点击次数: 0
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2015-05-11