Skip to content

Instantly share code, notes, and snippets.

View heilgar's full-sized avatar
🌚
Imagine greater

Oleg heilgar

🌚
Imagine greater
View GitHub Profile
<?php
namespace AppBundle\Doctrine;
use Doctrine\DBAL\Connection;
use Doctrine\DBAL\Driver\PDOPgSql\Driver as PDOPgSqlDriver;
use Doctrine\ORM\NativeQuery;
class PgSqlNativeQueryCursor
{
@heilgar
heilgar / Usage
Last active June 4, 2019 07:45
PHP RabbitMQ Example for thewebland.net used docker-compose
0. docker-compose up -d
1. composer install
2. php receive.php
3. php send.php --message="Hello, World"
@heilgar
heilgar / 01_Laravel 5 Simple ACL manager_Readme.md
Created February 24, 2016 10:01 — forked from amochohan/01_Laravel 5 Simple ACL manager_Readme.md
Laravel 5 Simple ACL - Protect routes by an account / role type

#Laravel 5 Simple ACL manager

Protect your routes with user roles. Simply add a 'role_id' to the User model, install the roles table and seed if you need some example roles to get going.

If the user has a 'Root' role, then they can perform any actions.

Installation

Simply copy the files across into the appropriate directories, and register the middleware in App\Http\Kernel.php

<?php
defined( 'ABSPATH' ) or die( 'Silence is golden!' );
/**
* Plugin Name: Contact Form Registration
* Plugin URI: http://thewebland.net/extensions/contact-form-registration
* Description: Auto registration for Contact Form 7
* Version: 1.0
* Author: Oleh (Heilgard) Hrebeniuk
* Author URI: http://thewebland.net
*/
@heilgar
heilgar / parse_.idea_.name
Created August 5, 2015 12:47
Users auto update
parse
@heilgar
heilgar / links_.idea_.name
Created January 23, 2015 14:01
Функционал плагина для WP Вывод списка ссылок на посты в футере сайта. Список ссылок формируется в панели администратора. Панель администратора 1. Отдельный пункт меню 2. Создание ссылки на пост 2.1 Выбор поста из уже существующих 2.2 Присваивание посту произвольный анкор 3. Редактирование ссылки 4. Удаление ссылки Функционал плагина Вывод списк…