gm314 / siesta
PHP 7 ORM Library
Installs: 5 715
Dependents: 0
Suggesters: 0
Security: 0
Stars: 1
Watchers: 2
Forks: 4
Open Issues: 0
Requires
- php: >=8.1.0
- ext-dom: *
- ext-json: *
- ext-libxml: *
- ext-mysqli: *
- gm314/common: *
- gm314/nitria: *
- psr/log: *
- symfony/console: *
Requires (Dev)
- dev-master
- 1.5.5
- 1.5.4
- 1.5.3
- 1.5.2
- 1.5.1
- 1.5.0
- 1.4.3
- 1.4.2
- 1.4.1
- 1.4.0
- 1.3.2
- 1.3.1
- 1.3.0
- 1.2.2
- 1.2.1
- 1.2.0
- 1.1.4
- 1.1.3
- 1.1.2
- 1.1.1
- 1.1.0
- 1.0.0
- 0.5.3
- 0.5.2
- 0.5.1
- 0.5.0
- 0.4.7
- 0.4.6
- 0.4.5
- 0.4.4
- 0.4.3
- 0.4.2
- 0.4.1
- 0.4.0
- 0.3.3
- 0.3.2
- 0.3.1
- 0.3.0
- 0.1.0.
- dev-feature/php81
- dev-feature/php8-1
- dev-feature/table-lock
- dev-feature/mysql-meta-data-performance
- dev-feature/collection-many-to-array
- dev-feature/last-modified
- dev-feature/clean-up
- dev-feature/merging
- dev-feature/stored-procedure-delta
This package is auto-updated.
Last update: 2024-11-14 16:53:28 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