gm314/siesta
最新稳定版本:1.5.5
Composer 安装命令:
composer require gm314/siesta
包简介
PHP 7 ORM Library
README 文档
README
Stored procedure based ORM for PHP 7.
Documentation
For full documentation, please visit https://gperler.github.io
Installation with composer
composer require gm314/siesta
Example
In this example we create an Artist and Label entity, and configure the relationship between them:
$artist = new Artist(); $artist->setName("Jamie Woon"); $label = new Label(); $label->setName("PMR"); $label->setCity("London"); $label->addToArtistList($artist); // save with cascade. will store both label and artist $label->save(true);
Console Commands
create config file
vendor/bin/siesta init
generate entities
vendor/bin/siesta gen
reverse engineer
vendor/bin/siesta reverse
Testing
configure your database settings in tests/siesta.test.mysql.config.json
vendor/bin/codecept run
统计信息
- 总下载量: 5.73k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 1
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2014-12-10