c-lod / siesta
PHP 7 ORM Library
1.4.4
2021-03-16 13:53 UTC
Requires
- php: >=7.1.0
- ext-dom: *
- ext-json: *
- ext-libxml: *
- ext-mysqli: *
- gm314/common: *
- gm314/nitria: *
- psr/log: *
- symfony/console: *
Requires (Dev)
This package is not auto-updated.
Last update: 2026-07-02 14:11:30 UTC
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