https://github.com/olimsaidov/yesql-bundle
Yesql Bundle
https://github.com/olimsaidov/yesql-bundle
doctrine sql symfony-bundle yesql
Last synced: 6 months ago
JSON representation
Yesql Bundle
- Host: GitHub
- URL: https://github.com/olimsaidov/yesql-bundle
- Owner: olimsaidov
- License: mit
- Created: 2016-04-25T08:17:59.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T11:01:05.000Z (about 8 years ago)
- Last Synced: 2025-07-20T08:16:38.083Z (7 months ago)
- Topics: doctrine, sql, symfony-bundle, yesql
- Language: PHP
- Size: 12.7 KB
- Stars: 3
- Watchers: 1
- Forks: 2
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Installation
============
Step 1: Download the Bundle
---------------------------
Open a command console, enter your project directory and execute the
following command to download the latest stable version of this bundle:
```bash
$ composer require olimsaidov/yesql-bundle
```
This command requires you to have Composer installed globally, as explained
in the [installation chapter](https://getcomposer.org/doc/00-intro.md)
of the Composer documentation.
Step 2: Enable the Bundle
-------------------------
Then, enable the bundle by adding it to the list of registered bundles
in the `app/AppKernel.php` file of your project:
```php
get('yesql.blog')->getAllPosts(); // returns all posts as array
$this->get('yesql.blog')->getPostById(3); // returns single post
$this->get('yesql.blog')->insertPost([':title' => 'Hello', ':body' => 'World']); // returns last insert id
```