Skip to content

Commit

Permalink
First commit
Browse files Browse the repository at this point in the history
  • Loading branch information
ProklUng committed Jun 16, 2021
1 parent d95c03f commit 6014729
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions readme.MD
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# Экспериментальная интеграция Spiral Cycle ORM с Wordpress

Бандл для кастомных вариантов Wordpress + Symfony.

### Установка

composer.json:
Expand Down Expand Up @@ -39,4 +41,11 @@ wp_cycle_orm:
db_name: '%env(DB_NAME)%'
username: '%env(DB_USER)%'
password: '%env(DB_PASSWORD)%'
```
### Использование
```php
$orm = container()->get('cycle_orm.orm');
$data = $orm->getRepository(Post::class)->findByPK(1189);
```

0 comments on commit 6014729

Please sign in to comment.