ccwwonebyone/thinkorm-bundle

Symfony Think Orm Bundle

v0.0.1 2019-11-28 07:39 UTC

This package is auto-updated.

Last update: 2024-04-19 17:36:49 UTC


README

Latest Version on Packagist Software License Total Downloads

Symfony Think Orm Bundle

About

the thinkorm-bundle package allows you use think-orm in symfony.

Installation

Require the ccwwwonebyone/thinkorm-bundle package in your composer.json and update your dependencies:

 $ composer require ccwwwonebyone/thinkorm-bundle

Useage

edit config/bundles.php

return [
    //...
    OneThink\OrmBundle\OneThinkOrmBundle::class => ['all' => true],
]

Configuration

move vendor/ccwwonebyone/thinkorm-bundle/config/packages/one_think_orm.yaml to config/packages/one_think_orm.yaml

edit .env set database info

DB_HOSTNAME=host
DB_USERNAME=username
DB_PASSWORD=password
DB_DATABASE=database
APP_DEBUG=true

you can see ThinkORM开发指南 to learn other configurations

License

Released under the MIT License, see LICENSE.