Skip to content

php-library/siesta

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Siesta stored procedure based ORM for PHP 7

License Latest Stable Version Total Downloads Latest Unstable Version

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

About

Stored procedure based ORM for php

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • PHP 100.0%