Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/olimsaidov/yesql-bundle
Yesql Bundle
https://github.com/olimsaidov/yesql-bundle
doctrine sql symfony-bundle yesql
Last synced: about 1 month 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 (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T11:01:05.000Z (almost 7 years ago)
- Last Synced: 2024-10-01T15:28:06.847Z (about 1 month ago)
- Topics: doctrine, sql, symfony-bundle, yesql
- Language: PHP
- Size: 12.7 KB
- Stars: 3
- Watchers: 2
- 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
```